Jump to content
Search Community

xtn

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by xtn

  1. Hi guys! Hope you all have a great day.

     

    Is it possible to tween an element to its previous state prior to modifying it through .set() ?

     

    Here's an example scenario:

    1. #div has a background color of black: CSS - #div { background-color: #000 }
    2. Then .set() was used to turn it to white: TweenMax.set('#div', { 'backgroundColor': '#fff' })
    3. I want to tween it back to its original CSS style. (Is there something like TweenMax.to('#div', { revert: 'backgroundColor' })) ? I don't want to tween it to #000 since it has to be dynamic

    Thanks guys! Your help is much appreciated!

  2. Hi everyone, just started with GSAP and it looks great!

     

    I'm posting here to ask for help. I'm currently aiming for this animation: (space particles)

    https://youtu.be/4QOuixmYmhU

     

    I'm stuck on being able to like, infinitely spawn particles/stars after the old ones go behind the page or reach their maximum Z position, and garbage collect them.

     

    Also, I'm having blur issues when Z position is at a high value. Is this a browser issue? If yes, what are the alternatives? Would scale be okay? I tried scaling but unable to achieve the effect on the video I posted.

     

    Guys, your help is very appreciated!

     

    Thank you

    See the Pen LGKEXB by christianztamayo (@christianztamayo) on CodePen

    • Like 1
×
×
  • Create New...