May 3, 2017 at 7:23 am #254439
Hello, have a question about css animation.
Let I have two divs, parent div has animation and it works. But I want also to animate child div while changing of parent one.
For example I want to make colour of the text green while it’s a square and when it’s circle make it white.
How to make it using css? Or it’s possible only with js coding?
Here is codepen
http://codepen.io/boo-boo-boo/full/MmoNEq/May 3, 2017 at 8:58 am #254440
You can just add color declarations to the animation:
May 3, 2017 at 11:26 am #254441
Thank you! You are right, it’s more simple than I thought.
You must be logged in to reply to this topic.