Skip to content

Conversation

alexkirsz
Copy link
Contributor

Summary

Add an interval prop that controls the duration of the interval between two animations. For
instance, an interval of .25 and an animation speed of 2 imply that the animation will
take 1.5s to complete, and wait 0.5s before starting again.

Any Breaking Changes

None; snapshots have changed but the addition of the keyTimes attribute make the resulting animations equivalent.

Checklist

  • Are all the test cases passing?
  • If any new feature has been added, then are the test cases updated/added?
  • Has the documentation been updated for the proposed change, if required?

Add an interval prop that controls the duration of the interval between two animations. For
instance, an interval of `.25` and an animation speed of `2` imply that the animation will
take 1.5s to complete, and wait 0.5s before starting again.
@codecov
Copy link

codecov bot commented Mar 3, 2019

Codecov Report

Merging #139 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
+ Coverage   96.77%   96.92%   +0.14%     
==========================================
  Files           9        9              
  Lines          62       65       +3     
  Branches        9        9              
==========================================
+ Hits           60       63       +3     
  Partials        2        2
Impacted Files Coverage Δ
src/Holder.tsx 100% <ø> (ø) ⬆️
src/Svg.tsx 93.54% <100%> (+0.69%) ⬆️

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 21dbad6...7b81425. Read the comment docs.

@alexkirsz
Copy link
Contributor Author

I've found that the current animation has an interval comprising of 25% of its actual duration (or speed), which is why I've defaulted interval to 0.25.

Copy link
Owner

@danilowoz danilowoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very interesting, I haven't used this prop before.
Thanks for your contributions

@danilowoz danilowoz merged commit 6f26e2d into danilowoz:master Mar 6, 2019
@danilowoz
Copy link
Owner

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants