marqy
DEMO: MARQY.PARTY
Install
yarn add marqy
or using npm
npm i marqy
Usage
Import React
import { Marqy } from 'marqy';
<Marqy speed={1} direction="left" pauseOnHover>
<span>Your content here</span>
</Marqy>
Import CSS
import 'marqy/dist/marqy.css';
or add it manually: see marqy.css stylesheet
Properties
| Name | Type | Description |
|---|---|---|
speed |
number [default: 0.5] | Scroll speed multiplier |
direction |
string [default: 'left'] | Direction of scroll |
pauseOnHover |
boolean [default: false] | Pauses the animation on hover |
manual |
boolean [default: false] | Renders without applying CSS animations |
children |
React.ReactNode | Content to repeat inside the marqy |
License
MIT © Nick DiMatteo + Mike Wagz
Related Packages
@studiolxd/scorm
Headless SCORM 1.2/2004 runtime — framework-agnostic core with React, Vue, Angul...
1,855
0
@designbasekorea/carousel
An accessible, dependency-free web carousel with native scrolling, framework ada...
181
Version History
| Version | Released | License |
|---|---|---|
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT | |
| 0.0.9 | MIT | |
| 0.0.8 | MIT | |
| 0.0.7 | MIT | |
| 0.0.6 | MIT | |
| 0.0.5 | MIT | |
| 0.0.4 | MIT | |
| 0.0.3 | MIT | |
| 0.0.2 | MIT | |
| 0.0.1 | MIT |