Double Helix Words
An animated text component that displays words in a double-helix style motion, ideal for dynamic headlines or creative effects.
Usage
Basic usage example to quickly see how the DoubleHelixWords
works.
Properties
Interactive configurator to explore customization options for the DoubleHelixWords
component.
Speed
Gap
Distance
API References
Styles API
type T = "root" | "backbone" | "bases";
Styles API | Type | Default | Annotation |
---|---|---|---|
className? | string | undefined | pass to root component <div> |
classNames? | Partial<Record<T, string>> | undefined | |
style? | CSSProperties | undefined | pass to root component <div> |
styles? | Partial<Record<T, CSSProperties>> | undefined |
Props API
Props API | Type | Default | Annotation |
---|---|---|---|
el? | Partial<Record<T, React.ElementType>> | root: "article", backbone: "section", bases: "span" | |
placeholders? | string | string[] | undefined | |
gap? | number | 6 | |
distance? | number | 100 | |
speed? | number | 400 | |
duration? | number | 4000 |
Source Codes
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.