framer-motion-ticker
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -30,3 +30,3 @@ "use strict"; | ||
var _document$getElementB; | ||
var element = (_document$getElementB = document.getElementById('children_' + index)) == null ? void 0 : _document$getElementB.clientWidth; | ||
var element = (_document$getElementB = document.getElementById(tickerUUID + '_' + index)) == null ? void 0 : _document$getElementB.clientWidth; | ||
if (element) { | ||
@@ -45,3 +45,8 @@ contentWidth += element; | ||
className: "FMT__container", | ||
ref: tickerRef | ||
ref: tickerRef, | ||
style: { | ||
width: '100%', | ||
height: '100%', | ||
overflow: 'hidden' | ||
} | ||
}, /*#__PURE__*/_react["default"].createElement(_framerMotion.motion.div, { | ||
@@ -57,2 +62,5 @@ className: "FMT__container__contents", | ||
repeat: Infinity | ||
}, | ||
style: { | ||
display: 'flex' | ||
} | ||
@@ -62,3 +70,3 @@ }, children.map(function (item, index) { | ||
key: index, | ||
id: "children_" + index | ||
id: tickerUUID + "_" + index | ||
}, item); | ||
@@ -65,0 +73,0 @@ }), [].concat(Array(numDupes)).map(function (_) { |
@@ -20,3 +20,3 @@ import React from 'react'; | ||
var _document$getElementB; | ||
var element = (_document$getElementB = document.getElementById('children_' + index)) == null ? void 0 : _document$getElementB.clientWidth; | ||
var element = (_document$getElementB = document.getElementById(tickerUUID + '_' + index)) == null ? void 0 : _document$getElementB.clientWidth; | ||
if (element) { | ||
@@ -35,3 +35,8 @@ contentWidth += element; | ||
className: "FMT__container", | ||
ref: tickerRef | ||
ref: tickerRef, | ||
style: { | ||
width: '100%', | ||
height: '100%', | ||
overflow: 'hidden' | ||
} | ||
}, /*#__PURE__*/React.createElement(motion.div, { | ||
@@ -47,6 +52,9 @@ className: "FMT__container__contents", | ||
repeat: Infinity | ||
}, | ||
style: { | ||
display: 'flex' | ||
} | ||
}, children.map((item, index) => /*#__PURE__*/React.createElement("div", { | ||
key: index, | ||
id: "children_" + index | ||
id: tickerUUID + "_" + index | ||
}, item)), [...Array(numDupes)].map(_ => children.map((item, index) => /*#__PURE__*/React.createElement("div", { | ||
@@ -53,0 +61,0 @@ key: index |
export { Ticker as default } from './src/ticker'; | ||
import './styles.css'; |
{ | ||
"name": "framer-motion-ticker", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "A React component that acts like a ticker, or marquee.", | ||
@@ -5,0 +5,0 @@ "author": "Andres Movilla <amovilla1103@gmail.com>", |
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
9900
7
136