arwes / arwes

Futuristic Sci-Fi UI Web Framework.

Home Page:https://arwes.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor Animator animate hooks to event functions

romelperez opened this issue · comments

The Animator animate hooks are dynamically created React prop objects methods which are not recognized by React as hooks but normal functions. The original idea was to add hooks on animator flow transitions but since feature is not supported, they can be simple event functions on flow transitions.

  • Rename Animator animate hooks to event functions from useAnimate[FLOW] to onAnimate[FLOW]. For example: useAnimateEntering to onAnimateEntering. This would include all test cases.
  • Refactor all core components animator animate hooks definitions.
  • Refactor all animation sandboxes using the animate hooks.
  • Refactor all animate hooks from the website documentation examples and the website animation "animate hooks" section.