Can a single element have multiple animations? | Sololearn: Learn to code for FREE!

+9

Can a single element have multiple animations?

i tried giving a div 2 different animations, the former doesn't work unless i comment the other out. Can someone please explain?

12/24/2018 9:28:53 AM

Nyakotey🇬🇭🎹

5 Answers

New Answer

+3

i just learnt from the links shared that all i had to do was use a comma to separate them rather than writing it differently for each animation

+9

You could use css pseudo element :after or :before to achieve multiple animation. Here some examples, https://code.sololearn.com/Wo7rK35NF7C2/?ref=app https://code.sololearn.com/WVQ836QfBpur/?ref=app

+2

thank you Calviղ, Satnam Singh