Gathering detailed insights and metrics for react-parallax-tilt
Gathering detailed insights and metrics for react-parallax-tilt
Gathering detailed insights and metrics for react-parallax-tilt
Gathering detailed insights and metrics for react-parallax-tilt
👀 Easily apply tilt hover effect to React components - lightweight/zero dependencies 3kB
npm install react-parallax-tilt
Typescript
Module System
Node Version
NPM Version
91
Supply Chain
92.8
Quality
95.3
Maintenance
100
Vulnerability
100
License
TypeScript (88.91%)
CSS (7.12%)
JavaScript (3.97%)
Total Downloads
3,327,228
Last Day
1,414
Last Week
28,745
Last Month
115,213
Last Year
1,290,502
MIT License
1,013 Stars
2,397 Commits
123 Forks
20 Watchers
4 Branches
15 Contributors
Updated on May 11, 2025
Minified
Minified + Gzipped
Latest Version
1.7.295
Package Id
react-parallax-tilt@1.7.295
Unpacked Size
70.58 kB
Size
10.86 kB
File Count
10
NPM Version
10.9.2
Node Version
24.0.0
Published on
May 07, 2025
Cumulative downloads
Total Downloads
Last Day
-34.7%
1,414
Compared to previous day
Last Week
9.5%
28,745
Compared to previous week
Last Month
-12.2%
115,213
Compared to previous month
Last Year
11.1%
1,290,502
Compared to previous year
54
👀 Easily apply tilt hover effects to React components
1npm install react-parallax-tilt
1import Tilt from 'react-parallax-tilt'; 2 3const App = () => { 4 return ( 5 <Tilt> 6 <div style={{ height: '300px', backgroundColor: 'darkgreen' }}> 7 <h1>React Parallax Tilt 👀</h1> 8 </div> 9 </Tilt> 10 ); 11};
All props are optional.
Here's the complete list of available props and their default values:
▶︎ indicates the default value
tiltEnable: boolean ▶︎ true
Enables/disables the tilt effect.
tiltReverse: boolean ▶︎ false
Reverses the tilt direction.
tiltAngleXInitial: number ▶︎ 0
Initial tilt angle (in degrees) on the x-axis.
tiltAngleYInitial: number ▶︎ 0
Initial tilt angle (in degrees) on the y-axis.
tiltMaxAngleX: number ▶︎ 20
Maximum tilt rotation (in degrees) on the x-axis. Range: 0°-90°
.
tiltMaxAngleY: number ▶︎ 20
Maximum tilt rotation (in degrees) on the y-axis. Range: 0°-90°
.
tiltAxis: 'x' | 'y' ▶︎ undefined
Enables tilt on a single axis only.
tiltAngleXManual: number | null ▶︎ null
Manual tilt rotation (in degrees) on the x-axis.
tiltAngleYManual: number | null ▶︎ null
Manual tilt rotation (in degrees) on the y-axis.
glareEnable: boolean ▶︎ false
Enables/disables the glare effect.
glareMaxOpacity: number ▶︎ 0.7
Maximum glare opacity (0.5 = 50%, 1 = 100%
). Range: 0-1
glareColor: string ▶︎ #ffffff
Sets the color of the glare effect.
glarePosition: 'top' | 'right' | 'bottom' | 'left' | 'all' ▶︎ bottom
Sets the position of the glare effect.
glareReverse: boolean ▶︎ false
Reverses the glare direction.
glareBorderRadius: string ▶︎ 0
Sets the border radius of the glare. Accepts any standard CSS border radius value.
scale: number ▶︎ 1
Scale of the component (1.5 = 150%, 2 = 200%
).
perspective: number ▶︎ 1000
Defines how far the tilt component appears from the user. Lower values create more extreme tilt effects.
flipVertically: boolean ▶︎ false
Enables/disables vertical flipping of the component.
flipHorizontally: boolean ▶︎ false
Enables/disables horizontal flipping of the component.
reset: boolean ▶︎ true
Determines if effects should reset on onLeave
event.
transitionEasing: string ▶︎ cubic-bezier(.03,.98,.52,.99)
Easing function for the transition.
transitionSpeed: number ▶︎ 400
Speed of the transition.
trackOnWindow: boolean ▶︎ false
Tracks mouse and touch events across the entire window.
gyroscope: boolean ▶︎ false
Enables/disables device orientation detection.
onMove: ({ tiltAngleX: number, tiltAngleY: number, tiltAngleXPercentage: number, tiltAngleYPercentage: number, glareAngle: number, glareOpacity: number, event: Event }) => void
Callback triggered when user moves on the component.
onEnter: (event: Event) => void
Callback triggered when user enters the component.
onLeave: (event: Event) => void
Callback triggered when user leaves the component.
Please note that device orientation detection is currently experimental technology.
Check the browser compatibility before using it in production.
Important considerations when using device orientation:
https
)<iframe>
elementApple disabled device motion and orientation by default starting with iOS 12.2.
iOS 13+ provides a permission API to access device orientation events.
When using the gyroscope feature:
1<Tilt gyroscope={true}> 2 <h1>React Parallax Tilt 👀</h1> 3</Tilt>
A permission dialog will prompt the user to allow motion and orientation access at the domain level:
Note: User interaction (like tapping a button) is required to display the permission dialog - it cannot be triggered automatically on page load.
Easily set up a local development environment!
Build project and start storybook on localhost:
npm install
npm start
Start coding! 🎉
Clone this repository and navigate to its location
Run the following commands:
1npm install 2npm link # link your local repo to your global packages 3npm run build:watch # build the files and watch for changes
Clone the project you want to test with react-parallax-tilt and run:
1npm install 2npm link react-parallax-tilt # link your local copy into this project's node_modules 3npm start
All contributions are welcome!
Please review contribution guidelines: Pull Requests | Issues
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 2/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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