0.0.5 • Published 2 years ago

react-gsap-marquee v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-gsap-marquee

Installation

npm install gsap react-gsap-marquee

Usage

import Marquee from 'react-gsap-marquee'

const Example = () => (
  <Marquee>
    <h1>React GSAP Marquee<h1>
  </Marquee>
)

Props

nametypedefaultdescription
classNamestringundefinedAttach class to section element.
speednumber75How fast elements scroll.
maxVelocitynumber1000How fast scroll velocity can be (pixel per second). If set to 0, the marquee won't accelerate on scroll.
velocityFactornumber1How fast acceleration is.
accellerationDurationnumber0.2How long acceleration is.
reverseOnScrollUpbooleantrueReverse animation on scroll up.
isReversedbooleanfalseAnimate from left to right.

License

MIT © bitworking