-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from dhruv8433/tilt
add tilt effect
- Loading branch information
Showing
4 changed files
with
77 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
declare module 'react-tilt' { | ||
import * as React from 'react'; | ||
|
||
interface TiltOptions { | ||
reverse?: boolean; | ||
max?: number; | ||
perspective?: number; | ||
scale?: number; | ||
speed?: number; | ||
transition?: boolean; | ||
axis?: null | 'x' | 'y'; | ||
reset?: boolean; | ||
easing?: string; | ||
} | ||
|
||
interface TiltProps { | ||
options?: TiltOptions; | ||
className?: string; | ||
style?: React.CSSProperties; | ||
children?: React.ReactNode; // Add this line to include the children property | ||
} | ||
|
||
export const Tilt: React.FC<TiltProps>; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters