CSS Button Styles — Animated Hover Effects to Copy

Pick from 24 animated CSS buttons: fills, borders, glows, shines and 3D presses. Set the colors, size and hover, pressed and clicked states, choose px or rem, then copy clean HTML and CSS or paste the button into Webflow.

Updated

Hover a button to see its effect, press it to see the pressed state, and click a tile to select it.

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the CSS Button Styles

  1. Hover the buttons and click the style you like.
  2. Set your colors, size, corner radius and speed, plus the hover, pressed and clicked states. Every style updates live.
  3. Copy the CSS and HTML, or use Copy all for one block.
  4. For Webflow, press Copy to Webflow and paste into the Designer with Ctrl/⌘+V.

Hover effects that stay light

Every style here is plain CSS, apart from one line-sweep style that adds a small inline SVG. No library and no JavaScript. Colors are custom properties at the top of the rule, so restyling a button later means changing two or three values.

  • Keyboard users get a visible :focus-visible ring on every style.
  • Reduced motion is respected: movement switches off for visitors who ask for less animation.
  • Links or buttons: use <a> to go somewhere and <button> to do something. The CSS works on both.

Hover, pressed and clicked states

Each button comes with a :hover text color and an :active pressed color and size. Turn on Clicked state to add an .is-clicked style with a short script, which suits like, save or follow buttons. Choose rem to size the button relative to the root font size, assuming the browser default of 16px. Thin 1px and 2px lines stay in pixels so they remain sharp.

Using a style in Webflow

Copy to Webflow pastes an Embed element containing the styles and the button. Webflow can’t build pseudo-element animations in the Style panel, so an Embed keeps the effect exact. To style your own buttons instead, put the CSS in your site’s custom code and give them the class.

Want to build a button from scratch? Use the CSS Button Generator. Check text legibility with the Contrast Checker, and see the Hamburger Menu Icons for animated menu buttons.

Also searched as: css button hover effects, animated css buttons, button hover animation, css buttons copy paste, webflow button hover, cool css buttons, button border animation css.

Tools that pair well with the CSS Button Styles

  • CSS Hover Animation Generator — Design hover animations for buttons, cards, links and icons.
  • CSS Gradient Generator — Design a gradient visually — drag color stops, change the angle or type, start from a preset — and copy production-ready CSS with a solid fallback color.
  • Box Shadow Generator — Stack multiple shadow layers, tweak offsets, blur, spread and opacity on a live card, then copy the box-shadow or text-shadow CSS.
  • CSS Animation Generator — Design CSS animations on a real keyframe timeline.

Frequently asked questions

Can I use these buttons in commercial projects?
Yes. Copy them into any personal or client project. No attribution is needed.
How do I paste a button into Webflow?
Choose a style, press Copy to Webflow, then click where it should go in the Designer and press Ctrl/⌘+V. It arrives as an Embed element with its styles inside.
How do I change the button link in Webflow?
Open the Embed element and change the href in the code. To keep using Webflow’s link settings, add the CSS to your site’s custom code and give a normal Webflow button the class instead.
Do these buttons need JavaScript?
No. Only CSS, and one style uses a small inline SVG in the HTML. The optional clicked state adds a few lines of JavaScript.
Can I get the CSS in rem instead of px?
Yes. Set Units to rem and the sizes convert using a 16px root. Thin 1px and 2px lines stay in pixels.
Do the hover effects work on phones?
Touch screens have no real hover, so the button stays readable in its normal state and the effect may show briefly on tap.
Can I install CSS Button Styles as a web app and use it offline?
Yes. CSS Button Styles is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools