Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #254439
    anavim
    Participant

    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/

    #254440
    bearhead
    Participant

    You can just add color declarations to the animation:
    http://codepen.io/kvana/pen/Vbzmep

    #254441
    anavim
    Participant

    Thank you! You are right, it’s more simple than I thought.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.