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.

Fügen Sie Ihrem Webflow-Projekt in wenigen Minuten Mitgliedschaften hinzu.

Mehr erfahren

Über 200 kostenlose, klonbare Webflow-Komponenten. Keine Anmeldung erforderlich.

Ansicht Bibliothek

Fügen Sie Ihrem React-Projekt in wenigen Minuten Mitgliedschaften hinzu.

Los geht's

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

Memberscripts needed

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

Tutorial

Cloneable

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”

Making it work

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.

Schlussfolgerung

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

If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.

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

Take me to Cloneable!

INHALTSVERZEICHNIS
Ovidiu
Was ist Memberstack?

Autorisierung und Zahlungen für Webflow-Websites

Fügen Sie Ihrer Webflow-Website Logins, Abonnements, Gated Content und vieles mehr hinzu - einfach und vollständig anpassbar.

Mehr erfahren
Mit dem Bau beginnen

Probieren Sie Memberstack aus und entdecken Sie, was Sie bauen können!

Memberstack ist 100% kostenlos, bis Sie bereit sind, zu starten - worauf warten Sie also noch? Erstellen Sie Ihre erste App und beginnen Sie noch heute mit der Entwicklung.