
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
marquee-content
Advanced tools
MarqueeContent provides a set of tools for creating dynamic and adaptive ticker animations on web pages using GSAP and ScrollTrigger.
MarqueeContent provides a set of tools for creating dynamic and adaptive ticker animations on web pages using GSAP and ScrollTrigger. It offers seamless integration with media queries, automatic element cloning for continuous scrolling effects, and efficient handling of resize events. Additionally, it supports customizable animation directions and skew effects, ensuring smooth and visually appealing ticker animations across different screen sizes.
1.5kB gzipped
➤ 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.
FAQs
MarqueeContent provides a set of tools for creating dynamic and adaptive ticker animations on web pages using GSAP and ScrollTrigger.
The npm package marquee-content receives a total of 34 weekly downloads. As such, marquee-content popularity was classified as not popular.
We found that marquee-content demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.