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.

Añada afiliaciones a su proyecto Webflow en cuestión de minutos.

Más información

Más de 200 componentes Webflow clonables gratuitos. No es necesario registrarse.

Ver biblioteca

Añade membresías a tu proyecto React en cuestión de minutos.

Empezar

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

Miembros necesarios

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

Tutorial

Clonable

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”

Hacer que funcione

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.

Conclusión

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!

ÍNDICE
Ovidiu
¿Qué es Memberstack?

Autenticación y pagos para sitios Webflow

Añada inicios de sesión, suscripciones, contenido cerrado y mucho más a su sitio Webflow: fácil y totalmente personalizable.

Más información
Empezar a construir

Pruebe Memberstack y descubra todo lo que puede crear.

Memberstack es 100% gratis hasta que estés listo para lanzarla - así que, ¿a qué estás esperando? Crea tu primera aplicación y empieza a construir hoy mismo.