Skip to content

A component for reactive size and position animation in Dioxus projects

License

Notifications You must be signed in to change notification settings

bcorey/dx-flipbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animation component for Dioxus

This is in early days but will see a crates.io release once the API is finalized.

  • To use, declare a controller with use_flipbook_signal() and pass it to the animation component.
  • Put any items you wish to see transformed inside the component, and set their bounds to fill the component.
  • create an animation with AnimationBuilder.
    • You can set any easing type available on https://easings.net/ thanks to the simple-easing crate used here.
    • no need to specify a start location, unlike css animations
  • use playNow(animation_builder) or queue(animation_builder) on the controller and sit back and watch the animations
Screen.Recording.2024-07-09.at.12.09.26.AM.mov

About

A component for reactive size and position animation in Dioxus projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages