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

animore

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animore - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

@@ -310,2 +310,4 @@ (function (global, factory) {

var ANIMORE_STRUCT = Object.seal({
// fallback timer
timer: null,
/**

@@ -362,3 +364,4 @@ * Cleanup function triggered when the animations will be complete

// this will enable the testing of this script also in a node environment
setTimeout(function () {
clearTimeout(this.timer);
this.timer = setTimeout(function () {
if (index_4(_this.el, IS_ANIMATING_ATTR)) {

@@ -368,2 +371,3 @@ _this.el.dispatchEvent(new Event('transitionend'));

}, this.opts.duration + TIMER_OFFSET);
return this;

@@ -370,0 +374,0 @@ }

@@ -0,1 +1,5 @@

# 2.0.1
- fixed: `setTimeout` debouncing issue
# 2.0.0

@@ -2,0 +6,0 @@

@@ -16,2 +16,4 @@ import $ from 'bianco.query'

const ANIMORE_STRUCT = Object.seal({
// fallback timer
timer: null,
/**

@@ -59,3 +61,4 @@ * Cleanup function triggered when the animations will be complete

// this will enable the testing of this script also in a node environment
setTimeout(() => {
clearTimeout(this.timer)
this.timer = setTimeout(() => {
if (hasAttr(this.el, IS_ANIMATING_ATTR)) {

@@ -65,2 +68,3 @@ this.el.dispatchEvent(new Event('transitionend'))

}, this.opts.duration + TIMER_OFFSET)
return this

@@ -67,0 +71,0 @@ }

{
"name": "animore",
"version": "2.0.0",
"version": "2.0.1",
"description": "Animore makes DOM state transitions easier",

@@ -5,0 +5,0 @@ "main": "animore.js",

@@ -54,4 +54,4 @@ # animore

const animaNode = animore(myDiv)[0] // DOM nodes are also valid
const animaList = animore([myDiv, myUl]) // array are also valid
const animaNodeList = animore(myUl.children) // NodeList are valid as well
const animaList = animore([myDiv, myUl]) // an arrays are also valid
const animaNodeList = animore(myUl.children) // NodeLists are valid as well

@@ -58,0 +58,0 @@ ```

Sorry, the diff of this file is not supported yet