Jump to content
Search Community

How to delay the first snap and timeline item in a parallax scrolling animation?

Veli
Moderator Tag

Recommended Posts

Posted

Hi GSAP Community,

I'm working on a parallax scrolling animation using GSAP and ScrollTrigger, and I'm encountering an issue with adding an initial delay to the first snap and the first timeline item. Here’s a brief overview of what I’m trying to achieve:

  1. Pin a section to the top of the viewport while the content inside scrolls.
  2. Introduce a 1-second delay before snapping to the next section and starting the animations.
  3. Ensure smooth snapping and transitions for subsequent sections.

Problem: The snapping and transitions become glitchy and don't look smooth when introducing the delay for the first snap and the first timeline item.

 

Question: How can I properly introduce a 1-second delay for the first snap and the first timeline item while ensuring smooth transitions for subsequent items? Is there a better approach to achieve this with GSAP and ScrollTrigger?

 

Any help or suggestions would be greatly appreciated!

Thanks in advance!

 

See the Pen qBGVGEQ by veli-kukova (@veli-kukova) on CodePen.

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