I have a CSS3 transition, but right at the end of the transition my rotation resets to normal. HTML and CSS are simple:
HTML
<a href="#"><span></span>Test</a>
CSS
a { text-decoration: none; } a span { display: inline-block; width: 25px; } a span:before { content:'>'; font-size: 10px; font-weight: bold; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; -ms-transition: all 0.5s; -o-transition: all 0.5s; transition: all 0.5s; } a:hover span:before { margin-left: 55%; -webkit-transform: rotate(-90deg); }
The transition goes as expected, except that at the very end of the animation, the rotation returns to its normal state rather than being saved. As an example, I created a JSFiddle . How to save rotation preservation?
source share