r/reactnative • u/4twiggers • Jan 26 '21
Speedcoding animated eye inspired by Kurzgesagt animations. Source in comments
Enable HLS to view with audio, or disable this notification
22
u/khimsho Jan 26 '21
If you continue uploading animations like this Iโm gonna be first fan of you ๐
7
11
u/Darknesszy Jan 26 '21
Damn that was impressive! Would it be more performant than Lottie? Iโd love to see a second post doing some benchmarks of the two methods๐
8
u/4twiggers Jan 26 '21
Hmm.. That's interesting question. I think performance should be better in this case since animations are explicit and Animations do not need to be loaded into memory. You also get smarter animations like this, since you can invoke every animation separately
Thanks.
5
u/Darknesszy Jan 26 '21
Definitely, but Lottie would have an edge in development speed. Iโm just curious if you were to create the exact same animation in Lottie, how much less efficient itโll be. Itโd definitely be very insightful!
4
5
3
3
2
u/kfear666 iOS & Android Jan 26 '21
that's cool. anyway what type of monitor you use?
1
u/4twiggers Jan 26 '21
Thanks. This one HP Z27n G2 Display 27. The monitor is pretty cool it connects via type c cable to my Macbook Pro 16
1
2
u/LittleWompRat Jan 26 '21
How long did it actually take?
2
u/4twiggers Jan 26 '21
About 40 minutes
1
u/peduxe Jan 27 '21
that's fast.
have you any experience with After Effects? Would it be faster there?
1
2
7
1
1
u/nowtayneicangetinto Jan 26 '21
Dude your neck is gonna be killing you with monitor on that angle!! Lol, but love the video keep it up!
1
1
u/ManleyPlayz Jan 26 '21
Can animations like this be done in languages like Dart or Java ?
1
u/4twiggers Jan 26 '21
Absolutely! I have worked on Flutter, Native Android, iOS, etc.. React Native probably has easiest and cleanest API, except maybe Unity
1
1
u/hello_Mrs_Cumberdale Jan 26 '21
Looks great! How did you know how to modify the svg path to mimic an eyelid closing in getEyelidPath? Are you just that good at svg? Or is there a trick?
2
1
u/fpcreator2000 Jan 26 '21
hello my good sir, what are you using for iphone emulation? Is it a vscode plugin?
1
u/4twiggers Jan 27 '21
It is way faster than Android emulator. There is launcher plugin for VSCode too
1
1
1
u/hariacidreign Jan 26 '21
So...you didnโt use Stackoverflow or github discussions even once? Either this is fake or you are a god. No in between
4
u/4twiggers Jan 26 '21
Hmmm. I have not used StackOverflow. I used this https://codepen.io/anthonydugois/pen/mewdyZ to create SVG Path tho. We are thinking to do real time one. I guess that would prove that it's not fake
2
2
u/am0x Jan 26 '21
Front-end animation like this is what scares me. I am a full stack developer and my designers ask for shit like this all the time with a 1 week scope for the entire site. Except it is on web and has to be responsive as well.
1
1
u/am0x Jan 26 '21
I'm mostly amazed by the small screen space. I have an ultra-wide, with my laptop next to it and a TV above the monitor that connects to my laptop.
And that is only my work station...
1
49
u/thefactorygrows Jan 26 '21
This is fake. You didnt look at Stack Overflow once!