@foundit/micro-animations
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -7,5 +7,7 @@ import { Properties, Property } from 'csstype' | ||
type TransformEnd = Properties | {} | ||
type EmptyObject = Record<string, never> | ||
interface TargetElement extends HTMLElement { | ||
type TransformEnd = Properties | EmptyObject | ||
export interface TargetElement extends HTMLElement { | ||
currentAnimation?: Animation | ||
@@ -90,2 +92,3 @@ } | ||
return new Promise((resolve) => { | ||
if (!element) return | ||
element.currentAnimation?.pause() | ||
@@ -92,0 +95,0 @@ |
{ | ||
"name": "@foundit/micro-animations", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -8,6 +8,2 @@ "main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"scripts": { | ||
"build": "tsup index.ts --format cjs,esm --dts", | ||
"lint": "tsc" | ||
}, | ||
"repository": { | ||
@@ -33,3 +29,7 @@ "type": "git", | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "tsup index.ts --format cjs,esm --dts", | ||
"lint": "tsc" | ||
} | ||
} | ||
} |
28737
415
14