Whenever I style animation in css why do I have to set "position:relative " all the time? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Whenever I style animation in css why do I have to set "position:relative " all the time?

it doesn't work until the position value is set. Can anyone explain why?

19th Dec 2016, 3:14 PM
akash abdullah
akash abdullah - avatar
2 Answers
+ 4
Because default value is static.
19th Dec 2016, 3:24 PM
Valen.H. ~
Valen.H. ~ - avatar
0
got it! thank you so much Valentin
19th Dec 2016, 3:30 PM
akash abdullah
akash abdullah - avatar