Jump to content
Search Community

Passionate

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Passionate

  1. 40 minutes ago, ZachSaucier said:

    It's not because of the rotation. It's because you switched the .to() to a .from() so when you set the progress to 0 (which is the from position) then effectively call another .from() animation the end values and start values are the same. So it looks like nothing is happening. If you're going to use a .from() with this method you should set the progress to 1 instead on resize. Something like this:

     

     

    I see, thx : )

  2. 11 hours ago, ZachSaucier said:

    c

     

    11 hours ago, ZachSaucier said:

    Hey Passionate and welcome.

     

    There are several ways you could set this up. One way is to invalidate your tween and then play it again on resize. Make sure to use a functional value for properties you want to refresh though.

     

     

     

    We highly recommend using CodePen to host demos over W3Schools because CodePen is much easier to customize and for the code. We also recommend using other learning resources over W3Schools because W3Schools at times has incorrect or outdated information.

    Thanks!

×
×
  • Create New...