gitmyhub

Hover

SCSS ★ 29k updated 2y ago

A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available in CSS, Sass, and LESS.

A ready-made collection of CSS hover animations, add a class name to any button, link, or image and get smooth, polished effects like grow, bounce, or rotate without writing CSS from scratch.

SCSSCSSLESSsetup: easycomplexity 1/5

Hover.css is a collection of ready-made visual effects that activate when a user moves their mouse over an element on a web page — a button, a link, an image, a logo, or any other element. The problem it solves is that creating smooth, polished hover animations from scratch with CSS requires knowing specific CSS3 properties (transitions, transforms, animations, pseudo-elements) and getting the details right; this library provides them pre-built so you can apply them by adding a class name.

There are two main ways to use it. The simpler approach is to copy only the specific effect you want from the stylesheet into your own CSS file, keeping your page lightweight. The broader approach is to include the entire Hover.css stylesheet and then apply effects across many elements just by adding the right class — for example, adding the class that produces a "grow" effect makes the element visually enlarge on hover. Icon effects are also included: you can attach animated icons inside elements using a special marker class.

The library is available in plain CSS, Sass, and LESS formats. Sass and LESS are preprocessor languages that extend CSS with variables and mixins; having those versions lets developers customize things like the class name prefix or animation timing before generating the final CSS.

A web designer or front-end developer would use this when they want to add polished interactive effects to a site quickly without writing the CSS transitions manually. Browser support requires Internet Explorer 9 or later for transforms and Internet Explorer 10 or later for animations.

Where it fits