Reflex type animation is a reflex wrapper around react-type-animations
pip install reflex-type-animation
from reflex_type_animation import type_animation
def index() -> rx.Component:
return rx.center(
type_animation(
sequence=[
"The quick brown fox jumped over the lazy Dog",
1000
]
),
)
Screen.Recording.2024-03-21.at.3.11.59.PM.mov
Visit this link for a more extensive list of prop options and their uses. However, note that the camelCase prop options are translated to snake_case in reflex-type-animation.
Below are the prop options and their correct translations:
Prop | Name to use |
---|---|
preRenderFirstString |
pre_render_first_string |
deletionSpeed |
deletion_speed |
omitDeletionAnimation |
omit_deletion_animation |