Jump to content
Search Community

Leaderboard

Popular Content

Showing content with the highest reputation on 10/22/2023 in all areas

  1. Yeah - totally the same deal. It's a pain having **** eyes eh!?. When I look at white text on a dark background for too long I get the same sensation as you might when staring at a bright object for too long. It 'burns' into my vision. Weird one. Totally know I'm (we're) in the minority - but light versions of the docs would be a godsend, in the long term.
    1 point
  2. This is what the invalidateOnRefresh property is for. I just realized it's not documented so we'll get to that soon. But using it you can set functional values on your tweens that have scrollTriggers and it will refresh the values on refresh. In your case you also have to recalculate offset_value so I added a listener to update that and the width: https://codepen.io/GreenSock/pen/QWyxgeN?editors=0010
    1 point
  3. Sounds like it isn't being loaded. What happens when you log this out? console.log(com.greensock.plugins.ScrollToPlugin.version); // -> 1.8.0 If that logs a version number out, it's loading correctly. From there I would try it without wrapping the window in jQuery. solutionsTl.to(window, .8, { scrollTo: {y: scroll}, ease: Circ.easeOut}, "-=.5"); If that works, check how you're loading jQuery. You might also want to try putting your scripts at the bottom of your page, right before the closing </body> tag instead of in the head. The only time I put scripts in the head is if I'm using a framework like Angular, where it has to run before anything can be displayed.
    1 point
×
×
  • Create New...