Gathering detailed insights and metrics for react-scrollmagic
Gathering detailed insights and metrics for react-scrollmagic
Gathering detailed insights and metrics for react-scrollmagic
Gathering detailed insights and metrics for react-scrollmagic
@farmako/react-scrollmagic
React declarative component for ScrollMagic
@theninza/react-scrollmagic
React declarative component for ScrollMagic
scrollmagic-react
Scrollmagic and gsap made easier to use in React applications.
react-scrollmagic-r18
React declarative component for ScrollMagic with react 18 support
npm install react-scrollmagic
Typescript
Module System
Min. Node Version
Node Version
NPM Version
83.2
Supply Chain
95.5
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (99.72%)
HTML (0.28%)
Total Downloads
2,315,866
Last Day
950
Last Week
5,014
Last Month
21,297
Last Year
306,279
372 Stars
53 Commits
64 Forks
4 Watchers
8 Branches
3 Contributors
Updated on May 02, 2025
Minified
Minified + Gzipped
Latest Version
2.3.0
Package Id
react-scrollmagic@2.3.0
Unpacked Size
705.37 kB
Size
178.79 kB
File Count
7
NPM Version
6.14.6
Node Version
12.18.4
Cumulative downloads
Total Downloads
Last Day
45%
950
Compared to previous day
Last Week
16%
5,014
Compared to previous week
Last Month
-8.5%
21,297
Compared to previous month
Last Year
-18%
306,279
Compared to previous year
31
React components for ScrollMagic
react-scrollmagic lets you use the ScrollMagic library in React in a fully declarative way. It abstracts away the direct use of the ScrollMagic classes ScrollMagic.Controller and ScrollMagic.Scene.
From version 2 on the GSAP library in no more included. But react-scrollmagic plays nicely together with react-gsap.
1npm install --save react-scrollmagic
1import React from 'react'; 2import { Controller, Scene } from 'react-scrollmagic'; 3 4const App = () => ( 5 <div> 6 <Controller> 7 <Scene duration={600} pin> 8 <div>Sticky Example</div> 9 </Scene> 10 </Controller> 11 </div> 12);
Examples live demo:
https://bitworking.github.io/react-scrollmagic/
Examples source:
These React components use http://scrollmagic.io/ internally. So for an in-depth documentation please visits following sites:
http://scrollmagic.io/docs/ScrollMagic.Controller.html
http://scrollmagic.io/docs/ScrollMagic.Scene.html
There are two components available:
Props:
name | type | optional | default | more info |
---|---|---|---|---|
container | string or object | yes | window | |
vertical | boolean | yes | true | |
globalSceneOptions | object | yes | {} | link |
loglevel | number | yes | 2 | |
refreshInterval | number | yes | 100 |
The Scene component only consumes a single child. If you want to animate multiple children then you have to wrap them in a HTML element.
Scene sets the ref for the child component automatically. This only works for HTML tags, Styled Components or React.forwardRef components. If you use stateless or stateful components then you need to set the triggerElement or pin prop or wrap them in a HTML tag. See Components.js for an example.
The Scene component also works with a function as child. The function takes an animation progress (0-1) as first parameter and the event object as second parameter. See ClassToggle.js for an example.
From version 2 on it also works with a react-gsap Tween or Timeline component as direct child. See SectionWipes2.js for an example.
Props:
name | type | optional | default | more info |
---|---|---|---|---|
duration | number or string | yes | 0 | Can be changed on-the-fly |
offset | number or string | yes | 0 | Can be changed on-the-fly |
triggerElement | string, object or null | yes | child element | |
triggerHook | number or string | yes | "onCenter" | link (Can be changed on-the-fly) |
reverse | boolean | yes | true | Can be changed on-the-fly |
loglevel | number | yes | 2 | |
indicators | boolean | yes | false | only boolean in contrast to plugin options: link |
classToggle | string or string[2] | yes | undefined | link |
pin | boolean or string | yes | undefined | link |
pinSettings | PinSettings | yes | undefined | See Types and link |
enabled | boolean | yes | true | Can be changed on-the-fly |
progressEvents | boolean | yes | true | Ability to silence progress events reducing redraws |
name | type | optional | default |
---|---|---|---|
pushFollowers | boolean | yes | true |
spacerClass | string | yes | "scrollmagic-pin-spacer" |
This project was bootstrapped with:
https://github.com/transitive-bullshit/create-react-library
MIT © bitworking
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 4/20 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
148 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More