+ 1
how to make two animated squares in css(with @keyframe)
im cant make a two squares with @keyframes colorchange{}
10 odpowiedzi
+ 1
Can you show us your code?
0
are you talking about this code of yours?
https://code.sololearn.com/W76MosjTwfz4/?ref=app
if so, your animation is working, but as the div is empty and block element, width and height have no effect ^^
you should use css property position:relative; to let dimension it ;)
0
the div (with class 'one') wich has animation defined works fine...
what are you trying to achieve wich not work?
0
visph I'm trying to make each square change its color
0
you should define one keyframes rule for each, and link them by their name to animation property of each div...
0
and that is, there will all the squares overflow?
0
did you mean above each other (intersect) by 'overflow'?
if so, that should be your choice: if you want you can, and if not, you can also...
0
oh, thx