A scroll progression indicator assists users in tracing their position on a page.
In this tutorial:
- Formulate the advancement bar
- Establish a scroll trigger
- Organize a scroll animation
- Cover alteration origin
Formulate the advancement bar
- Generate a Div block
- Label it
- Set the backdrop color for better visibility
- Place it in your desired location
- Assign it a width of 100%
- Allocate a height (e.g., 10 pixels)
- Secure its placement to the upper left corner of the viewport
- Assign a sufficiently high z-index value to ensure it remains on top
Establish a scroll trigger
From the Page trigger menu within the Interactions panel, opt for While page is scrolling
That’s all there is to it! So straightforward.
Organize a scroll animation
- Within the On scroll menu in the Interactions panel, select Play scroll animation
- Adjacent to Scroll Animations, click the addition symbol
- Name it (e.g., “scroll progression”)
- Ensure your element is chosen and click on the addition symbol at 0% and choose Scale from the list
- Beneath Scale, modify the x-axis position to 0
- Click the advancement bar at 100% and beneath Scale switch the x-axis position to 1
Cover alteration origin
- In the Style panel, scroll to Effects
- Press the Additional options icon (ellipsis) beside 2D & 3D transforms
- Assign the Origin to the left
Latest posts by Ewan Mak (see all)
- Include or eliminate Workspace spots and members - April 15, 2024
- Centering box summary - April 15, 2024
- Store a site for future reference - April 15, 2024