Gathering detailed insights and metrics for rc-motion
Gathering detailed insights and metrics for rc-motion
Gathering detailed insights and metrics for rc-motion
Gathering detailed insights and metrics for rc-motion
npm install rc-motion
Typescript
Module System
Node Version
NPM Version
93.2
Supply Chain
93
Quality
83.1
Maintenance
100
Vulnerability
100
License
@rc-component/motion@1.1.4
Updated on Feb 18, 2025
@rc-component/motion@1.1.3
Updated on Feb 11, 2025
@rc-component/motion@1.1.2
Updated on Feb 11, 2025
@rc-component/motion@1.1.1
Updated on Feb 11, 2025
@rc-component/motion@1.1.0
Updated on Feb 10, 2025
v2.9.5
Updated on Dec 19, 2024
TypeScript (98.83%)
JavaScript (1.07%)
Shell (0.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
165 Stars
136 Commits
47 Forks
5 Watchers
4 Branches
38 Contributors
Updated on Jun 17, 2025
Latest Version
2.9.5
Package Id
rc-motion@2.9.5
Unpacked Size
104.22 kB
Size
16.86 kB
File Count
55
NPM Version
10.8.2
Node Version
22.5.1
Published on
Dec 19, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
React lifecycle controlled motion library.
https://react-component.github.io/motion/
1import CSSMotion from 'rc-motion'; 2 3export default ({ visible }) => ( 4 <CSSMotion visible={visible} motionName="my-motion"> 5 {({ className, style }) => <div className={className} style={style} />} 6 </CSSMotion> 7);
Property | Type | Default | Description |
---|---|---|---|
motionName | string | - | Config motion name, will dynamic update when status changed |
visible | boolean | true | Trigger motion events |
motionAppear | boolean | true | Use motion when appear |
motionEnter | boolean | true | Use motion when enter |
motionLeave | boolean | true | Use motion when leave |
motionLeaveImmediately | boolean | - | Will trigger leave even on mount |
motionDeadline | number | - | Trigger motion status change even when motion event not fire |
removeOnLeave | boolean | true | Remove element when motion leave end |
leavedClassName | string | - | Set leaved element className |
onAppearStart | (HTMLElement, Event) => CSSProperties | void; | - | Trigger when appear start, return style will patch to element |
onEnterStart | (HTMLElement, Event) => CSSProperties | void; | - | Trigger when enter start, return style will patch to element |
onLeaveStart | (HTMLElement, Event) => CSSProperties | void; | - | Trigger when leave start, return style will patch to element |
onAppearActive | (HTMLElement, Event) => CSSProperties | void; | - | Trigger when appear active, return style will patch to element |
onEnterActive | (HTMLElement, Event) => CSSProperties | void; | - | Trigger when enter active, return style will patch to element |
onLeaveActive | (HTMLElement, Event) => CSSProperties | void; | - | Trigger when leave active, return style will patch to element |
onAppearEnd | (HTMLElement, Event) => boolean | void; | - | Trigger when appear end, will not finish when return false |
onEnterEnd | (HTMLElement, Event) => boolean | void; | - | Trigger when enter end, will not finish when return false |
onLeaveEnd | (HTMLElement, Event) => boolean | void; | - | Trigger when leave end, will not finish when return false |
extends all the props from CSSMotion
Property | Type | Default | Description |
---|---|---|---|
keys | React.Key[] | - | Motion list keys |
component | string | React.ComponentType | div | wrapper component |
npm install
npm start
rc-motion is released under the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 6/30 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
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
Score
Last Scanned on 2025-07-07
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