How to disable smooth scroll in Bricks

In certain situations like using ScrollSmoother from GreenSock you may be looking to disable smooth scrolling functionality that’s built into Bricks.

To disable Bricks’ smooth scrolling, go to Bricks → Settings → Custom code and add this in the Body (footer) scripts text area:

<script>
window.bricksSmoothScroll = () => false
</script>

Reference

https://brickslabs.com/how-to-wrap-main-element-in-custom-divs-in-bricks/#comment-263

Instant access to all 250+ Bricks code tutorials with BricksLabs Pro

Leave the first comment