Jump to content
Search Community

AraAbc

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by AraAbc

  1. Hello!

    I have this prototype I am working on that I forked from another forum post and tweaked a bit. What I can't seem to figure out is how to make it so the background color animates to a new one for each section. 

     

    I have a "data-color" attribute on each ".Demo-section" so ideally it would use that value for each section.

     

    Basically I'd like it to start with #fff.

    Animate from #fff to #ddd when second Demo-section comes in

    Animate from #ddd to #999 when third Demo-section comes in

     

    Any help/guidance would be very much appreciated. 🙏 

     

     

    See the Pen 89de500680b3386bbf9c184b627616a7 by itsMeAra (@itsMeAra) on CodePen

×
×
  • Create New...