marquee-content 0.0.2 → 0.0.4

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.
Files changed (2) hide show
  1. package/README.md +32 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,13 +7,9 @@
7
7
  [![GitHub package version](https://img.shields.io/github/package-json/v/ux-ui-pro/marquee-content.svg)](https://github.com/ux-ui-pro/marquee-content)
8
8
  [![NPM Downloads](https://img.shields.io/npm/dm/marquee-content.svg?style=flat)](https://www.npmjs.org/package/marquee-content)
9
9
 
10
- <p>Marquee content with GSAP</p>
10
+ <sup><a href="https://bundlephobia.com/package/marquee-content@0.0.2">1Kb gzipped</a></sup>
11
11
 
12
- <p>
13
- <a href="https://ux-ui-pro.github.io/marquee-content/dist/">Demo</a>
14
- <br>
15
- <a href="https://github.com/ux-ui-pro/marquee-content/releases/latest">Download</a>
16
- </p>
12
+ <h3><a href="https://ux-ui-pro.github.io/marquee-content/dist/">Demo</a></h3>
17
13
 
18
14
  </div>
19
15
  <br>
@@ -26,6 +22,7 @@ $ yarn add marquee-content
26
22
  ```javascript
27
23
  $ npm i marquee-content
28
24
  ```
25
+
29
26
  <br>
30
27
 
31
28
  ### Import
@@ -34,5 +31,34 @@ import { MarqueeContent } from 'marquee-content'
34
31
  ```
35
32
  <br>
36
33
 
34
+ ### Usage
35
+ ```HTML
36
+ <marquee-content
37
+ data-mc-clone="3"
38
+ data-mc-speed="60"
39
+ role="marquee">
40
+ <ul>
41
+ <li>Primary</li>
42
+ <li>Secondary</li>
43
+ <li>Tertiary</li>
44
+ <li>Quaternary</li>
45
+ </ul>
46
+ </marquee-content>
47
+ ```
48
+ <br>
49
+
50
+ ### Settings
51
+
52
+ | data-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Default | Description |
53
+ | --- | --- | --- |
54
+ | `data-mc-clone` | `0` | Clones the content of the component the specified number of times. |
55
+ | `data-mc-speed` | `20` | Sets the duration of content scrolling in seconds. It is acceptable to use decimals. |
56
+ | `data-mc-direction` | `rtl` | `ltr` &mdash; changes the scroll direction from left to right.<br>`auto` &mdash; automatically changes the scrolling direction of the component when scrolling the page. |
57
+ | `data-mc-skew` | `0` | Transforms the component by tilting it along the Y axis (it is acceptable to use a positive or negative value). |
58
+ | `data-mc-min` | `null` | Sets the minimum width at which the animation will be played (when the breakpoint intersects, the cloned elements will be removed and the component styles will be cleared). |
59
+ | `data-mc-max` | `null` | Sets the maximum width at which the animation will be played (when the breakpoint intersects, the cloned elements will be removed and the component styles will be cleared). |
60
+
61
+ <br>
62
+
37
63
  ### License
38
64
  marquee-content is released under MIT license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marquee-content",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Marquee content with GSAP",
5
5
  "author": "ux-ui.pro",
6
6
  "license": "MIT",