Command Palette
Search for a command to run

Highlighted Text

Text with sliding background highlight animation using mix-blend-mode.

motion-sv
You  can just  ship things.

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/s/highlighted-text.json

Examples

Direction And View Trigger

From Left
From Right
From Top
From Bottom

Props

NameTypeDefaultDescription
children
Snippet | undefined required The inline text content wrapped by the animated highlight.
from
"left" | "right" | "top" | "bottom" "bottom" Controls the direction the highlight bar sweeps in from.
delay
number 0 Adds a delay in seconds before the highlight motion begins.
triggerOnView
boolean false Waits to animate until the component enters the viewport.
once
boolean true When using triggerOnView, controls whether the animation runs only on first entry.
class
string Custom classes applied to the outer inline wrapper.