Black Friday Up to 50% off every Pro plan. Annual from $24.50, Lifetime from $51.Up to 50% off ProAgency Bundle $449 $1,499 Agency Bundle$1,499 $449 Ends in Getthe deal
Utility extension · Free

Elementor custom CSS, free: for any Atomic Element

Add custom CSS for Elementor Atomic Elements: a CSS box on Headings, Buttons, Images and containers, where you type selector to target that one element, and give each device its own rules. Works on Elementor Free.

  • Free on Elementor Free
  • Per-breakpoint on/off and CSS
  • selector targets this element only
  • Script loads only on pages that use it

Animation Addons 4.3Updated

Demo variations

Six ways to use Custom CSS.

Six real sections styled with one Custom CSS box each. Hover, swipe and resize them, then copy the CSS from the caption.

01

Gradient headline for a studio hero

The headline is filled with an orange-to-violet gradient on a near-black hero. Switch on Enable Custom CSS on the Heading and use Custom CSS: selector { background: linear-gradient(90deg,#ff6a3d,#7a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

02

Swipeable menu cards on mobile only

Three columns on desktop, one swipeable row on phones. On the Grid, switch on Enable Custom CSS at the Mobile breakpoint only and add selector { grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; } selector > * { scroll-snap-align: start; } That is Elementor mobile only CSS. Swipe the row in Mobile preview.

03

Underline that draws in on hover

Hover "See how it works": the underline grows from left to right. This Elementor hover CSS goes in Custom CSS on the Button: selector { position: relative; } selector::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: currentColor; transition: width .3s; } selector:hover::after { width: 100%; }

04

Colour portraits when a card is hovered

Staff photos are greyscale until their card is hovered. Put this in Custom CSS on each card's Div Block: selector img { filter: grayscale(1); transition: filter .4s; } selector:hover img { filter: none; }

05

A "Most popular" ribbon on one pricing card

The middle card carries a diagonal corner ribbon with no extra element. On that Div Block use Custom CSS: selector { position: relative; overflow: hidden; } selector::before { content: "Most popular"; position: absolute; top: 18px; right: -40px; transform: rotate(45deg); background: #1f7a5a; color: #fff; padding: 4px 48px; font-size: 12px; }

06

A logo strip that stops for reduced motion

Client logos slide left in a loop, and stand still for visitors who ask their device to reduce motion. Use Custom CSS on a Flexbox: @keyframes slide { to { transform: translateX(-50%); } } selector { animation: slide 30s linear infinite; } @media (prefers-reduced-motion: reduce) { selector { animation: none; } }

Features

What you get with Custom CSS.

Every point below is a real control in the Custom CSS panel section or part of how it works. Nothing here needs custom code.

Target one element without hunting for IDs

Type selector and Animation Addons swaps it for this element's own attribute, so you never look up a class or ID. That makes Elementor custom CSS per element simple, and a duplicated card carries its rule without styling its neighbours.

A different rule for every device

Enable Custom CSS and Custom CSS are both responsive. Switch the box on for Mobile only, or write one rule for Desktop and a lighter one for Tablet. That is Elementor custom CSS per device.

CSS the Style tab can't express

Elementor pseudo element CSS, @keyframes, descendant selectors such as selector:hover img, and media queries all work, because the field takes plain CSS.

Animated presets keep working

Some Animation Addons presets store keyframes and ::before layers in this extension's fields. Keeping Custom CSS switched on is what lets those presets play on the front end.

Step by step

Add custom CSS in Elementor 4

Six steps from switching it on to publishing. The bold names are the exact labels you will see on screen.

Try Animation Addons
  1. Install and activate Animation Addons for Elementor and open a page in the Atomic Editor.

  2. Select a Heading, Button, Image, SVG, Flexbox, Div Block or Grid.

  3. In the element's panel, open the Custom CSS section and switch on Enable Custom CSS.

  4. Write your rules in Custom CSS, starting with selector { … } to target this element.

  5. Use Elementor's device switcher to add or turn off rules for Tablet or Mobile, which gives you Elementor custom CSS per device.

  6. Check the canvas, then publish.

Who it's for

Who uses Custom CSS?

The people who get the most out of it, and what they use it for.

  • Freelancers and agencies

    Building on Elementor Free for clients who won't pay for Pro.

  • Designers moving from v3

    Who miss the per-widget CSS box.

  • Developers

    Who need pseudo-elements, keyframes or one-off mobile fixes.

FAQ

Questions about Custom CSS

How do I add custom CSS without Pro?

Install the free Animation Addons for Elementor plugin, select an atomic element and open its Custom CSS section. Turn on Enable Custom CSS and write your rules with selector. This is Elementor custom CSS without Pro: it works on Elementor Free, so you do not need the Advanced plan for Elementor 4 custom CSS on one element.

What does selector mean in the CSS box?

In the Elementor custom CSS selector box, selector stands for the element you are editing. On the page it is replaced with that element's own attribute, so selector { color: red; } styles only this Heading. You can also write selector:hover, selector::after or selector img.

Can I write CSS for mobile only?

Yes. Enable Custom CSS and the Custom CSS field are both responsive. Switch Elementor's device mode to Mobile and you get Elementor mobile only CSS: turn the box on for phones, write different rules there, or turn it off on that device. Ordinary @media queries also work inside the field.

Why is the CSS section missing?

Custom CSS is offered on Elementor's Heading, Paragraph, Button, Image, SVG, Flexbox, Div Block and Grid, and on most Animation Addons atomic elements. It is not on Elementor's Divider, YouTube, Video, Tabs, Accordion or Background Video. Wrap that element in a Div Block and target it from there, for example selector iframe { … }.

Is the Custom CSS extension free?

Yes. The custom CSS extension is part of the free plugin, so it works without Animation Addons Pro and without Elementor Pro. You can switch it off in the plugin's Extensions settings. Rules are applied on the Elementor editor canvas as well as on the published page.

Does it work with hover and keyframes?

Yes, because the field takes plain CSS. Write selector:hover for Elementor hover CSS, @keyframes for animations, and ::before or ::after for Elementor pseudo element CSS. Two of the demos above use exactly this: an underline that draws in on hover and a logo strip that loops.

Does custom CSS slow down my site?

Very little. Animation Addons only adds the Custom CSS script to pages where an element has the box switched on, and the rules are plain CSS. One trade-off: the script writes the rules after the page loads, so keep layout styles that must show at first paint in the Style tab or a Class.

Custom CSS or Elementor Classes?

Use Elementor's Classes and the Style tab for anything the panel can do, because those styles are shared and compiled with the page. Reach for Custom CSS when the panel cannot express it: pseudo-elements, keyframes, child selectors, scroll-snap or a one-element exception.

Does the CSS show in the editor?

Yes. Your rules are applied on the Elementor editor canvas as well as on the published page, so you can check the result before you publish. Use the device switcher to see the Tablet and Mobile rules apply on their own breakpoints.

More answers in the FAQ · Documentation · Free vs Pro

Animation Addons Pro · Elementor 4

Put a CSS box back on every element

Free on Elementor Free, targeted with one word, and different on every device.

Black Friday dealup to 50% off every Pro planEnds 10 Dec

  • 15-day money-back guarantee
  • Rated 4.6 / 5 on WordPress.org
  • No Elementor Pro needed
  • Elementor 3 & 4 in one license