Jump to content
Search Community

Trying to do something funky effects with ScrollTrigger (horizontal and vertical scrolling)

Duo test
Moderator Tag

Recommended Posts

Hi,

 

I've got ScrollTrigger on a project and have implemented the pairing of horizontal and vertical scrolling. You can view the example code pen in this post.

 

What I'm trying to do now is do some cool effects on each section as it scrolls into and out of view. I love this example: https://digilab.kunsthaus.ch/en/exhibition/ausstellung-zur-eroeffnung-des-kunsthauses-am-heimplatz?group=switzerland

 

Hoping that someone very talented in these always helpful forums could point me in the right direction.

 

Thanks

See the Pen LYmPmRm by akapowl (@akapowl) on CodePen

Link to comment
Share on other sites

The example effect is a simple 3d rotation around the y axis. Create a timeline and animate the horizontal scroll. Create a second timeline with the same duration as the first timeline and have that include all the 3d rotations in sequence. Add the second timeline to the beginning of the first timeline such that they completely overlap. Add the scrollTrigger to your first timeline with a scrub of like 2.

That's how I would attempt it at first. It would require some tweaking on the second timeline so that the rotations happen when you actually want then. There is probably a better way to achieve the effect using scrollTriggers on the horizontal container, but I haven't done much with that.

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