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

react-simple-animate

Package Overview
Dependencies
Maintainers
2
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-animate - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

.rpt2_cache/rpt2_6f5f3c1ab768ab51b34575a5b6446f8898855c96/code/cache/12aa5802328515d4873becd9742decaa968822da

7

dist/index.es.js

@@ -159,8 +159,9 @@ import * as React from 'react';

function AnimateKeyframes(props) {
const { children, play, render, duration = 0.3, delay = 0, easeType = 'linear', playState = 'running', direction = 'normal', fillMode = 'none', iterationCount = 1, keyframes, } = props;
const { children, play, render, duration = 0.3, delay = 0, easeType = 'linear', playState = 'running', direction = 'normal', fillMode = 'none', iterationCount = 1, sequenceIndex, keyframes, sequenceId, } = props;
const animationNameRef = useRef$2('');
const id = getSequenceId(sequenceIndex, sequenceId);
const styleTagRef = useRef$2({
sheet: {},
});
const { register } = useContext$1(AnimateContext);
const { register, animationStates = {} } = useContext$1(AnimateContext);
const forceUpdate = useState$2(false)[1];

@@ -179,3 +180,3 @@ useEffect$2(() => {

}, []);
const style = play
const style = (animationStates[id] || {}).play || play
? {

@@ -182,0 +183,0 @@ animation: `${duration}s ${easeType} ${delay}s ${iterationCount} ${direction} ${fillMode} ${playState} ${animationNameRef.current ||

@@ -162,8 +162,9 @@ 'use strict';

function AnimateKeyframes(props) {
const { children, play, render, duration = 0.3, delay = 0, easeType = 'linear', playState = 'running', direction = 'normal', fillMode = 'none', iterationCount = 1, keyframes, } = props;
const { children, play, render, duration = 0.3, delay = 0, easeType = 'linear', playState = 'running', direction = 'normal', fillMode = 'none', iterationCount = 1, sequenceIndex, keyframes, sequenceId, } = props;
const animationNameRef = useRef$2('');
const id = getSequenceId(sequenceIndex, sequenceId);
const styleTagRef = useRef$2({
sheet: {},
});
const { register } = useContext$1(AnimateContext);
const { register, animationStates = {} } = useContext$1(AnimateContext);
const forceUpdate = useState$2(false)[1];

@@ -182,3 +183,3 @@ useEffect$2(() => {

}, []);
const style = play
const style = (animationStates[id] || {}).play || play
? {

@@ -185,0 +186,0 @@ animation: `${duration}s ${easeType} ${delay}s ${iterationCount} ${direction} ${fillMode} ${playState} ${animationNameRef.current ||

{
"name": "react-simple-animate",
"version": "3.0.2",
"version": "3.0.3",
"description": "react simple animate",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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