Jump to content
Search Community

How do I make onEnter back responsive when scrolling

kaii299

Go to solution Solved by mvaneijgen,

Recommended Posts

Posted

As the codepen above, the height of different sections is not the same, how do I make the start point of each section responsive?

See the Pen jOXMoNe by kaii299 (@kaii299) on CodePen.

  • Solution
Posted

Hi @kaii299 what do you mean? I've add some extra space to the bottom of the page, so there is enough to scroll to each section, but this seems to work perfectly. 

 

Your last line of code had a typo, maybe that was it? Hope it helps and happy tweening! 

 

// No captital T and missing h
Scrolltrigger.refres(true);

// Correct spelling
ScrollTrigger.refresh(true);

 

See the Pen OJrbLPz?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen.

  • Like 1

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...