use-elapsed-time
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "use-elapsed-time", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "React hook to get the elapsed time in an animation using requestAnimationFrame", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -7,3 +7,3 @@ # useElapsedTime React hook | ||
* Toggle play/pause | ||
* Combine with [any easing function](https://github.com/danro/jquery-easing/blob/master/jquery.easing.js) to get the right animation | ||
* Combine with [any easing function](http://www.gizma.com/easing/#l) to get the right animation | ||
@@ -102,3 +102,3 @@ ## Installation | ||
const durationMilliseconds = 4000; | ||
const config = { durationMilliseconds, onComplete: () => true }; | ||
const config = { durationMilliseconds, onComplete: () => [true] }; | ||
@@ -105,0 +105,0 @@ const BounceAnimation = () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145977