User / Level Icon
Beginner
Gear Time Icon
Webflow
Time Icon
4
 Minutes

Instant Scroll

Learn how to create instant scroll effects in Webflow using lightweight custom code. Improve navigation, control scroll behaviour, and enhance UX without plugins.

Copy Code

Webflow Instant Scroll Tutorial: Disable Smooth Scroll Using data-scroll-time

Instant scrolling is a simple but powerful technique for improving navigation and user experience on Webflow websites. In some cases, smooth scrolling can feel slow, imprecise, or visually distracting—especially for utility links, jump menus, or accessibility-focused layouts. In this tutorial, you’ll learn how to create instant scroll behaviour in Webflow by using a custom attribute, without relying on heavy JavaScript libraries or complex interactions.

This method is lightweight, CMS-safe, and easy to reuse across projects.

What is instant scroll in Webflow?

Instant scroll refers to immediately jumping the viewport to a target section on the page without any animation. Unlike smooth scrolling, which animates the movement over time, instant scroll moves the page position immediately when a link or button is clicked.

This behaviour is ideal when speed, clarity, or precision is more important than animation.

Why disable smooth scrolling?

While smooth scrolling can look polished, it is not always the best choice. Some common reasons to disable it include:

– Faster navigation for long pages
– Avoiding motion sensitivity issues for users
– Cleaner behaviour for anchor-based navigation
– More predictable scroll positioning
– Better control when using fixed or sticky headers

Instant scroll is especially useful for menus, skip links, and call-to-action buttons that need to feel immediate.

How data-scroll-time works

The data-scroll-time attribute controls how long the scroll animation lasts. When this value is set to 0, the scroll animation duration is removed entirely, resulting in an instant jump to the target section.

Adding data-scroll-time="0" to a link or button ensures that clicking it scrolls immediately instead of animating.

This approach works cleanly alongside Webflow’s native anchor linking and does not interfere with CMS content or page load behaviour.

How to add instant scroll in Webflow

To implement instant scroll:

  1. Select the button or link that triggers the scroll
  2. Open the Element Settings panel
  3. Add a custom attribute
  4. Set the attribute name to data-scroll-time
  5. Set the value to 0

Once applied, the scroll behaviour for that element will switch from smooth to instant.

Does this work with fixed or sticky navbars?

Yes. Instant scroll works well with fixed or sticky navigation layouts. Because there is no animation, the page lands immediately on the calculated position. If your site uses a fixed header, you can pair this approach with an offset in your scroll logic to prevent content from being hidden underneath the navbar.

This makes instant scroll more predictable than default anchor behaviour in many layouts.

Using instant scroll on CMS pages

Instant scroll works on CMS template pages as long as the target elements exist on the page. This makes it suitable for blog posts, service templates, landing pages, and dynamically generated layouts.

You can reuse the same attribute pattern across multiple CMS items without modification.

Performance and SEO considerations

This technique does not negatively impact SEO. All content remains fully accessible to search engines, and no JavaScript is executed until a user interacts with the page. Because the solution is lightweight, it has virtually no performance overhead.

For best results:

– Keep scripts minimal
– Avoid stacking multiple scroll handlers
– Test behaviour across breakpoints

When to use instant scroll instead of smooth scroll

Instant scroll is best used when navigation speed and clarity matter more than visual motion. It works particularly well for:

– One-page layouts
– Utility navigation links
– Accessibility-focused designs
– Large content-heavy pages

Smooth scrolling still has its place, but instant scroll gives you full control when animation is unnecessary.

Final thoughts

Using data-scroll-time="0" is one of the simplest ways to control scroll behaviour in Webflow. It’s clean, reusable, and avoids overengineering a problem that often only needs a small adjustment. If you want precise, predictable navigation without visual delay, instant scroll is a solid solution to keep in your Webflow toolkit.

Frequently Asked Questions

How do I make instant scroll in Webflow?

You can create instant scroll in Webflow by adding a custom attribute such as data-scroll-time="0" to your trigger element. This overrides smooth scrolling behaviour and forces the page to jump instantly to the target section when clicked.

What does the data-scroll-time attribute do?

The data-scroll-time attribute controls the duration of the scroll animation. Setting the value to 0 removes any animation, resulting in an instant scroll instead of a smooth scroll transition.

Does instant scroll work with fixed or sticky navbars?

Yes. Instant scroll can be configured to account for fixed or sticky navigation by applying an offset in your script. This prevents content from being hidden underneath the navbar when scrolling to a section.

Is using instant scroll bad for SEO?

No. Instant scroll does not negatively affect SEO as long as all content remains visible in the HTML and is not dynamically hidden from search engines. The scroll behaviour only affects user interaction, not page indexing.

Can I use instant scroll on CMS pages in Webflow?

Yes. Instant scroll works on CMS templates as long as the target elements exist on the page. This makes it ideal for blog posts, service pages, and dynamic landing pages built with Webflow CMS.
Have Any Further Questions?
I'm Always Down To Help.
Contact Me

You Might Also Like...

View All Tutorials