• Bonjour,

    Strange thing happening – after I refresh a page my gsap animations load properly (they are scrolltriggered) everytime they should be triggered ; however if I load the page for the first time the last part of my page (circa one third) load the animation before they should be triggered, meaning the scrolltrigger supposely doesn’t work so in the end it looks like the animations are not working.

    If I deactivate Phastpress, everything gets to normal. Lazyloading is the identified suspect… By deactivating it, back to normal.

    Not sure if there is anything that can be done.

    • This topic was modified 3 years, 2 months ago by tgoarant.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @tgoarant,

    So the problem is triggered by enabling image lazy loading?

    This is functionality that isn’t really PhastPress-specific. It adds a loading=lazy attribute on all img tags on the page. It could be that this confuses the animation script, perhaps because it waits for images to load, which normally happens immediately when the page is opened.

    If you don’t experience the problem when disabling lazy loading, I’d just leave it disabled. Probably, the animations script needs to be fixed to support lazy loading, but that’s outside the scope of my support.

    –Albert

Viewing 1 replies (of 1 total)
  • The topic ‘GSAP / Scrolltrigger potential conflict’ is closed to new replies.