How to Add a Page Scroll Progress Bar to your Webflow Site

This post will teach you how to add a page scroll progress bar, why you might want to show reading progress to your visitors, and how to implement it in your Webflow site.

Voeg in enkele minuten lidmaatschappen toe aan uw Webflow-project.

Meer informatie

Meer dan 200 gratis kloonbare Webflow componenten. Aanmelden is niet nodig.

Bekijk bibliotheek

Voeg in enkele minuten lidmaatschappen toe aan uw React-project.

Aan de slag

How to add a page scroll progress bar to your Webflow site

Ledenafschriften nodig

https://www.memberstack.com/scripts/page-scroll-progress-bar

Les

Kloonbaar

Why/Use Cases

- Display a scroll progress bar so users have a sense of where they are on the page and how long they have until they reach the end of your content.

 Adding a page scroll progress bar to a Webflow site

Some things just don’t always make sense for certain visitors, which is why you can choose to show or hide certain elements based on what you know your visitors need or don’t need.

For example, you might want to display an App Store button on iOS devices and a Play Store button for Android devices, you might want to hide both on desktop, show a Microsoft Store link on Windows only, and so on.

This guide will help you fine-tune display conditions based on your and your users’ needs.

To add a page scroll progress bar to your Webflow site, we’re going to use MemberScript #117 – Page Scroll Progress Bar. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting it up

First, you’ll need to create a container where the progress bar will be displayed at the top of the page and place it inside a wrapper. Then, add this attribute to it:

· ms-code-ps=”container”

Now within this container add another one that will house the progress bar itself and add this attribute to it:

· ms-code-ps=”bar”

Style the progress bar however you like and when you’re done, set its width to 0%.

When you’re at the beginning of the page, the bar will have a width of 0% and when you’re at the end, its width will be 100%.

However, if you want the progress bar to start filling at a specific point inside your page instead of at the top, add an empty div block right before that point and add this attribute to it:

· ms-code-ps=”start”

Additionally, if you want the progress bar to hit 100% at a specific point before the bottom of the page, add another empty div block after that point and add this attribute to it:

· ms-code-ps=”stop”

Het laten werken

Now that you’ve got everything set up in Webflow, all you need to do is add the MemberScript #117 custom code to your page (or sitewide), before the closing body tag.

Alternatively, you could also add the code inside an embed element within the parent wrapper of your progress bar and set it to hidden.

Conclusie

That’s everything, you can now go ahead and test the progress bar on your live site.

Als u ons demoproject wilt gebruiken om u op weg te helpen, klikt u op de knop hieronder om het aan uw Webflow site toe te voegen.

Our demo can help you add a scroll progress bar on your Webflow site.

Take me to Cloneable!

INHOUDSOPGAVE
Ovidiu
Wat is Memberstack?

Auth & betalingen voor Webflow sites

Voeg logins, abonnementen, gated content en nog veel meer toe aan uw Webflow site - eenvoudig en volledig aanpasbaar.

Meer informatie
Bouwen

Probeer Memberstack uit en ontdek wat je kunt bouwen!

Memberstack is 100% gratis totdat u klaar bent om te lanceren - dus waar wacht u nog op? Maak je eerste app en begin vandaag nog.