element-motion icon indicating copy to clipboard operation
element-motion copied to clipboard

Core roadmap

Open itsdouges opened this issue 6 years ago • 0 comments

Overarching goals

  • breaking changes only when there is no other choice, prefer minor and patch
  • smallest bundle size
  • simply powerful api surface
  • weighted animation - must feel like it is solid not brittle

Internal api

  • [ ] hooks api internal usage
  • [x] re-evaluate internal animations api (conversation here: mui-org/material-ui#4117)
  • [ ] flatten Collector prop api (instead of data have action and payload as top level props)

External api

  • [ ] hooks api for consumers

Behaviour

  • [x] re-evaluate duration calculation
  • [ ] if same position and same size don't do animation?
  • [ ] don't animate if both origin and destination are off screen

Performance

  • [ ] cut fat from core library bundle
  • [ ] cut fat from animations bundle
  • [ ] improve execution performance
  • [ ] ability to disable motion with https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
  • [ ] code splitting out of the box

Packages

  • [x] split motions out to another package @element-motion/motions
  • [x] split docs out to another package @element-motion/docs

itsdouges avatar May 25 '19 12:05 itsdouges