react-component / motion

⛷ CSS Animation for React
https://motion-seven.vercel.app
MIT License
150 stars 42 forks source link

feat: Add prepare step #6

Closed zombieJ closed 4 years ago

zombieJ commented 4 years ago

动画开始之前添加一个 prepare 阶段,以用于 rc-align 这类需要在动画之前做一些事情的库。

需要发一个大版本,否则会和 rc-trigger 冲突。

ref https://github.com/ant-design/ant-design/issues/26519

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/motion/2o1j5x2hn
✅ Preview: https://motion-git-pre-steps.react-component.vercel.app

codecov[bot] commented 4 years ago

Codecov Report

Merging #6 into master will increase coverage by 1.66%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   96.90%   98.56%   +1.66%     
==========================================
  Files           5       11       +6     
  Lines         291      349      +58     
  Branches       77       92      +15     
==========================================
+ Hits          282      344      +62     
+ Misses          9        5       -4     
Impacted Files Coverage Δ
src/CSSMotion.tsx 100.00% <100.00%> (+2.87%) :arrow_up:
src/DomWrapper.tsx 100.00% <100.00%> (ø)
src/hooks/useDomMotionEvents.ts 100.00% <100.00%> (ø)
src/hooks/useIsomorphicLayoutEffect.ts 100.00% <100.00%> (ø)
src/hooks/useNextFrame.ts 100.00% <100.00%> (ø)
src/hooks/useStatus.ts 100.00% <100.00%> (ø)
src/hooks/useStepQueue.ts 100.00% <100.00%> (ø)
src/interface.ts 100.00% <100.00%> (ø)
src/util/motion.ts 94.00% <100.00%> (-0.12%) :arrow_down:
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b34fdde...7c581cf. Read the comment docs.