+ 11

Transition in animation???

Can we use transition or transform property in animation??? I wrote a code,, transition: transform 1000ms ease in 200ms; transform: rotateX (360deg); But it doesn't work🙄,,why?? I tried the above code inside animation,,it gave same result..

17th May 2019, 12:41 PM
Vivek Raj
Vivek Raj - avatar
6 Antworten
18th May 2019, 9:48 AM
Vivek Raj
Vivek Raj - avatar
+ 7
Thanks Airree 😊😊
18th May 2019, 10:39 AM
Vivek Raj
Vivek Raj - avatar
+ 6
Airree No,I didn't use hover ,,so the transition should play after delay timing,,but it's not,,
18th May 2019, 2:44 AM
Vivek Raj
Vivek Raj - avatar
+ 2
For that, you should use an animation. @keyframes rotate { 0% { rotateX(0deg); } 100% { rotateX(360deg); } } .class { /*PROPERTIES*/ animation: rotate <duration> linear|ease|... <delay> <number of execution (probably 1)>
18th May 2019, 6:33 AM
Airree
Airree - avatar
+ 2
That's because I messed up, you should do the animation like this: 0% { transform: rotateX(0deg); } ...
18th May 2019, 9:57 AM
Airree
Airree - avatar
0
I dont know if you made an action, but I think you messed up. The transition is instantly completed. .yourClass:hover { transform: rotateX(360deg); }
17th May 2019, 1:34 PM
Airree
Airree - avatar