+ 2

Is it possible to create two different animation s for a div

How do you add two different animations to one div one at a time

4th May 2019, 9:13 PM
MiROKA
MiROKA - avatar
6 odpowiedzi
+ 2
Example: https://code.sololearn.com/W36bZf11GQl8/?ref=app Now this just uses a 2s delay to apply the "change" animation later but there are other ways also. I'm not sure what you are after by saying "one at a time".
4th May 2019, 9:41 PM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar
+ 1
Using keyframe animations? I believe all you have to do is put a comma between the animations when you call them.
4th May 2019, 9:32 PM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar
+ 1
Ginfio Two different keyframe animations applied to one div.
5th May 2019, 4:17 PM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar
0
I tried it and i dont think you can do it with coma.
5th May 2019, 2:10 AM
Ginfio
Ginfio - avatar
0
Ginfio Can you post the code here that you tried it on? I would like to see how you tried it because you can see in my example code that I posted earlier that it does indeed work. So it would be interesting to see what was different for you.
5th May 2019, 3:23 AM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar
0
animation as 2 different keyframes; right?
5th May 2019, 3:38 AM
Ginfio
Ginfio - avatar