help center

On this page

Create a Sticky Transparent Header

Last Update: March 26, 2024

In this article, you can learn how to create a sticky transparent header effect using Elementor’s CSS class.

This CSS code only works if you’re using sections and columns. If you’re using containers, learn more about creating headers with containers in Create a header template using Flexbox Container.

Following are the steps:

  1. Open the header in the Elementor Editor.
  2. Edit the header by clicking its handle Create a Sticky Transparent Header 4. The Edit Section panel shows on the left. For details on editing header, see How To Edit Header In WordPress With Elementor.
    Create a Sticky Transparent Header 2
  3. Click Advanced
  4. Expand Motion Effects.
  5. Use the Sticky dropdown menu to select the part of the screen the header will stick to:
    Create a Sticky Transparent Header 6
    • None – This disables the sticky header. Do not choose.
    • Top – Choose to stick your header to the top of the screen.
    • Bottom – Choose to stick your header to the bottom of the screen.
  6. In Sticky On, select which device the sticky setting should apply to Following are the options:
    Create a Sticky Transparent Header 3
    • Desktop – Sticky on desktop/laptops.
    • Tablet Portrait – Sticky on tablets.
    • Mobile Portrait – Sticky on mobiles.
  7. Set the following: (Displays only if Sticky is set to Top or Bottom)
    • Offset – It pushes the sticky element up or down by a number of pixels.
    • Effects Offset – This is the number of pixels the user must scroll before the sticky effect begins. This works only when you apply Custom CSS.
    • Stay in Column – Toggle to Yes if you want the section or column to scroll up with the header when the header is offscreen. For details, see Sticky Inner Section Improvements.
  8. Expand Custom CSS. The Add your own custom CSS code block shows.
  9. Enter the following CSS code to the block.
    Create a Sticky Transparent Header 1
    Following is an example:

    selector.elementor-sticky--effects{ background-color: rgba(133,130,255,0.5) !important }
    selector{ transition: background-color 2s ease !important; }  selector.elementor-sticky--effects >.elementor-container{ min-height: 80px; }  selector > .elementor-container{ transition: min-height 1s ease !important; }
  10. Click Publish.
Create a Sticky Transparent Header 5
This CSS takes effect when the user has scrolled the number of pixels specified in the Effects Offset options under Motion Effects.

Have more questions? We’re more than happy to assist.

Link is copied to clipboard!
On this page

Is this article helpful?

Share this article