This is a web experiment for native-like animations/transitions between 'current page leaving the DOM' and 'new page entering the DOM’ using ReactJs and CSS.
When an item is selected from the listing page, the common elements among the listing page and the detail page for the selected item (image and its background in our case) are animated from their current positions on listing page to their destination positions on the detail page. The reverse also works the same way.
The interesting thing to be noticed in this demo is that the leaving page also leaves the DOM rather than staying in it.
|iPad view||Mobile view|
ReactJs Context API
First of all, install all the packages.
In the project directory, you can run.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Feel free to share your views on this.
Have an awesome idea? We will provide a quick analysis and free proposal for it. Don’t worry, it is secure and confidential.