Say goodbye to choppy hover effects. If you use Elementor, you’ve probably noticed a frustrating quirk: when you add a gradient background to a button and a different gradient on hover, the transition isn’t smooth. Instead of fading, it snaps instantly.
This isn’t an Elementor bug; it’s a fundamental limitation of CSS (which treats gradients as background images, not colors).
This generator creates custom, lightweight CSS that bypasses this limitation, giving your Elementor buttons buttery-smooth hover animations.
Animation Logic
Creates an invisible layer with the hover gradient that fades in smoothly.
Gradient Settings
Gradient Angle90°
Normal State
Hover State
Transition Speed
Duration0.4s
Live Preview
Generated CSS
Paste into Advanced > Custom CSS
How It Works
This tool generates CSS using two distinct, modern animation techniques. Choose the one that fits your brand:
- Method 1: Fade (Overlay) Perfect for switching between two completely different gradients. This method creates an invisible layer containing your hover gradient. When a user hovers over the button, that layer smoothly fades into view over the normal state.
- Method 2: Shift (Flow) Perfect for a fluid, glowing, continuous color effect. This method takes all your colors, creates one massive background, and smoothly slides it horizontally when hovered.
How to Use the Generator
- Clear Default Settings: First, in Elementor, go to your button’s Style tab and remove any background colors or gradients you’ve set for both the Normal and Hover states.
- Design Your Button: Use the generator above to pick your Animation Logic, fine-tune your colors, adjust the gradient angle, and set your transition speed.
- Preview: Test the live preview to make sure the animation feels exactly right.
- Copy & Paste: Click Copy CSS, then head to your Elementor editor. Select your button, go to the Advanced tab, scroll down to Custom CSS, and paste the code! (Note: Custom CSS requires Elementor Pro).
Pro Tips
- Elementor Free Users: If you don’t have Elementor Pro, you can still use this! Instead of pasting it into the widget’s Custom CSS, give your button a CSS Class (e.g.,
smooth-gradient-btn), changeselectorin the generated code to.smooth-gradient-btn, and paste it into WordPress Appearance > Customize > Additional CSS. - Match Your Brand: Use the location sliders to control exactly how much of each color shows up, mimicking the exact brand identity you need.
