Documentation
Motionkit — CSS Animation Templates
Version 1.0.0 · Vanilla HTML · 12 files · 107 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 12 files:
- LICENSE.txt1.7 KB
- README.md2.5 KB
- assets/css/style.css31 KB
- assets/fonts/dm-mono-LICENSE.txt4.8 KB
- assets/fonts/dm-mono-latin-400-normal.woff214 KB
- assets/fonts/dm-mono-latin-500-normal.woff215 KB
- assets/fonts/unbounded-LICENSE.txt4.3 KB
- assets/fonts/unbounded-latin-wght-normal.woff250 KB
- assets/images/favicon.svg474 B
- assets/js/main.js17 KB
- documentation/index.html11 KB
- index.html10 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--bg#0b0b10--surface#14141d--surface-2#1d1d2a--stage#0f0f17--text#ffffff--muted#a9a9c2--linergba(255, 255, 255, 0.1)--pink#ff3dab--violet#9a80ff--cyan#19e3ff--lime#c6ff3d
Interactive features
Replay and copy class
The gallery is generated from the DEMOS array at the top of assets/js/main.js. Add an object with cat, cls, n and h (markup with data-t on the animated element) to add a card.
Speed control
The pills set --mk-speed on the root element. Every animation duration is multiplied by it. Set a default in :root.
Scroll reveal
Add data-mk-reveal="fade-up" (fade-in, slide-left, slide-right, zoom-in, blur-in or flip-in) and optionally data-mk-delay="200" to any element. Keep the observer code in section 6 of main.js.
Category filter
Categories are defined in the CATS array. Each demo's cat value must match a category id.
Customisation notes
Use the library without the demo
Section 4 of assets/css/style.css is self-contained apart from the colour tokens and the --mk-* variables. Copy it into your stylesheet and delete the demo styles in section 5.
Tune an animation
Set --mk-dur, --mk-delay and --mk-ease on any element, for example style="--mk-dur:1.4s". Add the .mk-once class to attention seekers to play them a single time.
Change the neon colours
The pink, violet, cyan and lime tokens at the top of style.css colour the gradients, glows and loaders. Update --neon to change the gradient everywhere.
Reduced motion
Section 6 switches off all animation and transitions and reveals data-mk-reveal elements. Add rules there for any new component that would otherwise stay hidden or empty.
What is front-end only
This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.
- The gallery cards are generated by JavaScript for the demo only; the animations themselves are plain CSS classes.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- DM Mono typeface — OFL-1.1 (
assets/fonts/dm-mono-LICENSE.txt) - Unbounded typeface — OFL-1.1 (
assets/fonts/unbounded-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 24, 2026
- Initial release.