4.6.1 • Published 4 months ago

marquee-content v4.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

npm GitHub package version NPM Downloads

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

OptionTypeDefaultDescription
elementstring \| HTMLElement.marqueeThe DOM element for the animation. Can be a CSS selector (string) or an HTMLElement object.

Settings

data-*DefaultDescription
data-mc-speed20Sets the speed of the marquee animation. Lower values make the animation faster, while higher values make it slower.
data-mc-directionrtlScroll direction. Options: rtl (default), ltr (left to right), auto (changes direction based on scrolling).
data-mc-skewnullTilts the component along the Y axis. Accepts positive or negative values.
data-mc-minnullMinimum width for the animation to play.
data-mc-maxnullMaximum 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