Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
167
rated 0 times [  168] [ 1]  / answers: 1 / hits: 20086  / 13 Years ago, thu, march 31, 2011, 12:00:00

I have setup a CSS3 animation like this:



@-webkit-keyframes slidein {
from { -webkit-transform: translateX(100%); }
to { -webkit-transform: translateX(0); }
}


How do i reverse this animation on a class definition?



For example:



.slideinTransition {
-webkit-animation-name: slidein;
-webkit-animation-direction: alternate;
}


This will reverse the animation on the second iteration, i would like to reverse it directly on the first iteration.


More From » animation

 Answers
6

Try this:



-webkit-animation-direction: alternate-reverse;

[#92989] Wednesday, March 30, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
angelicajayleneh

Total Points: 216
Total Questions: 110
Total Answers: 100

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;