Jump to content
Search Community

Vertical slider on scroll (with new section covered older)

Arzou test
Moderator Tag

Go to solution Solved by Arzou,

Recommended Posts

Hello everybody ! 
it's my first message here, I've searched the forum for a long time for an answer to my question but couldn't find anything.
I would like to create a vertical fullscreen slider, where each new section would come from the bottom, and cover the old one


Here is an example:

https://astoncm.com/
 

(for internal animations in each section, I could take care of it.

Thanks a lot for your help ! 

Clément

See the Pen zYPrZmj by arzou (@arzou) on CodePen

Link to comment
Share on other sites

  • Arzou changed the title to Vertical slider on scroll (with new section covered older)

Hi @Arzou,

 

I don't see a question in your post.

If you're asking us to code an example of the functionality of the sample-site you sent, unfortunately we can't offer free general consulting or "build-to-order" services.

 

A good starting point: Take a look at GSAP's toggleActions and pair that up with something like this:

See the Pen YzyaKrq by GreenSock (@GreenSock) on CodePen



If you get stuck, post back here with any GSAP-specific questions in a minimal demo and we'd be glad to help with those.

Please read the forum guidelines.

 

  • Like 4
Link to comment
Share on other sites

Hey Arzou, I was just in the process of adding something to @elegantseagulls reply.

 

If you are looking to create a slider like on that website, ScrollTrigger might not even be the best tool of choice, as it is dependent on actuall scrolling, while the linked website doesn't look to me like it is scrolling at all, but rather listening to mouse/keyboard/touch events.

 

Similar topics have come up a couple of times recently.

There are examples for event-based sliders in these threads.

 

Most of what those examples contain is the logic neccessary for it to work, which you will likely have to adjust to work like you expect.

 

 

 

 

  • Like 3
Link to comment
Share on other sites

 

Hey @Arzou,

 

A lot is possible. Be creative in concept and implementation.
Here is a rough layout for a report of a small NGO.
The larger the value, the slower the process:   tt = 25000; // 'total time' in px of scrub animation (line 12).

 

See the Pen 8911550a3b01adf215086bc42091e4f4?editors=1010 by mikeK (@mikeK) on CodePen

 

Happy tweening ...

Mikel

  • Like 2
Link to comment
Share on other sites

  • 1 year later...

@Arzou I have a client looking to do what Aston did, where each section is a slide that is revealed (using masking) and pinned, much like you are requesting in this thread. Mikel's first example is close, but not quite what Aston's site is doing.

Link to comment
Share on other sites

Hi @AaronMark and welcome to the GreenSock forums!

 

Perhaps this example using Clip Path can provide a good starting point:

See the Pen eYjoOEW by GreenSock (@GreenSock) on CodePen

 

You have to add the scale animation to the images, but adding those to the timeline already in use with the position parameter shouldn't be too complicated.

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

Hi @AaronMark, i'm sorry, i forgot to reply to your last message .. 


I don't remember how I found the solution.

I'll try to find my starting point and I'll tell you :) 

 

 

EDIT: 
I find this : 

See the Pen MzWzyv by PointC (@PointC) on CodePen

See the Pen LYVOewq by GreenSock (@GreenSock) on CodePen


See the Pen vyMjGy by derekshirk (@derekshirk) on CodePen

 

I hope it'll help you :) 

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