Perimeter
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardPerimeter(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-perimeterAbout this component
A breaking news card whose border is the ticker: the headline runs all the way round the card's frame as text on a path, turning every corner without a seam, and it slows to a stop when you hover so you can read it, then picks up again.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers4
- Continuous
- Hover
- Border
- Card
Techniques3
- SVG
- requestAnimationFrame
- Text animation
Accessibility
Keyboard and screen readers
The headline is real text inside the card; the ticker repeats it and is aria-hidden. Hover or focus within stops it.
Reduced motion
The ticker stands still.
Use it in anything you build, commercial and client work included. Licence
More cards
See allInvoice 004212 Nov
Fern & Field Studio
- Easing
- Timing
- Squash
- Stagger
- Springs
- Paths
- Masks
- Loops
- Physics
- Morph
- Parallax
- Arcs
Essay
Room to breathe
A page is not a box to be filled. The best layouts leave the reader somewhere to rest, and they let a picture sit where it means something rather than where the grid happened to put it. Move the stone and watch the words make way for it, line by line, the way a stream finds its way round a rock.