Jump to content
Search Community

Footer cut off after click accordion

eki.susanto test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I noticed several problems:

  1. You're using a VERY old version of GSAP. Ancient. I would strongly recommend updating and using the newer, more modern syntax. See
  2. You've got custom code for the scroll smoothing which we can't really support here. You might want to look into ScrollSmoother. 
  3. The main issue (from what I can guess looking at the custom code) is that you aren't updating the smooth-scrolling size when you open/close the accordion. It changes the size of the <body>. You only have a "resize" event handler on the window, thus it will only adjust when the user actually resizes the viewport but in your case you want it to happen when the click on the accordion (AFTER it is done animating open/close). You'll have to adjust that in your code. 
  • Like 2
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...