# Tansparent Menu then shrinks and changes to dark on scroll

**URL:** <https://community.wpbeaverbuilder.com/t/tansparent-menu-then-shrinks-and-changes-to-dark-on-scroll/13496>\
**Category:** Beaver Builder\
**Created:** [December 3, 2020, 3:07am UTC](https://community.wpbeaverbuilder.com/t/tansparent-menu-then-shrinks-and-changes-to-dark-on-scroll/13496 "2020-12-03T03:07:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalguru](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Digitalguru](https://community.wpbeaverbuilder.com/u/Digitalguru)\
**Post date:** [December 3, 2020, 3:07am UTC](https://community.wpbeaverbuilder.com/t/tansparent-menu-then-shrinks-and-changes-to-dark-on-scroll/13496/1 "2020-12-03T03:07:44Z")

</div>

Hello

I am building a test site and i would like it to have a transparent menu at the top when the site loads then if the user scrolls the logo shrinks and the background turns dark.

I have tried different methods. I can get a transparent menu but it stays transparent or a colored background menu but it also stays that way. I cant get to come up transparent then change on scroll.

I have modified fl-page-header, and fl-shrink-header. Any help would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Digitalguru](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Digitalguru](https://community.wpbeaverbuilder.com/u/Digitalguru)\
**Post date:** [December 7, 2020, 8:28am UTC](https://community.wpbeaverbuilder.com/t/tansparent-menu-then-shrinks-and-changes-to-dark-on-scroll/13496/2 "2020-12-07T08:28:11Z")

</div>

I actually figured it out. It was just in how I chained the classes in the css.

---

<div class="post-metadata">

**Author:** ![bollestina](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/b/b9bd4f/32.png) [@bollestina](https://community.wpbeaverbuilder.com/u/bollestina)\
**Post date:** [September 29, 2025, 3:23pm UTC](https://community.wpbeaverbuilder.com/t/tansparent-menu-then-shrinks-and-changes-to-dark-on-scroll/13496/3 "2025-09-29T15:23:46Z")

</div>

I’m trying to do the same thing. Since you’ve solved it, would it be possible for you to share the code?  
Or the principle for it.

That would be much wonderful!

Kind regards Christina
