Design both states
Edit normal and hover colors, borders, shadows and transforms independently.
Design a button’s normal and hover states side by side. Fine-tune gradients, borders, shadows, lift and transitions, then copy clean CSS.
Start with a polished preset or control every detail yourself. The preview makes the relationship between the default button and its hover state easy to understand.
Edit normal and hover colors, borders, shadows and transforms independently.
Balance blur, spread, offset and opacity for a subtle or dramatic button shadow.
Get a reusable class with a focused :hover rule and smooth transition.
Pick a preset or begin with the default purple gradient button.
Switch between the two state tabs and adjust the fill, border, shadow, lift and scale.
Hover or keyboard-focus the live button. Pin the hover state when working on a touch device.
Paste the generated .my-button styles into your project and change the class name if needed.
Style the button normally, then add a :hover rule with the colors, shadow and transform you want. This generator creates both rules for you.
Yes. Adjust the shadow offset, blur, spread, color and opacity independently for the normal and hover states.
Use transform: translateY() with a small negative value and pair it with a deeper shadow. A transition makes the movement feel smooth.
Yes. The generated preview treats keyboard focus like hover and keeps the browser’s visible focus outline for accessibility.
Yes. It is free, requires no account and generates your button CSS locally in the browser.
Keep your frontend workflow moving with these free online CSS generators.