text animate on scroll

How to Animate Text On Scroll Up & Down? Solution: Text Animate On Scroll Using HTML CSS JavaScript.

On some websites when you scroll there text become animated. Not only texts, many others thing like cards and images also become animated on the scroll in some sites.  This type of effect is a good choice for the user interface, and the website looks very attractive.

So, Today I will show you a similar type of effect using HTML, CSS, and JavaScript. Today I am sharing Text Animate On Scroll program. Basically, in this program when you scroll down the text divide in parts, and on scroll up text rejoin.

This program is a very good example to understand how to create an effect on the scroll. If you are a beginner, you will also understand the whole program easily. These type of program basically created by jQuery but can create this program using JavaScript as well.

If you even don’t get what is the program or animation effect which I am talking about, you can see the preview given below.

Preview Of Text Divide Into Parts

In this video preview, you can see how this program looks like.

Now you can see how this program actually works. If you like this program, get the source code of it.

You May Also Like:

Text Animate On Scroll Source Code

Before sharing source code, I want to talk a little bit about this program. I had divided text in 4 parts, using 4 span tag. After that, I store parts of the text in JavaScript using const ( info )command. Then added some lines of codes for move text in parts in a different direction using JavaScript.

For creating this program you have to create 3 files. First for HTML, second for CSS, and third for JavaScript. Follow the steps for creating this program without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given here below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes.

function.js

The final thing, Create a JavaScript file named ‘function.js‘ and put these codes.

That’s It. Now you have successfully created Text Animate On Scroll Program Using HTML CSS JavaScript. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

15 COMMENTS

  1. Hey, it’s cool you’re providing tricks and stuff like this, but most people aren’t actually learning, they’re just copy-pasting. Maybe go into more depth with the code and people will learn something new.

LEAVE A REPLY

Please enter your comment!
Please enter your name here