Created
July 10, 2025 17:49
-
-
Save askwpgirl/ea457b3f5ddf717652c1eb17a342befb to your computer and use it in GitHub Desktop.
Respect Motion Preferences for Elementor Animated Headline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use the selector below to hide the animated headline highlight */ | |
| @media (prefers-reduced-motion: reduce) { | |
| .elementor-headline--style-highlight svg { | |
| display: none !important; | |
| } | |
| } | |
| /* Use the selectors below to hide the rotating headline and use a different headline */ | |
| @media (prefers-reduced-motion: no-preference) { | |
| .elementor-headline--style-rotate { | |
| display: block !important; | |
| } | |
| .my-normal-headline { | |
| display: none; | |
| } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .elementor-headline--style-rotate { | |
| display: none !important; | |
| } | |
| .my-normal-headline { | |
| display: block; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment