In this tutorial I will show you how to animate a line on scroll in Elementor.
There are two methods: scroll scrubbing animation, and entrance animation.
With method 1, the line is animating in and out directly based on the scroll position. We are using Elementor Pro scrolling effects, along with custom code to get exactly what we want here.
For method 2, the animation is similar to an entrance animation: it plays out smoothly, only one time, when the element enters the viewport.
See the demo here:
Features:
- Divider Element: By default we are using the Divider element here, and this will work fine with any of the available line patterns
- Polyvalent: It actually works fine for all elementor elements, so you can also reveal an image, video, map, or any other element in the same way.
- Adjust the animation precisely: the animation duration, timing function and delay are all adjustable.
- Easy to replicate: copy paste the code, setup your element, and you are good to go.
- Inline version: Ideal to use in front of titles and text. Note that the inline version can only be a line, styled as you wish, but not any other element.
Let's get started!
Method 1. Elementor Animated Line on Scroll Scrubbing
This is a premium tutorial. Purchase access to unlock the full tutorial.
6 Responses
Hey
Could it be that the scrolling line does not works?
Hey Oliver!
Seems to be working as it should in my demo. Would you have a URL I could look at, where it's not working?
Cheers!
its here on this page.
but i guess i get it wrong. i thought "Animated Line on Scroll (Scroll down)" is a scroll line animation. But the first line starts with "Reveal From Top"
sorry
Did you expect it to animate based directly on the scroll position?
yes and i guess you've changed it.
thanks, you're doing a very awesome support.
Hey Oliver!
Yes I added both options now, animate based on scroll position, and animate one time like an entrance animation.
Cheers!