Component
Navigation pill
nav-pill · MOGA official
A navigation bar whose active indicator stretches as it moves between tabs (leading edge fast, trailing edge slow)
npx motioncn-cli add nav-pillVersion 1.0.2MIT12 downloads0 favorites
Updated December 3, 2026
Use it in MOGA
Search for it under Online in the MOGA library, or run this in your project folder:
npx -y moga hub-import nav-pillUse it outside MOGA (Motioncn)
Free, no account. It is plain web code that plays in a web page, React, Remotion and HyperFrames, drawing the same frames MOGA renders.
Add it to your project with shadcn
npx shadcn@latest add https://motioncn.dev/r/nav-pill.jsonNo shadcn setup? This works too
npx motioncn-cli add nav-pillImport it in a page, no build
import NavPill from 'https://motioncn.dev/m/nav-pill.js';
import preset from 'https://motioncn.dev/m/theme.js';
NavPill.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion and HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={NavPill} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={NavPill} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(NavPill.mount(element, { preset, duration: 5 }), { start: 0 });
