Skip to content

Commit 34237a4

Browse files
author
Mark
committed
3.2.0
1 parent ee5c5dd commit 34237a4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dist/wait-for-element-transition.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Wait-for-element-transition v3.1.1
2+
* Wait-for-element-transition v3.2.0
33
* https://github.com/mkay581/wait-for-element-transition#readme
44
*
55
* Copyright (c) 2020 Mark Kennedy
@@ -58,7 +58,8 @@ function getTransitionDuration(el) {
5858
*/
5959
const getCssComputedProperty = (prop) => {
6060
const style = window.getComputedStyle(el);
61-
return style.getPropertyValue(prop) || el.style[getJsPropName(prop)];
61+
return (style.getPropertyValue(prop) ||
62+
el.style[getJsPropName(prop)]);
6263
};
6364
const delayProp = getCssComputedProperty('transition-delay') || '0ms';
6465
const durationProp = getCssComputedProperty('transition-duration') || '0ms';

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wait-for-element-transition",
3-
"version": "3.1.1",
3+
"version": "3.2.0",
44
"description": "Easily wait for an element to complete it's transition using native vanilla JavaScript",
55
"main": "dist/wait-for-element-transition.js",
66
"types": "dist/wait-for-element-transition.d.ts",

0 commit comments

Comments
 (0)