How to Edit Background Animations on Elementor
Elementor lacks built-in background animations; use custom CSS classes on sections/containers with gradient or image backgrounds and keyframes for effects like shifting colors or scrolling images. Add classes via Advanced tab, configure backgrounds in Style tab, and paste CSS in Custom CSS. Common setups take 15-45 minutes with troubleshooting for caching or selectors.
Prerequisites
- Elementor plugin installed (free version sufficient)
- Seamless background image for loops (Photoshop offset tool recommended)
- Basic CSS knowledge for pasting code
- Optional: Elementor Pro for Custom CSS or child theme
- Test on staging site for performance
Step-by-Step Instructions
Open Elementor Editor
Select Target Section or Container
Configure Background in Style Tab
Assign CSS Class
bgloop (images) or bgcss (gradients), lowercase with hyphens, no spaces.Add Custom CSS for Gradient Animation
selector .bgcss {
background-size: 400% 400%;
animation: gradientShift 20s ease infinite;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}Adjust 20s for speed, 400% for intensity.Add Custom CSS for Image Loop (Left-to-Right)
selector .bgloop {
animation: looping 10s infinite linear;
background-size: 100vw auto;
}
@keyframes looping {
to { background-position: 100vw 0 }
}Use -100vw for right-to-left.Add Custom CSS for Image Loop (Top-to-Bottom)
selector .bgloop {
animation: looping 10s infinite linear;
background-size: auto 100vh;
}
@keyframes looping {
to { background-position: 0 100vh }
}Ideal for patterns like falling elements.Preview and Update
Test Responsiveness
100vw/100vh; add media queries in CSS for breakpoints if laggy.Common Issues & Troubleshooting
Animation not visible or not playing
Verify exact CSS class (e.g., bgloop) matches selector; clear cache, test in incognito.
Choppy playback or mobile lag
Reduce colors/stops, use linear easing, limit background-size intensity; test with dev tools.
Non-seamless image breaks loop
Create seamless image via Photoshop offset tool; ensure Size: Cover, no-repeat.
CSS not applying (free version)
Use site-wide Additional CSS; upgrade to Pro for per-element Custom CSS.
Hover or direction issues
Add :hover rules; use negative values like -100vw to reverse direction.