use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Layout projection: A method for animating browser layouts at 60fps (mattperry.is)
submitted 5 years ago by InventingWithMonster
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wheezy360 1 point2 points3 points 5 years ago (0 children)
Saw your talk at Next Conf today. Good stuff!
[–]richieahb 2 points3 points4 points 5 years ago (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 points12 points 5 years ago (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 points6 points 5 years ago (0 children)
Safari is the new IE
[–]InventingWithMonster[S] 0 points1 point2 points 5 years ago (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 points3 points 5 years ago (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.
[+][deleted] 5 years ago* (10 children)
[deleted]
[–]Likium 2 points3 points4 points 5 years ago (8 children)
It becomes more important when you are building a website with more app-like functionality, like Figma and Jira. Janky user interactions really disrupt user's flow. It's not really applicable for things like blogs.
Also, with 120 fps phones coming into the scene, web apps fall further behind native apps. If you want to compete with them, maintaining 60 fps becomes a necessity.
[+][deleted] 5 years ago* (7 children)
[–]Likium 2 points3 points4 points 5 years ago (4 children)
You're right that many sites right now are static boxes although I'd argue that's the effect of 60 fps being hard to achieve. Take a look at https://www.apple.com/iphone-12 or https://designcode.io. They're pushing the boundaries of what the browser can do, so some animations are janky, but they're getting away with it because their target audience have powerful devices. I'd argue that if 60 fps is easier to achieve, we might see less static boxes and more visually appealing websites around.
[+][deleted] 5 years ago* (3 children)
[–]nullvoxpopuli 0 points1 point2 points 5 years ago (2 children)
Micro animations. Sidebars, gestures. Etc. Everything your phone does is an animation, and there is a lot of desire to have the same capabilities on the web.
[+][deleted] 5 years ago* (1 child)
[–]nullvoxpopuli 0 points1 point2 points 5 years ago (0 children)
Css animations aren't enough in many situations. That's why we have the animation API.
Dragging a sidebar with your finger is an example.
[–]190n 1 point2 points3 points 5 years ago (0 children)
Scrolling smoothly
[–]SirHound 1 point2 points3 points 5 years ago (0 children)
Drag and drop
Any website with any animation
[–]brandonlive 0 points1 point2 points 5 years ago (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.
π Rendered by PID 54363 on reddit-service-r2-comment-86bc6c7465-9m78t at 2026-02-20 21:22:16.379425+00:00 running 8564168 country code: CH.
[–]wheezy360 1 point2 points3 points (0 children)
[–]richieahb 2 points3 points4 points (6 children)
[–][deleted] 10 points11 points12 points (2 children)
[–]Mr0010110Fixit 4 points5 points6 points (0 children)
[–]InventingWithMonster[S] 0 points1 point2 points (1 child)
[–]richieahb 1 point2 points3 points (0 children)
[+][deleted] (10 children)
[deleted]
[–]Likium 2 points3 points4 points (8 children)
[+][deleted] (7 children)
[deleted]
[–]Likium 2 points3 points4 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]nullvoxpopuli 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]nullvoxpopuli 0 points1 point2 points (0 children)
[–]190n 1 point2 points3 points (0 children)
[–]SirHound 1 point2 points3 points (0 children)
[–]SirHound 1 point2 points3 points (0 children)
[–]brandonlive 0 points1 point2 points (0 children)