Skip to main content

Interface: TypeWithCursorOptions

Defined in: animation/creation/TypeWithCursor.ts:68

Options for TypeWithCursor animation

Extends

Properties

cursorBlinkRate?

optional cursorBlinkRate: number

Defined in: animation/creation/TypeWithCursor.ts:72

Cursor blink rate in blinks per second. Default: 2


optional cursorBlinks: boolean

Defined in: animation/creation/TypeWithCursor.ts:76

Whether to show cursor blinking during typing. Default: true


cursorChar?

optional cursorChar: string

Defined in: animation/creation/TypeWithCursor.ts:70

Cursor character to display. Default: '|'


duration?

optional duration: number

Defined in: animation/Animation.ts:14

Duration of the animation in seconds (default: 1)

Inherited from

AnimationOptions.duration


hideCursorOnComplete?

optional hideCursorOnComplete: boolean

Defined in: animation/creation/TypeWithCursor.ts:78

Whether to hide cursor after typing completes. Default: false


highlightColor?

optional highlightColor: string

Defined in: animation/creation/TypeWithCursor.ts:80

Highlight color for typed text. Default: undefined (no highlight)


rateFunc?

optional rateFunc: RateFunction

Defined in: animation/Animation.ts:16

Rate function controlling the animation's pacing (default: smooth)

Inherited from

AnimationOptions.rateFunc


shift?

optional shift: [number, number, number]

Defined in: animation/Animation.ts:18

Shift direction for fade animations

Inherited from

AnimationOptions.shift


typingSpeed?

optional typingSpeed: number

Defined in: animation/creation/TypeWithCursor.ts:74

Characters typed per second. Default: 10