4.6.1 • Published 4 months ago
marquee-content v4.6.1
1.5kB gzipped
Demo
➤ Install
yarn add gsap
yarn add marquee-content
➤ Import
import gsap from 'gsap';
import ScrollTrigger from 'gsap/ScrollTrigger';
import MarqueeContent from 'marquee-content';
gsap.registerPlugin(ScrollTrigger);
➤ Usage
const marquee = new MarqueeContent({
element: '.marquee',
});
marquee.init();
➤ Options
Option | Type | Default | Description |
---|---|---|---|
element | string \| HTMLElement | .marquee | The DOM element for the animation. Can be a CSS selector (string) or an HTMLElement object. |
➤ Settings
data-* | Default | Description |
---|---|---|
data-mc-speed | 20 | Sets the speed of the marquee animation. Lower values make the animation faster, while higher values make it slower. |
data-mc-direction | rtl | Scroll direction. Options: rtl (default), ltr (left to right), auto (changes direction based on scrolling). |
data-mc-skew | null | Tilts the component along the Y axis. Accepts positive or negative values. |
data-mc-min | null | Minimum width for the animation to play. |
data-mc-max | null | Maximum width for the animation to play. |
➤ License
marquee-content is released under MIT license.
4.5.1-dev.4
4 months ago
4.5.1-dev.0
4 months ago
4.5.1-dev.1
4 months ago
4.5.1-dev.2
4 months ago
4.5.1-dev.3
4 months ago
4.6.1
4 months ago
4.6.0
4 months ago
4.4.0
1 year ago
4.5.0
1 year ago
4.3.0
1 year ago
4.2.0
1 year ago
4.1.0
1 year ago
4.0.0
1 year ago
3.1.1
2 years ago
2.3.0
2 years ago
2.2.0
2 years ago
2.4.1
2 years ago
2.4.0
2 years ago
3.1.0
2 years ago
3.0.0
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
1.9.1
2 years ago
1.9.0
2 years ago
1.8.0
2 years ago
1.7.0
2 years ago
2.1.0
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.9.10
2 years ago
1.9.9
2 years ago
1.9.8
2 years ago
1.9.7
2 years ago
1.9.5
2 years ago
1.9.4
2 years ago
1.9.3
2 years ago
1.9.2
2 years ago
1.6.0
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.0
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago