Jump to content
Search Community

mouse scroll up/down effects

topsyKretts
Moderator Tag

Recommended Posts

Posted

hi guys,

 

can you help me how to create on codepen the animation similar to https://us.pg.com/  (mouse scroll up/down effects or click the buttons right sidebar content), its better if we can include the state(active) on the right side. see attached image:)

 

thanks guys!.

 

 

 

Capture.JPG

See the Pen OJJBgVY by graydirt (@graydirt) on CodePen.

Posted

Welcome to the forums, @clag!

 

If you have a GSAP-specific question, we'd be happy to help, but we just don't have the resources to build something like that for you from scratch in codepen. 

Posted
1 hour ago, GreenSock said:

Welcome to the forums, @clag!

 

If you have a GSAP-specific question, we'd be happy to help, but we just don't have the resources to build something like that for you from scratch in codepen. 

 

im sorry about that, ive updated the content above. any Q's let me know..

 

thanks team!

Posted

Hi @clag. Did you have a GSAP-specific question we could answer for you? 

Posted
Just now, GreenSock said:

Hi @clag. Did you have a GSAP-specific question we could answer for you? 

hi guys,

 

can you help me how to create the animation similar to https://us.pg.com/  (mouse scroll up/down effects or click the buttons right sidebar content):

Posted

Hey clag.

 

What GreenSock was saying is that this forum is for help with specific issues especially related to GSAP. What you're asking for is general help/us to make it for you. Unfortunately we don't have the capacity to do that. 

 

If you have specific questions about GSAP please let us know. Otherwise, good luck with your project!

elegantseagulls
Posted

Hi @clag,

 

The example you sent looks to just be scaling in/out new content from the center for the key-hole effects, and for the floating bubble effects they are using transform: translateZ(); with a 3d perspective. They are then tying all that to a scroll event handler (a lot of folks like to use ScrollMagic for that, but that isn't a GSAP product).

I don't believe the PG site is using gsap specifically, but to replicate the effect, you'd want to build a timeline gsap.timeline().... that creates the experience you want, and then scrub through the timeline progress with the scroll event.

 

There are plenty of tutorials that can get you pointed in the right direction as far as getting things setup.

https://greensock.com/scrollmagic/ This is a good one, but I think ScrollMagic is tied to GSAP v2 (not sure); look specifically at the horizontal scrolling section, as that will give you the basic concepts of what's happening on the P&G site.

 

Here's an example of a scroll-tied animation that uses mousewheel event instead of tying to scroll (more like the P&G site):

See the Pen VoWKbX by elegantseagulls (@elegantseagulls) on CodePen.

 

I hope you find this a helpful.

 

Thanks,

Ryan
 

  • Like 4

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