Deft
Ask AI

Search

Search skills, authors and topics

Jakubantalik / transitions.dev

transitions-dev

Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, accordions, toasts, like buttons, learn-more hovers, checkbox checks, spinning counters, toggles, AI thinking states, reasoning streams, streaming text, matrix dot loaders, or banner stacking. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure", "toast", "snackbar", "like button", "heart animation", "learn more arrow", "checkbox", "check animation", "spinning counter", "odometer", "slot machine digits", "toggle", "switch", "thinking states", "AI status line", "agent reasoning", "reasoning stream", "streaming text", "stream words in", "matrix loader", "dot loader", "banner stack", "stacked toasts". Also "motion tokens", "scan for ad-hoc transitions", "replace hardcoded durations with motion tokens", "tokenize my animations", and the commands transitions reveal, transitions review, transitions apply, transitions refine.

Install

npx skills add https://github.com/Jakubantalik/transitions.dev --skill transitions-dev

Shimmer text

When to use

A loading / "thinking" label that shimmers — streaming status, "Generating…", any in-progress copy that should feel alive without a spinner. Pure CSS: duplicate the string into data-text on .t-shimmer and tune --shimmer-base / --shimmer-highlight per theme.

HTML usage

html
<!-- Duplicate the visible string into data-text so the     ::before layer can mask the gradient onto the same     glyphs. Keep them in sync if the text changes. --><span class="t-shimmer" data-text="Planning next moves">  Planning next moves</span>

Pure CSS — no JS, no class toggling. Tune --shimmer-base / --shimmer-highlight in your own theme rules so the colors follow light / dark mode.

Tunable variables

VariableDefaultNotes
--shimmer-dur2000mssourced from --p15-dur
--shimmer-base#7c7c7csourced from --p15-base
--shimmer-highlight#0d0d0dsourced from --p15-highlight
--shimmer-band400%sourced from --p15-band
--shimmer-easelinearsourced from --p15-ease

The :root defaults below match the live tuning on transitions.dev. Drop them into your global stylesheet once — every transition in this skill reads from semantic names like these, so multiple transitions can share a single :root block.

css
:root {  --shimmer-dur: 2000ms;  --shimmer-base: #7c7c7c;  --shimmer-highlight: #0d0d0d;  --shimmer-band: 400%;  --shimmer-ease: linear;}

CSS

css
/* Two-layer construction:   1. The base text renders normally in --shimmer-base.   2. ::before duplicates it via content: attr(data-text),      paints a transparent → highlight → transparent gradient      onto it, and clips that gradient to the glyphs via      background-clip: text. Animating background-position      sweeps the band across the text. */.t-shimmer {  position: relative;  display: inline-block;  color: var(--shimmer-base);}.t-shimmer::before {  content: attr(data-text);  position: absolute;  inset: 0;  pointer-events: none;  background-image: linear-gradient(    90deg,    transparent          0%,    transparent         40%,    var(--shimmer-highlight) 50%,    transparent         60%,    transparent        100%  );  background-size: var(--shimmer-band) 100%;  background-repeat: no-repeat;  -webkit-background-clip: text;  background-clip: text;  color: transparent;  -webkit-text-fill-color: transparent;  animation: t-shimmer var(--shimmer-dur) var(--shimmer-ease) infinite;}@keyframes t-shimmer {  0%   { background-position: 100% 0; }  100% { background-position: 0% 0; }}
@media (prefers-reduced-motion: reduce) {  .t-shimmer::before { animation: none !important; }}

The @media (prefers-reduced-motion: reduce) guard at the bottom of the snippet is required — keep it. It zeroes the transition for users who have asked for less motion at the OS level.

JavaScript orchestration

None — pure CSS. Toggle the documented HTML attributes or class names from whatever already drives state in your app.