CSShake is a CSS library that provides ready-made classes to apply shake animations to DOM elements. Instead of writing custom keyframes, developers simply add a CSS class like shake or shake-hard to any element.
It solves the problem of creating consistent shake effects without custom animation code. The library is built with Sass and is aimed at front-end developers who want quick, configurable shake animations for UI interactions or visual effects.
shake-trigger class.:hover using the shake-freeze variant.:hover with the shake-constant--hover variant.do-shake Sass mixin, controlling axes, rotation, duration, precision, opacity, and iteration count.csshake-slow.min.css.You include the CSS file via a <link> tag from the local install, npm, bower, or the Surge CDN. Then you add a class such as shake, shake-slow, shake-hard, shake-horizontal, shake-vertical, shake-rotate, shake-opacity, shake-crazy, or shake-chunk to any DOM element. For custom animations, you use the do-shake Sass mixin with parameters for x-axis range, y-axis range, rotation, duration, precision, opacity, and chunk percentage, then compile the Sass into CSS.
CSShake is best suited for front-end developers who want zero-JavaScript, CSS-only shake animations with minimal setup. It offers ten pre-built variations and a flexible Sass mixin for custom animations. The library has no documented limitations, but as a pure CSS solution it cannot respond dynamically to runtime data without JavaScript class toggling.
Provides ten ready-to-use CSS shake animation classes including basic, slow, little, hard, horizontal, vertical, rotate, opacity, crazy, and chunk.
The do-shake Sass mixin accepts parameters for x and y range, rotation, duration, precision, opacity, chunk percentage, and timing function.
Use the shake-trigger class on a parent element to start animations on matching child elements.
Add shake-constant to keep animation running and shake-constant--hover to stop it when the user hovers.
Add the shake-freeze class to freeze the animation at the current frame on hover.
Include only the animation CSS files you need by referencing individual files like csshake-slow.min.css or csshake-crazy.min.css.
A React functional component wrapper is available through the CSShake reshake package.
Pricing extracted from the product website and may change. Check the source for current details.
C CSShakeThis | |||
|---|---|---|---|
| Starting price | Free | — | Free |
| Pricing model | Free | one_time | Freemium |
| Platforms | Web | Web | — |
| Top features |
|
|
|
| Rating | — | — | — |
Weekly newsletter of curated resources to help programmers learn something new every Monday
A weekly podcast exploring the intersection of society, culture, and crypto.
A tiny radio show about design, architecture, and the 99% invisible activity that shapes our world
Philadelphia-based creative director with 25 years of design experience, brand identity work for the...
Free podcast, newsletter, and job board to help marketing designers improve skills, get inspired, an...