Docs / Ele Conditions / Actions reference

Actions reference

Actions define what happens when a trigger fires. Every action can target the element itself or any other element on the page via CSS selector.

Available actions

ActionEffectRequires
ShowMakes the target visible (removes display:none and visibility:hidden)—
HideHides the target (display:none)—
ToggleAlternates between visible and hidden on each trigger fire—
Add ClassAdds a CSS class to the targetCSS Class field
Remove ClassRemoves a CSS class from the targetCSS Class field
Toggle ClassAlternates adding/removing a CSS class on each trigger fireCSS Class field
Scroll ToSmoothly scrolls the page to bring the target into view—
FocusMoves keyboard focus to the target (useful for form fields)—
Close Others in GroupHides all elements sharing the same CSS class, except the one that triggered the actionGroup CSS Class field

Target (CSS selector)

By default, all actions apply to the element the trigger is attached to. Enter a CSS selector in the Target field to affect a different element.

Target valueAffects
(empty)The element the trigger is attached to
#my-modalThe element with id="my-modal"
.popup-overlayThe first element with class popup-overlay
TIP
Find the CSS ID or class of any Elementor element in its Advanced tab under CSS ID and CSS Classes.

Building accordions with "Close Others in Group"

The Close Others in Group action is designed for accordion-style components where only one item should be open at a time.

  1. Give all accordion items the same CSS class (e.g. my-accordion)
  2. On each item, add a trigger: click → Close Others in Group
  3. Set Group CSS Class to my-accordion

When a visitor clicks any item, all other items in the group are hidden. Combine with click → Toggle on a second trigger row to also expand the clicked item.