CSS transitions – Background Color

Here is an example using a class

.someclass {
-webkit-transition: background-color 2s;
-moz-transition: background-color 2s;
-o-transition: background-color 2s;
transition: background-color 2s;
}

.someclass:hover {
background-color: #new color;
}

This page helped me get it working.

transition

Here is a link to all the properties that can be effected.

https://www.w3.org/TR/css3-transitions/#animatable-properties

I hope helps someone else out there…

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *