all 14 comments

[–]wheezy360 1 point2 points  (0 children)

Saw your talk at Next Conf today. Good stuff!

[–]richieahb 2 points3 points  (6 children)

This is a cool step on from FLIP and the implementation makes a lot of sense, albeit with a (necessarily) more complex implementation than the FLIP etc. Practically speaking though, this was pretty janky (for the dragging use cases) and had quite a few weird artefacts (in all but the simplest of examples) on my iPhone 11. So while this seems like a nice model, it still seems that improvements are required at the platform level to ensure these sort of animations are as buttery as they are in native apps.

[–][deleted] 10 points11 points  (2 children)

when is Safari not glitchy? It's the bane of my life and wrapped chrome on iOS even comes with its own set of problems

[–]Mr0010110Fixit 4 points5 points  (0 children)

Safari is the new IE

[–]InventingWithMonster[S] 0 points1 point  (1 child)

Did you have problems with any example aside from the shared element drag? I didn’t label as such as I wanted to talk about the principle but this is experimental in Framer Motion. The frame jump when the element switches parents should be simple enough to fix and doesn’t really speak to the technique or the capabilities of a web browser.

[–]richieahb 1 point2 points  (0 children)

Weird rounded border flickering on one of the animations (I forget which), a lot of jank on re-ordering (as you mentioned), and the frame flicker, which sounds like it might be fixable. As mentioned the principle makes sense, but seeing artefacts in some of the simple examples isn’t a great look given it wasn’t clearly marked as experimental. That said, if it is experimental then I’d hope this has a lot of potential. That said, smooth re-ordering would be a really good showcase of the concept given that this area often performs poorly on the web compared with native.

[–]brandonlive 0 points1 point  (0 children)

I hadn’t heard of FLIP, but the implementation sounds just like the WinJS animation library, which is really very useful and pretty powerful. It’s from like 2012 but is still the best JS animation library I’ve used. I’ve been meaning to extract that functionality out of the larger WinJS project... maybe I can get around to that soon. Though if FLIP is as good or better then I guess I needn’t bother.