Jump to content
Search Community

Dot scroll the next section ScrollTrigger (or scrollMagic)

Mary Pieroszkiewicz test
Moderator Tag

Recommended Posts

I need to do a dot animation when I start scrolling, in the first section it has to scale across the width of the window when it goes to the second section it is supposed to go back to the original dot size and it has to appear in the middle of the second section. Thank you for your help.

See the Pen yLeGaOw by mary_pieroszkiewicz (@mary_pieroszkiewicz) on CodePen

Link to comment
Share on other sites

Hey Mary.

 

There are a lot of methods that you can use to scale something to fill up the entire viewport. I recommend starting with the circle filling the viewport then using GSAP to scale it down and animate it. In CSS you can do that quite simply by using the vmax unit:

width: 150vmax;
height: 150vmax;

 To get it to appear in the middle of the second section you should probably pin it during the animation.

 

Here's how I'd set it up:

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

  • Like 3
Link to comment
Share on other sites

ZachSaucier Thank you so so so much for your help :)

Now I need to implement it in my project, so the "m.pire" logo where there is an orange dot during the scroll should spread over the entire screen and appear in the second section where the words "Wszystkie Usługi"

See the Pen oNbJxyQ by mary_pieroszkiewicz (@mary_pieroszkiewicz) on CodePen

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