Report a problem or share feedback← Catalog
Tabs sliding
curatedfreetransitions/tabs-sliding
A segmented control / tab bar where the active pill slides between options — view switchers, filter segments, small mutually-exclusive button sets. JS writes the active tab's `offsetLeft` / `offsetWidth` onto the pill; CSS owns the tween.
$
npx skills add Jakubantalik/transitions.dev # then ask: "apply the tabs-sliding transition"Our notes
Sliding active-tab indicator. Pair with shadcn Tabs.- Source
- transitions.dev
- Kind
- transition
- Categories
- transition, tabs
- Use as
- recipe — technique you apply to your own markup
- Applies to
- tabs
- Motion
- on state · subtle · css · low cost · respects reduced motion
- Tags
- css
- Licence
- Free for unlimited personal/commercial use in your products; no republishing the collection. Pro (React/TS variants) $9/mo or $149 lifetime.
- Live demo
- transitions.dev
- Docs
- transitions.dev
Similar
Compare all 4 →- Motion presetsoc/motion-presetsdesign-infra's motion languages (still / quiet / lively / cinematic) as motion/react transitions, springs and variants (fadeUp, scaleIn, stagger, press, lift). Set PROJECT_MOTION to your DESIGN.md `motion:` so hand-written animations match the system.
- AnimatePresence modesmotion/animate-presence-modesAnimatePresence `mode` (sync / wait / popLayout): how to swap one view for another — tab panels, carousel slides, step wizards — without overlap jank. Free example (motion is MIT); copy and adapt the source from the example page.
- Shared layout animationmotion/shared-layout-animationShared-element layoutId: a tab underline / pill that glides between items. The free, hand-rolled way to animate tabs, nav highlights and segmented controls — about 10 lines with `layoutId`. Free example (motion is MIT); copy and adapt the source from the example page.