misterfresh / react-easy-transition Goto Github PK
View Code? Open in Web Editor NEWEasy transitions with react and react-router
License: MIT License
Easy transitions with react and react-router
License: MIT License
Hello, I was just wondering if this is React Router v4 compatible?
It seems to me that the demo is using v3 or v2.
Thanks!
Hi,
I was having a problem with the package after cloning my project and running npm install
.
When I ran my project, I was getting the following error on the console:
Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's
rendermethod, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
After some research and a find . | grep react
inside my node_modules
folder, I found out the package had another version of React inside its own node_modules
folder and it was loading this different version of React on the client, thus leading to the error above.
Apparently, setting the dependency from ^0.14.0 || 15.0
to ^0.14.0 || ^15.0
solved the problem for me, but I think a more thorough checking of the compatibility with the latest version would be the proper solution.
If react is rendered on the server, the page is displayed, then flashes as the initial style is set to 0 opacity, then animated back in.
Is there any way to negate this?
Looks like the babel object-assign transform is not being applied. This PR seems to address the issue: #8. Would love to use this component for an upcoming release :D
I'm trying to use this with flexbox. My html structure is as follows:
css
.Site {
display: flex;
min-height: 100vh;
flex-direction: column;
}
.Site-content {
flex: 1;
}
#app {
display: block;
}
html
<body class="Site">
<div class="Site-content">
<div id="app">
... app rendered here ...
</div>
</div>
</body>
With the above css, a click on links does not transition correctly on the first click, and on the second click it renders a duplicate of the component.
It would be nice if there were examples to do slide in/out as with react-router-transition.
Hi,
I have a problem with installing this package using yarn instead of npm.
It says:
error [email protected]: The engine "node" is incompatible with this module. Expected version "7.2.1".
error Found incompatible module
As I understood it's because of the value of engines.node
, which in you case is strictly set to 7.2.1
. Could you change it to something like 4.x || 5.x || 6.x || 7.x
(it's example from react's package.json)?
Thanks!
I have debugged through the package cause my leaveStyle does not get applied.
Found out that componentWillLeave is not being called after I navigate from the component.
Any idea how to fix that?
Is it possible to implement this with more than one transition? For instance, slide right/left based on whether or not the user is going forwards or backwards in history.
I've noticed that there's a fade out which seems to be locked to 0.3s which doesn't look good with a 1s fade in. How can this be changed?
I found this problem when I tried to use EasyTransition with a custom Loading component.
The component mount and unmount a children component depending of a flag.
When the component is unmount it fires this error:
Uncaught TypeError: Cannot read property 'componentDidLeave' of undefined
Firstly lib renders leave animation of one component, then renders initial style of other component
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.