# Hover.css — card for AI agents

Collection of CSS hover effects for links, buttons and icons (2D transitions, borders, shadows, icon motion) in CSS, Sass and Less.

Category: Web animation examples and effects (also: UI animation (Lottie, Rive)) · maker Ian Lunn Design Limited · checked 2026-11-05 · style: minimal, flat

## Price
- Price: Free tier
- Free tier: Free for personal/open-source use (MIT); commercial use needs a paid license.
- Pricing page: https://ianlunn.co.uk/store/hover-css/

## License
MIT for personal/open source; paid Commercial licenses — https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt

- commercial: **conditions** (Commercial use with conditions)
  > For commercial use, Hover.css is made available under Commercial, Extended Commercial, and OEM Commercial licenses.
  (https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt)
- attribution: **no** (No credit needed)
  > For personal/open source use, Hover.css is made available under a [MIT license]
  (https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt)
- in app: **conditions** (Ship inside your app with conditions)
  > Your application can't be sold
  (https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt)
- redistribute: **conditions** (Pass the files on to your users only with conditions)
  > Your modifications remain open-source
  (https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt)

## Rules to follow
- Commercial or client sites need a paid Hover.css license.
- Free use only for personal/open-source projects.

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm install hover.css or copy the single effect's CSS from the GitHub repo; for commercial projects the user buys a license first. (sign-in: none)
- Formats: css, scss, less
- Not allowed: Paid license for commercial use

## How to connect
- Package (npm/PyPI)
- npm: `npm install hover.css`
- Repository: https://github.com/IanLunn/Hover
- Website: https://ianlunn.github.io/Hover/

## Notes
Dual-licensed: an agent should not drop it into a commercial site without the user's paid license. Safer free alternatives: Animate.css, Uiverse.

## Numbers (AgentGid data)
- Gid Score: 25
- GitHub stars: 29,415
- Downloads last week: 3,320

## Lines to paste into your prompt or AGENTS.md

```
- Hover.css (Web animation examples and effects, UI animation (Lottie, Rive)). Collection of CSS hover effects for links, buttons and icons (2D transitions, borders, shadows, icon motion) in CSS, Sass and Less. Price: free tier; commercial use with conditions; no credit needed; ship inside your app with conditions; pass the files on to your users only with conditions. Style: minimal, flat.
  Connect: npm hover.css.
  Get files: npm install hover.css or copy the single effect's CSS from the GitHub repo; for commercial projects the user buys a license first (css, scss, less).
  Not allowed: Paid license for commercial use
  Rule: Commercial or client sites need a paid Hover.css license.
  Rule: Free use only for personal/open-source projects.
  License: https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt (checked 2026-11-05; details: https://agentgid.com/assets/hover-css/)
```

## Links
- AgentGid page: https://agentgid.com/assets/hover-css/
- Is it free for commercial use? https://agentgid.com/assets/hover-css/commercial-use/
- Source: https://ianlunn.github.io/Hover/
- Source: https://raw.githubusercontent.com/IanLunn/Hover/master/license.txt
- Source: https://registry.npmjs.org/hover.css/latest


## Hover.css: ready hover effects for buttons and links

Hover.css is a set of ready effects that play when the mouse moves over a button, link or picture, such as growing, wobbling or a sliding underline. You add one class name to an element and the effect works, with no scripts. It is free for personal and open-source projects; a paid license is needed for commercial sites and client work.

### Where to use it
- A button that grows on hover: Make a "Add to basket" button grow a little when the mouse is over it, by pasting one small effect into your styles. Only that effect loads, not the whole set.
- Many effects across a site: Link the whole stylesheet once, then give buttons, menu links and cards their own effect by class name, such as a sweep, a pulse or an underline.
- Icons that move on hover: Put an arrow in a "Next" link and make the arrow slide forward, or a gear spin, when the mouse is over the link. Any icon set or image works.
- Effects on a WordPress site: When you cannot edit the page code, add the effects from your theme's style file and then use the class names in posts and menus.
- Ideas for your own effects: Browse the demo page for a style you like, then change its timing or colors in your own styles instead of starting from zero.
- Menu links on a personal blog: Give the links in a personal blog's menu a sliding underline, so readers see where the mouse is. (idea, not from the official pages)

### How to start
- Get the files from the package or download them from the project page.

```
npm install hover.css --save
```

- Copy the one effect you need into your styles, or link the whole minified file.

```
<link href="css/hover-min.css" rel="stylesheet">
```

- Add the effect's class, which starts with hvr-, to the element.

```
<a href="#" class="hvr-grow">Add to Basket</a>
```


### License
Free under an MIT license for personal and open-source projects that are not sold. A website sold to a client, a theme for sale or other commercial work needs a paid license.

### Good to know
- A paid Commercial license covers one project and the Extended license covers unlimited projects. The project page lists them at $14 and $18.
- Tools that let their users build their own sites or apps, such as site builders, need a separate license on request.
- Versions before 2.2.0 were MIT for commercial use too; people who got them then may keep using those old versions.
- Each effect makes its element inline-block, which can shift a layout; override it after the Hover.css rules if needed.
- Very old browsers may not show the effects, so keep a simple fallback where they matter.

Checked 2026-11-12 against: https://ianlunn.github.io/Hover/, https://github.com/IanLunn/Hover, https://github.com/IanLunn/Hover/blob/master/README.md, https://github.com/IanLunn/Hover/blob/master/license.txt, https://registry.npmjs.org/hover.css/latest, https://ianlunn.gumroad.com/l/hover-css-commercial, https://ianlunn.gumroad.com/l/hover-css-extended-commercial

### Mistakes to avoid
- Don't: adding Hover.css to a client or commercial site because the free license is called MIT → Do: ask the person to buy a Commercial (one project) or Extended (unlimited) license first, or pick a fully free library (The free license covers only personal and open-source projects that are not sold.)
- Don't: class="grow" (names from version 1) → Do: class="hvr-grow" (Since version 2.0.0 every class name starts with hvr-.)
- Don't: an icon effect class on the link with no class on the icon itself → Do: put hvr-icon on the icon element inside the link (Hover.css moves only the element marked as the icon.)
- Don't: linking the full hover.css for one or two effects → Do: copy just those effects into your own stylesheet (Visitors would download every effect.)

### Questions
- Can I use Hover.css on a site I build for a client? Yes, with a paid Commercial license, which allows selling the site once; free use is only for personal and open-source projects.
- Can I sell a website template that uses it? Yes, with the Extended Commercial license, which allows selling your applications an unlimited number of times.
- Do I need JavaScript? No. Each effect is self-contained styling on a single element, so you can copy and paste it.
- Do the effects work with keyboard users? The Grow example also runs on focus and active, not only on mouse hover.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
