jonathandion / react-tilt Goto Github PK
View Code? Open in Web Editor NEWParallax tilt hover effect for React JS ๐ช
Parallax tilt hover effect for React JS ๐ช
The Dist directory does not equal the current src directory in the master branch.
dist 2 years ago
src 8 months ago
It also does not work correctly when the existing src directory is built. Will you synchronize two directories in a running situation?
Just requires a simple change to package.json
FindDOMNode is deprecated in react strict mode.
In the demo: https://vx-demo.now.sh/gallery
try scrolling down while trying to keep the mouse over the tilt element.
You will see how the tilting get's stuck on one of the sides.
I'm going to try to use the basic library. But thought I'd let you know.
hi
please add glare to react version
I assume this is abandoned..
But yeah, the options don't work at all. Only the styles do. I get the tilt effect using the basic setup, but any option I change makes no difference to the default ๐คท๐ฝโโ๏ธ
not working on small screens?
The project needs to update its dependencies to also support react 17.
The current code seems to work with react 17, so it should just be a change in the package.json.
Google hrome. Demo:
I get the following error on fresh install and importing it in a NextJS page:
SyntaxError: Cannot use import statement outside a module
My import code:
import { Tilt } from 'react-tilt';
Environment:
"next": "13.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Would it be possible to add support for Typescript to this library?
backdrop-filter of child elements of Tilt does not work at all times
Hi, first thanks for creating this nice library for react!
Maybe I'm completely off here but would it be possible to add support for touch gestures, since most of my web apps is not used on computers?
Hi,
very nice tilt component, works very well!
I guess there is a problem while unmounting Tilt. It is possible that some of the delayed executions (via setTimeout/requestAnimationFrame) will be executed after the component is unmounted, which will result in a React warning caused by setState
calls.
Something like
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Tilt component.
I was able to solve this problem by adding some tear down logic:
componentWillUnmount() {
clearTimeout(this.transitionTimeout);
cancelAnimationFrame(this.updateCall);
}
Should I prepare a PR?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.