Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-elapsed-time

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-elapsed-time - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"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 = () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc