# Active Menu Button in Header that changes on page scroll

**URL:** <https://forum.bubble.io/t/active-menu-button-in-header-that-changes-on-page-scroll/194563>\
**Category:** Need help\
**Created:** [March 3, 2022, 10:23pm UTC](https://forum.bubble.io/t/active-menu-button-in-header-that-changes-on-page-scroll/194563 "2022-03-03T22:23:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aestela](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aestela/32/140161_2.png) [@aestela](https://forum.bubble.io/u/aestela)\
**Post date:** [March 4, 2022, 3:04am UTC](https://forum.bubble.io/t/active-menu-button-in-header-that-changes-on-page-scroll/194563/2 "2022-03-04T03:04:21Z")

</div>

Hi @chad5, the only way I believe this could be achieved in Bubble is using a conditional on the button, using “Current page scrolling position” as per the following example.

![image](https://us1.discourse-cdn.com/bubble/original/3X/5/3/53515cfbb2dd79cab37f8712ffcede8d8ef6cb46.png)

There’s a big limitation with this if you have a responsive site that enlarges vertically since your pixel reference will change.

On the other hand this plugin (which I haven’t tested) might do the trick for you:

> [@\[Plugin Announcement\]: Scrollspy](http://forum.bubble.io/t/plugin-announcement-scrollspy/136050/20):
>
> Scrollspy v2.1.0 is here! This small release fixes an important bug in the “Scrollspy for Horizontal RG” element. Sometimes plugin was returning an incorrect index in the Closest mode. Special thanks to @lutahara for pointing this out!

---

_[View the full topic](https://forum.bubble.io/t/active-menu-button-in-header-that-changes-on-page-scroll/194563)._
