An Engineers Notebook

CSS3 | Transitions

In order to do transitions in CSS this is the code we need to add to the root selector. For example, if we want to make the logo rotate on hover, we would add this to the ‘logo{} selector.

	/* css3 transition */
	-webkit-transition:-webkit-transform 1s;

This code only enables the ability for transitions on these properties, so we must specify what we want on the selector we need. 

	-moz-transform: rotate(360deg);
	-webkit-transform: rotate(360deg);
	-o-transform: rotate(360deg);
	transform: rotate(360deg);


Leave a Reply

Your email address will not be published.