Jump to content
Search Community

Weird Problem - GSAP ScrollTo Only Works After Window Rezising

kreendurron test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Tough to diagnose because the file is marked "read only", so we can't really tweak things effectively but did you try doing a console.log() of your "delta" variable to make sure it's what you expect? 

 

Also, are you seeing this problem outside of codepen? I wonder if it's an issue with their new "projects" feature [preview]. 

Link to comment
Share on other sites

Okay.. I take it back.

It's not just codepen...

 

Removing <!DOCTYPE html>

from the index... allows the page to scroll without resizing... 

 

http://higherskies.com/v2.3/

I've uploaded it to my test server... if I were to remove the <!DOCTYPE html> the scrolling would work just fine... obviously I can't just publish the page without the doctype...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...