Particle Text
Type sampled into a couple of thousand square particles of bone ash.
$149 once · every Pro piece
Customize
The pointer pushes them aside like a draught of heat, and each one springs back home with a little overshoot; anything in flight glows along the accent ramp and cools as it lands. Give it several strings and the particles fly to their new homes in reading order, the letters re-forming left to right.
Install
npx shadcn@latest add @obsyde/particle-textNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { ParticleText } from '@/components/obsyde/ember/particle-text/ParticleText';
export function Example() {
return (
<ParticleText text="Ember" />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/particle-text/ParticleText.tsxcomponentember/particle-text/particle-text-demo.cssstylesember/particle-text/particle-text.cssstylesember/particle-text/ParticleTextDemo.tsxdemoember/type-kit/kit.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
textText (| separates strings) | string | 'Ember' |
intervalHold (ms) | number | 3200 |
sizeMax size (px) | number | 150 |
countParticles | number | 2200 |
reachReach (px) | number | 80 |
introAssemble on mount | boolean | true |