Slide transitions when switching views (routes) - reactjs

Is there anybody who has experience with animating react-router-dom routes? My goal is to make slide animation and to make it slide forwards and backwards.
I’m asking because I’ve searched on stackoverflow, Google or even official react-router-dom or react-spring documentations and I really can’t find working solution for this.
Everything I’ve found was outdated or not working and I can’t find any tutorial. Is there anybody who can give me some advices or share some tutorial?
I’m asking in advance and not posting any code now because I’ll work on that tomorrow. So some tips ,tricks and recommendations will be handy. (Working codesandbox link will be the best so I can see how it really works).
Thanks

There is a tutorial on level up tutorials.
https://www.leveluptutorials.com/tutorials/animating-react
video #12
And there are a couple of examples on codesandbox too.
https://codesandbox.io/s/jp1wr1867w
this one to prevent scrollbars:
https://codesandbox.io/s/react-spring-page-transition-example-to-prevent-scrollbar-8uckc?file=/src/styles.css

Related

Alternatives to react-spring-3d-carousel

Guys I need to implement a 3-d carousel for my displaying the images. For this I implemented a library called react-spring-3d-carousel. But I'm having some problems with it because first of all its really slow and it doesn't have a built in support for dragging the images so that they can slide. I've searched all over the internet looking for alternatives to it but to not much avail. It would be great if stackoverflow might help as it was kind of a last resort. Thank you!!
I used this carousel you can adjust the scrolling speed and put it in autoplay : npm install 3d-react-carousal

Web Apple Watch Text Scroll Animation

I am trying to replicate this exact animation. I can see it used on many pages, so it is not specific to Apple. Do you have any suggestions or even working examples. I am using Next.js, so React in combination with Typescript. I appreciate any help you can provide.

framer-motion layoutTransition does work in React, but not in NextJS

I am trying to wrap my head around framer-motion, a really nice animation library which I am trying to use in combination with NextJS.
I followed a CSS tricks youtube video, which explained layoutTransition using this sandbox:
https://codesandbox.io/s/framer-motion-css-tricks-template-3-07wkh?fontsize=14&module=/src/Image.tsx&file=/src/Image.tsx:0-783
Eager to try it out I copied into my NextJs project, but I couldn't get it to work. I stripped away everything to make it even cleaner and ended up with these sandboxes: One is React, the other is NExtJS. To me they are identical, but the zooming of the image using layoutTransition doesn't seem to work in my NextJS sandbox, why?
https://codesandbox.io/s/framer-motion-image-zoom-forked-774up
https://codesandbox.io/s/currying-haze-wii0m
I had the very same problem which has taken me well to much time to fix. So the reason it doesn't work for your next app is that your framer-motion version is above 2.0. Downgrade it to the latest v1 which is 1.11.1 and you should be fine. I don't have any idea why layoutTransitions stopped working since v2, did not found any info about this problem.
I find framer-motion wonderful but it lacks good documentation and community does not to seem to be substantial yet

Why the famo.us/angular is no longer supported by Famo.us

I've found Famo.us when I try to make better animation on mobile devices. But as a angular developer, I still want to use ionic in my next App, so the famo.us/angular comes to me.
When I starting to research it on github, it says
This integration library is no longer supported by Famo.us
Github link : famous-angular
But I can't find any more explanation about the statement.
Can anyone give me some information about that statement? Are there any risks or issues if I still use it?
Here's what happened.
It's up to you whether you use it, but my feelings would be no. To be honest I'm sure if you hunt around you'll find something much more up to date anyway.
I know a few people have success with the Ionic framework, another could be ngFX. Personally I've been pretty happy with Angular's native ngAnimate of late, it's definitely been improved in most recent releases. Combining this with css animation and you have everything you need.

How to synchronize angular apps with togetherjs

I am trying to use togetherjs to make a live help feature for an angular web app. I put the together code in and it works on a basic level. You can see each other's cursors and chat etc. The problem is that none of the angular state data syncs. So when someone navigates to a different route the others don't follow them to the route. Is there a way to fix this? I have seen another question like this on SO but it hasn't been answered and I don't have enough reputation to do anything but answer it and I am seeking the same answer. Any help is much appreciated.

Resources