Change Color of Header and Show-Hide Elements On Scroll

4 months ago

< 1 min read

Posted by:


Subscribe to newsletter

By subscribing you agree to with our Privacy Policy.


Useful for transparent headers.


Under ‘Motion Effect’ settings, below ‘Offset’, you must set the ‘Effects Offset’ into ‘1’ or larger. Otherwise, the CSS won’t work.


/* This CSS is to change color */
.elementor-sticky--effects { background: #181818 /* Change the color */ !important;}

/* This CSS is to add border on scroll */
.elementor-sticky--effects { border-width: 0px 0px 1px 0px;

/* This CSS is hide elements */
.elementor-sticky--effects .hideme {display: none}

/* This CSS is show elements */
.showme {display: none}
.elementor-sticky--effects .showme {display: block}

/* To Smooth Things Out */
.elementor-sticky--effects, .hideme .showme {
  transition: 0.5s all ease-in-out;


Use drop shadow instead of line for header border. Replace ‘border on scroll’ line with:

selector.elementor-sticky–effects { box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);

Read more


2 min read

Disabling the Device’s Default ‘Dark Mode’ in WordPress

If you are trying to convert your WordPress website to APK / AAB, you may need to disable the device’s

Read more

Single Post

2 min read

Hiding “Previous Post” Navigation in Elementor with Custom CSS

Hi, there! I’ll share some quick tips on how to change the appearance of article navigation on your Elementor website. We’ll

Read more


< 1 min read

How to Fix Favicon Not Showing on WordPress Multisite

In some cases, sub-sites on multisite is not showing the favicon. To assign favicon for each site on WordPress multisite,

Read more

Text Widget

< 1 min read

Add Punctuation (…) at the End of Headings

Add this code to add three dots (…) at the end of your ‘Headings’. Replace the three dots between the

Read more

See How It Works

Create better websites, faster.

Download the Entire Library

Adaptative, neutrally designed components.

Customer Service

Focus Website

Today, March 2

Hi, there 👋

How can I help you?

Start Chat with:

We use cookie to improve your experience on our site. By using our site you consent cookies.