Jump to content
Search Community

Deanr1976

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Deanr1976

  1. I'm using this with wordpress. I'll set up a site especially for this so we can see it through the developer tools. It does happen in codepen but not as often. 

  2. Feedback on using... 

    tl.set($html, { overflow: "hidden" }, 0)

     

    Just like className it sometimes leaves the html with the style overflow:hidden applied to it. The only solution that seems to work every time is the one mentioned earlier which is...

    .set($html, {className:"-=noscroll"},0) 
    .set($html, {className:"+=noscroll"},0.01) 

     

  3. I may have found a solution. 

    Something like the following...

     

    .set($html, {className:"-=noscroll"},0) 
    .set($html, {className:"+=noscroll"},0.01) 

     

  4. Anybody have an issue with className?

     

    I use className to add a class to stop the main page from scrolling when a window(modal) is in view.

    Sometimes it is removed on timeline reversal. Sometimes it doesn't remove.

     

    When it doesn't remove it leaves the main page un-scrollable. 

     

    I've got 3 sites in production at the moment and this happens on all of them. 

  5. Is it possible to control scrolling so if a user scrolls down with their mouse we control that scroll to be exactly 100px. Maybe a little time delay to prevent scrolling 2 or 3 times over this. I would like to use this to control elements sliding in on an animation I'm working on. 

     

    I have tried several plugins including fullpage.js but I need more control over the elements and to bring in other divs. 

     

    Thank you 

    See the Pen LLMVBO by deanr1976 (@deanr1976) on CodePen

×
×
  • Create New...