Skip to main content

Forums

This topic contains 2 replies, has 2 voices, and was last updated by  anavim 2 years, 4 months ago.

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:

    #254441

    anavim
    Participant

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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star