Respect "Reduce Motion" in Divi Animations
Turns off Divi's entrance animations, parallax and scroll effects for visitors whose device asks for reduced motion, while everyone else keeps the effects.
Opens WPIDE on
Code
@media (prefers-reduced-motion: reduce) {
.et_animated,
.et-waypoint,
.et_pb_animation_top,
.et_pb_animation_bottom,
.et_pb_animation_left,
.et_pb_animation_right {
opacity: 1 !important;
animation: none !important;
transform: none !important;
}
.et_parallax_bg,
.et_pb_parallax_css {
background-attachment: scroll !important;
transform: none !important;
}
}
Notes
Content hidden until its animation starts is made visible immediately.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.