Sticky transparent elementor header

Create a Smooth Sticky Header Animation on Scroll with Elementor

Modern websites often use a transparent header that smoothly transforms into a solid sticky navigation bar as you scroll. This clean effect improves navigation while keeping the hero section visually appealing.

In this tutorial, learn how to build a beautiful scroll-based sticky header animation using Elementor’s Theme Builder — no advanced coding required.

CSS Code:

#headone .head-child{
    border: 1px solid rgba(0,0,0,0.0);
}
#headone.elementor-sticky--effects .head-child {
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(7px);
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid rgb(255,255,255,0.6);
    padding-right: 30px;
    padding-left: 30px;
}

#headone.elementor-sticky--effects .head-child .sticky-menu-items ul li a {
    color: fff !important;
}

#headone.elementor-sticky--effects .head-child, #headone.head-child .sticky-menu-items ul li a, #headone .elementor-sticky--effects .head-child .header-logo, #head .head-child {
    transition: .3s all ease-in-out;
}

/* mobile Responsive */

@media (max-width: 767px){
    #headone.elementor-sticky--effects .head-child{
        background: rgba(0,0,0,0.4) !important;
    }

    .elementor-nav-menu--dropdown{
        margin-left: 10px;
        margin-right: 10px;
    }
}

Quick Overview of the Build

  1. Create Header Template: Go to Templates > Theme Builder > Add New > Header. Use Flexbox containers for a clean layout.
  2. Header Structure
    • Logo (left)
    • Navigation Menu (center)
    • Call-to-Action Button (right)
    Style typography, hover effects, and alignment for desktop.
  3. Make it Responsive: Adjust widths, hide/show elements, and style the mobile hamburger menu for tablet and mobile views.
  4. Add Sticky + Transparent Effect
    • Set the main container background to transparent.
    • Enable Sticky (Top) in Motion Effects.
    • Adjust Effects Offset and Z-index.
  5. Smooth Scroll Animation: Add a few lines of custom CSS to create a nice transition:
    • Background appears with blur
    • Rounded corners and padding
    • Color changes on scroll
    Elementor’s .elementor-sticky–effects class handles the trigger automatically.

Why This Effect Rocks

  • Preserves hero visuals at the top
  • Provides easy navigation after scrolling
  • Fully responsive and lightweight
  • Gives a premium, professional look

This simple yet stunning header animation works great for any WordPress site built with Elementor.

Have you implemented a similar effect? Share your results below!

Leave a Reply

Your email address will not be published. Required fields are marked *

WhatsApp