Skip to content

CSS code snippet – How to add animation to a button hover?

/* Changes an element's color on hover */

.selector {
	background-color: black;
}

.selector:hover {
	background-color: blue;
}
See also  Java code snippet - fx textarea How to make smaller?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.