carousel-component
Advanced tools
Comparing version 3.2.1 to 3.3.0
@@ -1,2 +0,3 @@ | ||
var animationKeyframesIdName = "carousel-animation-keyframes"; | ||
import * as tslib_1 from "tslib"; | ||
var animationKeyframesIdName = 'carousel-animation-keyframes'; | ||
/** | ||
@@ -8,6 +9,6 @@ * @public | ||
if (!style) { | ||
style = document.createElement("style"); | ||
style.type = "text/css"; | ||
style = document.createElement('style'); | ||
style.type = 'text/css'; | ||
style.id = animationKeyframesIdName; | ||
document.getElementsByTagName("head")[0].appendChild(style); | ||
document.getElementsByTagName('head')[0].appendChild(style); | ||
} | ||
@@ -20,3 +21,3 @@ style.innerHTML = "@keyframes move-left {\n 0% { left: " + -width * count + "px; }\n 100% { left: " + (width * num - width * count) + "px; }\n}\n@keyframes move-right {\n 0% { left: " + -width * count + "; }\n 100% { left: " + (-width * num - width * count) + "px; }\n}"; | ||
export function runAnimation(ul, timeout, keyframes, num, next) { | ||
ul.style.animation = ""; | ||
ul.style.animation = ''; | ||
window.requestAnimationFrame(function () { | ||
@@ -37,4 +38,4 @@ window.requestAnimationFrame(function () { | ||
var rightItems = data.slice(0, actualCount); | ||
data.unshift.apply(data, leftItems); | ||
data.push.apply(data, rightItems); | ||
data.unshift.apply(data, tslib_1.__spread(leftItems)); | ||
data.push.apply(data, tslib_1.__spread(rightItems)); | ||
} |
{ | ||
"name": "carousel-component", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3569
93