Is it possible to have a personal Prettier config where you open a file formatted differently to your personal style, it gets presented formatted in your own? (Then changes are saved out in the source format?)
Connected animation transition on @gatsbyjs using @popmotionjs for animation.
The trick is both pages actually render the same image. All we have to do is:
1. grab the selected image's current position and dimension using refs (1/3)
P.S. source code is on the next tweet
I ♥️ @popmotionjs so I made:
✅ usePose - hook for declaring poses
✅ PoseDebugger - will add an animation debugger to the page
✅ sequence - simple function for coordinating animation
I might release it as a lib, for now, check out the sandbox:
codesandbox.io/s/204zox9wxn
@ryanwiemer made his portfolio website github.com/ryanwiemer/rw with page transitions. He writes beautiful code and made me understand popmotion a lot better.
If you're like me who likes animation but can't seem to do it on #react or anywhere. Check out @popmotionjs I was able to create this *complex* navigation for my @gatsbyjs website.
Sketching a version of Pose that uses hooks under the hood really highlights how much interleaving, imperative stuff is buried in there. Exactly the stuff it was written to avoid.
The eagerness with which time-stretched devs are jumping on @reactjs hooks for their apps, websites and libraries is a rare testament.
I personally look forward to migrating Pose to hooks internally, and maybe providing a Popmotion hooks API for simplifying that story too
Finally back and able to try out a couple things from #ReactConf2018. Here's an example of iOS-style additive animations using Popmotion and React Hooks. (Interrupt the animation with the toggle button, as much as you like - these are stacked tweens!)
codesandbox.io/s/7o26yk0y5j?…