GitHubExplore library

LIVE DEMOS / REUSABLE SOURCE

Motion & backgrounds

Actual examples, right here. Try two decorative backgrounds, then explore six animation primitives with pause controls and attributed source.

Decorative backgrounds

Original CSS backgrounds. Change the accent, pause the animation, and download the complete HTML with its MIT notice.

Aurora flow

Soft bands of color moving across a dark canvas.

HTML
View source
<!doctype html>
<!--
MIT License

Copyright (c) 2026 Migbits contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-->
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Aurora flow</title><style>:root{--accent:#2455ff}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow:hidden;position:relative}body{background:#070913}body::before,body::after{content:'';position:absolute;width:125%;height:65%;left:-10%;border-radius:45%;filter:blur(45px);opacity:.7;animation:flow 14s ease-in-out infinite alternate}body::before{top:-20%;background:linear-gradient(110deg,transparent 10%,var(--accent) 35%,#7a45d3 65%,transparent);transform:rotate(-20deg)}body::after{bottom:-35%;background:linear-gradient(120deg,#103a8a,var(--accent),transparent);animation-delay:-7s}@keyframes flow{to{transform:translate(6%,20%) rotate(15deg) scale(1.15)}}body::before,body::after{animation-play-state:running}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}}</style></head><body></body></html>

Spotlight dot grid

A crisp dotted pattern with a slowly drifting spotlight.

HTML
View source
<!doctype html>
<!--
MIT License

Copyright (c) 2026 Migbits contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-->
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Spotlight dot grid</title><style>:root{--accent:#63a9d9}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow:hidden;position:relative}body{background:#090b10;background-image:radial-gradient(#818cab55 1px,transparent 1px);background-size:20px 20px}body::before{content:'';position:absolute;inset:-40%;background:radial-gradient(ellipse at center,var(--accent),transparent 38%);opacity:.35;animation:spotlight 12s ease-in-out infinite alternate;mix-blend-mode:screen}@keyframes spotlight{from{transform:translate(-12%,-5%)}to{transform:translate(15%,10%)}}body::before,body::after{animation-play-state:running}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}}</style></head><body></body></html>

Animation components

Text loop, animated selection, transition panel, border trail, magnetic interaction and staggered groups.

Download 6 components ↓
MOTION PRIMITIVES / MIT
A LITTLE LESS ORDINARYMake it thoughtful, playful, and memorable.

Some details are worth repeating.

Text loop

A changing word. A different feeling.

MOTION PRIMITIVES / MIT

Find your point of view.

Animated background

One shared surface, moving with your choice.

MOTION PRIMITIVES / MIT

Start with a feeling.

A small idea, with room to become something good.

Transition panel

A focused view with a gentle change of pace.

MOTION PRIMITIVES / MIT
A LITTLE EXTRA ATTENTION

Good details
go a long way.

Made to be noticed.

Border trail

A quiet highlight that takes the long way around.

MOTION PRIMITIVES / MIT

Hover to feel it. Tab and Enter work too.

Magnetic interaction

A button that leans into the conversation.

MOTION PRIMITIVES / MIT
01Find a spark.
02Make it work.
03Give it feeling.
04Share it.

Staggered group

A small sequence that arrives as a whole.

Animations pause when their preview is offscreen or the page is hidden. Reduced-motion preferences show static content. These examples are local interactions, not backend integrations.