I recently came across an impressive visual effect on a website and was wondering how I could implement it in my own web application. The effect is as follows: as you scroll down the page, the text gradually zooms in until it reaches a certain maximum size, at which point another element appears.
I’ve tried searching on Google using various keywords such as "scroll zoom effect," "text zoom on scroll," "reveal element on scroll," etc., but I haven’t found a clear guide or example of implementation.
I would greatly appreciate it if someone could guide me or share information on how I could achieve this effect using HTML, CSS, and JavaScript. Whether it’s using an existing library or writing the code from scratch, any advice or links to relevant resources would be welcomed.
To help you better understand what I’m looking for, I found a video that demonstrates exactly the effect I want:
Thank you in advance for any help and guidance!
2
Answers
Hi Adrian.
Here is a basic implementation example.
I leave you different guides to do more complex things.
1: https://matcha.fyi/zoom-scroll-tutorial/
2: https://nicepage.com/feature/zoom-animation-effect-488591#:~:text=The%20Zoom%20Effect%20is%20the,Responsive%20Animation%20Effects%20Theme%20Settings
It looks like a series of several css animations.
Here’s how one animation works; let’s just call it "elastic text", something to get you started with and you can then build on this using the same animation technique by changing the alternating CSS property as required.