<tap-letters>
使用 SVG 字母路径动画渲染文字的创意文本元素,每个字符都以独特的手写风格路径绘制,适用于标题和装饰性文字。
Playground
Loading...<></>
Loading...<></>
Loading...<></>
Loading...<></>
Loading...<></>
Loading...<></>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
text(text) |
Yes | string |
colors(colors) |
Yes | string |
strokeWidth(stroke-width) |
Yes | number |
duration(duration) |
Yes | number |
easing(easing) |
Yes | EasingType |
autoplay(autoplay) |
Yes | boolean |
finished |
Emitter |
|
elapse |
Emitter<number> |
|
get layout |
Layout |
|
get playing |
boolean |
|
play |
() => void |
|
pause |
() => void |
|
resume |
() => void |
|
position |
(p: number) => void |
Other
| Type | Value |
|---|---|
| Event | finished, elapse |
