marquee-content 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.468c551c.js +764 -0
- package/dist/index.html +262 -0
- package/dist/index.js +96 -89
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +96 -89
- package/dist/index.module.js.map +1 -1
- package/package.json +5 -5
- package/src/index.html +6 -2
- package/src/index.js +22 -123
- package/src/utils/animation.js +39 -0
- package/src/utils/breakpoints.js +11 -0
- package/src/utils/clearTimeline.js +10 -0
- package/src/utils/cloning.js +22 -0
- package/src/utils/skewed.js +18 -0
- package/src/utils/update.js +15 -0
- package/src/demo.js +0 -4
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
|
-
<p align="center">A
|
|
12
|
+
<p align="center">A simple, lightweight library for creating the effect of running horizontal blocks of content, also known as a marquee or ticker. Uses GSAP and Resize Observer for better performance.</p>
|
|
13
13
|
<p align="center"><sup>1kB gzipped</sup></p>
|
|
14
14
|
<p align="center"><a href="https://codepen.io/ux-ui/full/dygzqYm">Demo</a></p>
|
|
15
15
|
<br>
|
|
@@ -46,13 +46,13 @@ MarqueeContent.registerGSAP(gsap);
|
|
|
46
46
|
|
|
47
47
|
➤ **Settings**
|
|
48
48
|
|
|
49
|
-
|
|
|
50
|
-
|
|
51
|
-
| `data-mc-duration` | `20` | Sets the duration of content scrolling in seconds. It is acceptable to use decimals.
|
|
52
|
-
| `data-mc-direction` | `rtl` | `rtl` — default value, no need to specify.<br>`ltr` — changes the scroll direction from left to right.<br>`auto` —
|
|
53
|
-
| `data-mc-skew` | `null` | Transforms the component by tilting it along the Y axis (
|
|
54
|
-
| `data-mc-min` | `null` | Sets the minimum width at which the animation will
|
|
55
|
-
| `data-mc-max` | `null` | Sets the maximum width
|
|
49
|
+
| Option | Default | Description |
|
|
50
|
+
|:--------------------|:-------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
51
|
+
| `data-mc-duration` | `20` | Sets the duration of content scrolling in seconds. It is acceptable to use decimals. |
|
|
52
|
+
| `data-mc-direction` | `rtl` | `rtl` — default value, no need to specify.<br>`ltr` — changes the scroll direction from left to right.<br>`auto` — auto changes the direction of the animation as the page is scrolled. |
|
|
53
|
+
| `data-mc-skew` | `null` | Transforms the component by tilting it along the Y axis (a positive or negative value is acceptable). |
|
|
54
|
+
| `data-mc-min` | `null` | Sets the **minimum** width at which the animation will play (when the breakpoint intersects, the cloned elements are removed and the component styles are cleared). |
|
|
55
|
+
| `data-mc-max` | `null` | Sets the **maximum** width. |
|
|
56
56
|
|
|
57
57
|
<br>
|
|
58
58
|
|