Jump to content
Search Community

Help with Draggable/Scrolltrigger animation

PTiCA test
Moderator Tag

Recommended Posts

Hi everyone, I need to create an animation that will combine 2 gsap plugins and I don't know how to do this task.

 

demo: http://lookbook.wedze.com/winter-2016-2017/

 

This is an animation very similar to the one on this page: 

1. Vertical pull button which will always be able to stretch to a maximum of the number of slides before and after 

2. Horizontal scrolling slides that will accept point 1. 

 

Horizontal button that will scroll 4 slides and when finished dragging will snap to the nearest field. 

Do you have no idea what to break from or a demonstration of a similar solution? 

 

Thank you for your help.

preview-scroll-trigger.jpg

Link to comment
Share on other sites

Hi Zach, thanks for the welcome. I started creating my project and I think I have the foundation ready. I need advice on how to solve: 1. Snapping individual sections when onDragEnd is complete 2. Smooth connection of horizontal scrolling of sections which I control by vertical "drag" button.

 

My example is seen below.

See the Pen YzpKOMM by PTiCA1 (@PTiCA1) on CodePen

 

 

Link to comment
Share on other sites

1 hour ago, PTiCA said:

1. Snapping individual sections when onDragEnd is complete

Have you looked into Draggable's snapping functionality? I would think that would do it, so long as your Draggable is hooked up to your animation properly.

 

1 hour ago, PTiCA said:

2. Smooth connection of horizontal scrolling of sections which I control by vertical "drag" button.

What do you mean by this?

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