No video

Bringing page transitions to the web

  Рет қаралды 230,678

Chrome for Developers

Chrome for Developers

Күн бұрын

Пікірлер: 527
@jakearchibald
@jakearchibald 2 жыл бұрын
In case you can't tell, I'm really excited about this feature, but I want to make sure we get it right. Please ask any questions you have, and I'll answer them here. Comments are also welcome on the repo linked in the description.
@StuartLangridge
@StuartLangridge 2 жыл бұрын
The late, not-really-seen-by-anyone-else-as-great element allowed this sort of use (although the Page Transitions API is a lot more helpful about it than was, which mostly gave you the ability to build it yourself!), but the other thing that gave developers was access to both the before page and the after page at the same time. You could use portal.activate and pass data along with it which could be received by the next page, in essence giving a way to add arbitrary extra data to a page navigation. For an SPA you don't need this (because you're all one page), but it's hard for normal websites with more than one page, and portal helped with that. (The hacky ways to do it, like sticking things in the query string or localStorage, aren't as nice, and you can't postMessage from before to after because before and after aren't both present at the same time). Is there anything that the Page Transitions (or maybe the page navigation?) API does to help with that? (this stuff is super duper cool, btw.)
@jakearchibald
@jakearchibald 2 жыл бұрын
@@StuartLangridge isn't dead, it's just resting. No, seriously, it isn't dead, it's still being thought of for that page-in-page stuff. It was delayed by the infrastructure work needed for putting a 'top level' frame within another page, which is needed for portals but also prerender.
@Rachoszsky
@Rachoszsky 2 жыл бұрын
Thanks for the great video, Jake! It's not only exciting stuff, but the presentation is also very well thought out (and funny ;-) Can you see this in action anywhere, e.g. using Chrome Canary for Android? (Not sure if I missed something)
@jakearchibald
@jakearchibald 2 жыл бұрын
@@Rachoszsky yep, see the description for links! Particularly the developer guide
@Rachoszsky
@Rachoszsky 2 жыл бұрын
@@jakearchibald Thanks! Awesome to see this in action, one step closer to that native app feeling 👍🏼
@kylekashuba3219
@kylekashuba3219 2 жыл бұрын
Can't wait to use this in 4 years when Apple implements it in Safari!
@sillvvasensei
@sillvvasensei 2 жыл бұрын
The beauty is that you can implement the feature right away, using a fallback for browsers that don't support the feature, and then simply wait until they all support it.
@DanKantor
@DanKantor 2 жыл бұрын
@@sillvvasensei absolutely. But iOS users not experiencing these lovely transitions is a large chunk of your intended audience I’m sure.
@kylekashuba3219
@kylekashuba3219 2 жыл бұрын
@@sillvvasensei This is true, however I'd be worried about maintenance. Whenever we want to add or change a new transition, we would have to do it twice in different ways if we want to have similar experiences.
@remfur750
@remfur750 2 жыл бұрын
Imo at this point you aren't making a series of webpages, you're making web apps. I feel like the idea of these relatively complex applications being treated as web pages is an archaic and limiting abstraction that sort of limits what the web can be. This is oddly coming from someone who dislikes web apps, so I'm not just hating on web-based progress.
@guyunknown9123
@guyunknown9123 2 жыл бұрын
XD lmao
@SpaceChicken
@SpaceChicken 2 жыл бұрын
This is amazing. Excited to be able to use it in PWAs, and get that much closer to native feel.
@beepbitfutures
@beepbitfutures 2 жыл бұрын
god i miss your videos
@insaneviruss
@insaneviruss 2 жыл бұрын
This is gonna be big! 9:43 is when my heart was literally jumping with joy like a small kid! I've been waiting for this for years. Please make this main stream soon. This has so much potential.
@RamonBalthazar
@RamonBalthazar 2 жыл бұрын
hahahah same 100%
@REAZNx
@REAZNx 2 жыл бұрын
Have you never heard of Framer Motion before?
@PanosPitsi
@PanosPitsi 11 ай бұрын
@@REAZNx you are so smart lets ship 5mb of js to the client to make a buggy mess from 2007. Also it needs react on top so it doesnt work with better frameworks like sveltekit.
@REAZNx
@REAZNx 11 ай бұрын
@@PanosPitsi Framer is 4kb but ok.
@CodingPhase
@CodingPhase 2 жыл бұрын
Finally lol it only took 10+ years but finally we here!!! This has been one of those features I've always wanted. 1. browser transitions (check) 2. css variables (check) 3. nested css (on hold)
@PatricioHondagneuRoig
@PatricioHondagneuRoig 2 жыл бұрын
I'd love for this to be discussed with other vendors and added as a cross-browser standard. Great job guys, it looks amazing.
@zamfofex
@zamfofex 2 жыл бұрын
Isn’t that exactly what was done?
@justsaying4471
@justsaying4471 2 жыл бұрын
Wow, this is cool. I like the simplicity of the api. That’s its real strength, I believe. Any news on whether other browsers will support it as well?
@jakearchibald
@jakearchibald 2 жыл бұрын
We've presented parts to the CSS working group, and folks have been supportive. But we don't have a real spec yet, so it's too early to ask other browsers to commit.
@mathe42
@mathe42 2 жыл бұрын
Even If this only lands in Chrome I will use it!
@justsaying4471
@justsaying4471 2 жыл бұрын
@@mathe42 absolutely. Me too. I like how easy the fallback is, as well. However, I think it won’t be widely used until the feature is adopted in the big frameworks, Angular, Vue, Nextjs, etc. And for that the api needs to be somewhat stable and widespread.
@tusharsnn
@tusharsnn 2 жыл бұрын
@@justsaying4471 i think it will be adapted very quickly as animation libraries uses the same pattern already for this type of page transistion. eg framer motion.
@_HMCB_
@_HMCB_ 2 жыл бұрын
Man I love this. Until other browsers adopt it, I can see creating scenario-specific web apps for kiosks and such. Just awesome. Is Canary available on iPadOS?!
@dkennell998
@dkennell998 2 жыл бұрын
Lovely!! Been thinking a lot about page transitions recently, so the timing here is perfect. This is a great intro to the new APIs
@swyxTV
@swyxTV 2 жыл бұрын
We love you Jake! You're incredible and thanks to the team for all the work on this api!
@leeboyin945
@leeboyin945 2 жыл бұрын
Brilliant! This is one of the most exciting topics for me in I/O 2022. It must have taken tons of hard work to make it look as simple as a breeze. Thanks for making web better!
@james-innes
@james-innes 2 жыл бұрын
Love this guys mannerisms, feels so candid and authentic not like a scripted advert or kids TV show like some Google dev vids
@ciberman
@ciberman 2 жыл бұрын
This is amazing and the API is extremely clever. Currently making animations in SPA is extremely difficult. And the cleverness of this API makes it even possible to work in traditional multi page apps and this makes me even more exited because I'm mainly a backend dev
@EvoSchecter
@EvoSchecter 2 жыл бұрын
"I dont know, You could probably do something better." Now THIS is how you get people into it, An Instructor who has enough confidence to encourage the students.
@karanshah838
@karanshah838 2 жыл бұрын
Can't wait for designers to go crazy with page level animations now 🤩😍😀
@nielskersic328
@nielskersic328 2 жыл бұрын
This is so exciting. Probably my biggest wish for the future of the web. I'm really happy to see all the changes since v1 last year.
@JCake
@JCake 2 жыл бұрын
My absolute favourite element of all of this is a single word: Customisability. I live by this principle, and I'm glad to see I'm not alone
@linkcell
@linkcell 2 жыл бұрын
Thank you. I've been a vanilla html+js+css type of person because I didn't want to add the project complexity and learning required for anything extra. When this becomes standard, it will have proved that it was worth the wait.
@AndaxH
@AndaxH 2 жыл бұрын
This is really exciting - I love that it reuses lots of existing web building blocks and APIs so you don't need to learn much new syntax and just use existing knowledge 😍
@mhombach3035
@mhombach3035 2 жыл бұрын
You guys at Google are absolute legends, wtf. Can't wait to play around with the new api ö_ö
@CoderOne
@CoderOne 2 жыл бұрын
I absolutely love this feature and the simplicity behind it! Looking forward to try it out
@ironcito1101
@ironcito1101 2 жыл бұрын
Very cool! I implemented page transitions using JavaScript and CSS and it was pretty complex. I had to pre-load the content in the background, create the layout out of view, and then do the choreography. The "zoom in" transitions as seen at 9:40 are especially tough. This is a much simpler and more elegant solution. I hope that you make it generally available soon, and that other browsers follow suit. Good work!
@xlayton3342
@xlayton3342 2 жыл бұрын
This is awesome! I really hope this gets widely adopted so we can use it across browsers. That'd be a dream!
@AlexanderTrefz
@AlexanderTrefz 2 жыл бұрын
I was skeptical, as I have built most of those transitions animations myself in various Apps, which is really not fun. This looks like a well thought out and flexible API - thats awesome!
@mohamedchaabouni4477
@mohamedchaabouni4477 2 жыл бұрын
Man ! your talking skills are killing it ! just thank you for this 😁
@Ali-sc6dh
@Ali-sc6dh 2 жыл бұрын
The API seems so simple and well designed ! Can't wait to start poking at it !
@darvil82
@darvil82 2 жыл бұрын
I am incredibly exited for this
@nikilragav
@nikilragav 2 жыл бұрын
You're actually using a Joycon as a clicker? Glad to find other people doing that!
@zuperxtreme
@zuperxtreme 2 жыл бұрын
Love the flexibility of tagging things with CSS, cool stuff!
@ViktorTy
@ViktorTy 2 жыл бұрын
Now, this is what I need in web apps. I can't wait for this to come to regular chrome!
@_va3y
@_va3y 2 жыл бұрын
Wow, that's a really game changer for SPAs and SPA-type websites. Now let's all hope, it'll become implemented soon 🤞
@EduardoLima-pi7fl
@EduardoLima-pi7fl 2 жыл бұрын
Totally! I was wondering about using this API with PWA features and having the possibility to deploy to Google Store, this would make it possible to write SPAs that could become very convincing native apps!
@dk0767
@dk0767 2 жыл бұрын
Subtle transition animation greatly helps usability by providing informative visual queues, but when transition animations take too long to complete, they start to distract and create headaches. Human eyes will want to tack any movement. When the movement speed is above a certain threshold, our eyes will give up tracking during the the transition animation and then eventually snap on the final state of the animation when it stops. This is far better than a slow transition animation where our eyes try to track the whole animation and suffers disorientation and headaches and eye strains. More is not necessary better. A good UI animation should not attract attention to itself.
@sjn_
@sjn_ 2 жыл бұрын
Wow, this is one hell of an amazing feature.
@user-gj5jp1cq2f
@user-gj5jp1cq2f 11 ай бұрын
So sad it's only coming now, but just as excited! Can't wait to be able to use it
@paales2
@paales2 2 жыл бұрын
This is genius! Have been working with @framer/motion with layout transitions and this is almost alike! Does this also enable on-page automatic FLIP animations that scales, resizes etc and automatically resolves the animation?
@jakearchibald
@jakearchibald 2 жыл бұрын
Right now it acts over the whole page, so it might not be appropriate for things when only happen in part of the page (but maybe it's fine in a lot of cases). There's already a github issue open to explore this where the effect is rooted to a smaller area of the page.
@rijkvanwel
@rijkvanwel 2 жыл бұрын
@@jakearchibald that would be very helpful, e.g. in case the next “page” opens in a modal while the previous page stays visible in the background (example, opening a Trello card or photo from a gallery)
@B-max.
@B-max. 2 жыл бұрын
This guy is a fantastic presenter.
@mathe42
@mathe42 2 жыл бұрын
I think it would be great to define the root element so for example you have some div in your page and a transition can be created only for the content inside. The rest of the page would be interactive while the transition runs.
@lazareric
@lazareric 2 жыл бұрын
That's how this ought to have been done, but they are too comfy and a bit lazy at Google, i am sorry for being negative but it's true. If it was some people engineers grinding out there, with the power they have to implement such features, they would've made it properly.
@BenHewart
@BenHewart 2 жыл бұрын
I have been waiting ages for page transitions for web apps at last I can't wait to get my hands on it. Thanks guys!
@b_two
@b_two 2 жыл бұрын
seeing jake without surma is absolutely heartrending
@RamonBalthazar
@RamonBalthazar 2 жыл бұрын
This is the most exciting thing I've seen coming to the web in years!!! Thank you and congratulations 👏👏
@nxte8506
@nxte8506 2 жыл бұрын
This is great. I’ve witnessed firsthand while writing react-motion-router how difficult this all is. It seems simple conceptually but when you layer desirable features on top of each other it starts falling apart and introduces weird edge cases. In my case I was animating the live DOM for each page (as I was unaware of a way to screenshot the current state) which wasn’t great. One question I have is why contain: paint?
@dealloc
@dealloc 2 жыл бұрын
From MDN: > The contain CSS property allows an author to indicate that an element and its contents are, as much as possible, independent of the rest of the document tree. This allows the browser to recalculate layout, style, paint, size, or any combination of them for a limited area of the DOM and not the entire page, leading to obvious performance benefits. In case of these page-transitions it tells the browser to not need to paint the transitioning elements that are offscreen. In this case, elements which transition left and right outside the screen.
@nxte8506
@nxte8506 2 жыл бұрын
@@dealloc thank you so much for the explanation.
@StellarWeb008
@StellarWeb008 2 жыл бұрын
One who got the idea to add this is a real god
@albertodeagostini6143
@albertodeagostini6143 2 жыл бұрын
Oh boy, I'm waiting for something like this for so long
@rasmuslaine4153
@rasmuslaine4153 2 жыл бұрын
Oh yeah, this is great. Simple and yet customisable. Powerful tool.
@MCFedev
@MCFedev 2 жыл бұрын
Omg yeah, I really waited on this for a long time
@dimitardimitrov4979
@dimitardimitrov4979 2 жыл бұрын
Nice! Good job to the team! Also impeccable presentation Jake! :)
@ZhiYin
@ZhiYin 2 жыл бұрын
So extremely cool, I have no word for it. Btw the production quality of this video is through the roof
@gauravrajghimire6396
@gauravrajghimire6396 2 жыл бұрын
I am weeping with joy here.... What didn't I try... Gsap Anime js Animate.css Hover.css And nothing worked and i gave up... Finally i now have a hope of seeing the following Multiple elements of a dynamic SPA load with smooth and fluent animation that gives the page a sense of continuity... A sense of direction in the chaotic Internet.
@tomtucjr
@tomtucjr 2 жыл бұрын
This is SO cool. Amazing work from the whole team. Looks super easy to set up.
@robbiethomas3373
@robbiethomas3373 2 жыл бұрын
This guy needs to do all of Google's announcements from now on. Excellent communication.
@arifulislamleeton
@arifulislamleeton Жыл бұрын
Thank you
@ajaymenon0
@ajaymenon0 2 жыл бұрын
I had been waiting so long for this!!!
@bludauitservices2109
@bludauitservices2109 2 жыл бұрын
i also wanted this feature for years, pwa are looking so natural 🔜!
@BenRangel
@BenRangel 2 жыл бұрын
Sweet. Perfect Progressive Enhancement where you just take something that already works and make it look nicer for some. But as a non-SPA user I'll wait for the upcoming MPA info
@TheOtherMattPerry
@TheOtherMattPerry 2 жыл бұрын
This looks great! Being able to encapsulate targets as images will make things a lot more supportive. How does it combine with WAAPI or other JS animations? It would be great to target this stuff with spring animations, independent x/y transitions etc.
@KangJangkrik
@KangJangkrik 2 жыл бұрын
CSS animation is independent except via class name, I don't think that would be easy
@joshuafarayola6689
@joshuafarayola6689 2 жыл бұрын
This is crazy. I'm excited about it!
@ooogabooga5111
@ooogabooga5111 2 жыл бұрын
beautiful , this might be the next curve on web
@BrianLeRoux
@BrianLeRoux 2 жыл бұрын
This is awesome and Jake is awesome give that man a raise
@jakearchibald
@jakearchibald 2 жыл бұрын
Printing this and mailing it to Paul
@TDefton
@TDefton 2 жыл бұрын
Omg my jaw hit the floor. I’m so excited for this to be out of canary 😍😍😍
@jasetify
@jasetify 2 жыл бұрын
Amazing presentation of amazing new tech. I am excited!
@Drillan767
@Drillan767 2 жыл бұрын
9:42 Oh my gooood I dreamed of that for soooo loooong ! Finallyyyy!
@srsajjad7460
@srsajjad7460 2 жыл бұрын
This is a super demonstration of an exciting API
@ChrisJohnNewton
@ChrisJohnNewton 2 жыл бұрын
Bravo for making something complex simple. Looks great!
@mancerrss
@mancerrss 2 жыл бұрын
Please work with the KZfaq Website developers so they can implement it first, and have that Video transition the same as their Native Mobile apps
@TheNewton
@TheNewton 2 жыл бұрын
8:19 responsive fade and slide transitions are now called: The Archibald
@Stringyyyy
@Stringyyyy 2 жыл бұрын
This is really revolutoinary!
@thundernixon
@thundernixon 2 жыл бұрын
This is fantastic! Love the thinking here and the control available in CSS. Can’t wait to embrace this in my websites!
@coolemur976
@coolemur976 2 жыл бұрын
❤ This has to be brought to HTML/CSS standards ASAP. To have native page transitions would be awesome. This would get rid of all additional JS libraries (barba.js, swup.js, highway.js, etc), would make website bundle size smaller and would make development experience better!
@JohnFarrellDev
@JohnFarrellDev 2 жыл бұрын
Really cool, hope it is supported well across browsers.
@eliotshort9905
@eliotshort9905 2 жыл бұрын
This is crystal clear stuff - love the interactive examples, great work
@showmealldblueprints
@showmealldblueprints 2 жыл бұрын
Really really cool! Good to see some care with transitions.
@lunjie9510
@lunjie9510 2 жыл бұрын
It's really cool! I am excited to hear this news, what a big progress in web app experience!
@ManojKumar-op7ot
@ManojKumar-op7ot 2 жыл бұрын
This is a major change!
@mohhackz4167
@mohhackz4167 2 жыл бұрын
This is insane ! Mashallah ! I like how the web is evolving very fast year after year.
@montebont
@montebont 2 жыл бұрын
Nice concept Jake - thanks for sharing !
@stefanogagliardi4665
@stefanogagliardi4665 2 жыл бұрын
This concept of "Page transistion" reminded me of NextJs; as it has the "shared Layout" conectto which is not reloaded during navigation (eg. header and footer) and in which the pages are injected without reloading. Not having to reload allows you to apply page transitions.
@razor21212121
@razor21212121 2 жыл бұрын
I hope this api is gonna be suported by all browsers in the near future, because i'll be using it a lot!
@sivaranjansahu7427
@sivaranjansahu7427 2 жыл бұрын
What a wonderful presenter!
@Dominik-K
@Dominik-K 2 жыл бұрын
This is an amazing idea, and I'm looking forward to what can be achieved with this pattern
@zhanezar
@zhanezar 2 жыл бұрын
this is what ive wanted for so long so long
@rickymarou2872
@rickymarou2872 2 жыл бұрын
You should have done some transition where Surma gets Replaced with Ada as an example
@_abdul
@_abdul 2 жыл бұрын
Navigation API will be brilliant. Can't wait to play with it.
@zshn
@zshn 2 жыл бұрын
Absolutely gorgeous! I did the screenshot thing but it will be great to have native API.
@megadev3727
@megadev3727 2 жыл бұрын
INSANE!! can't wait for it to roll out to the main build! Will totally give it a try ;)
@canadianbootz
@canadianbootz 2 жыл бұрын
Has anyone else tried svelte's transitions / animations? They are rad, and tackle this same problem of component pop in/out.
@noadevamshmanoj3618
@noadevamshmanoj3618 2 жыл бұрын
I cant wait for this to be stable 🥳
@robinator18ps3
@robinator18ps3 2 жыл бұрын
This! This is exiting! This is exactly what is missing UX wise on the web!
@knolljo
@knolljo Жыл бұрын
Very exited about this feature! Great speaker too!
@shinomitsu7798
@shinomitsu7798 2 жыл бұрын
This is so good, I wanted this for so long
@hosono3918
@hosono3918 2 жыл бұрын
That explains why Jake made an entire HTTP 203 episode about cross-fade! 😉 Looks great! I'm looking forward to use it! I love how easy it is to customize using good old CSS!
@jakearchibald
@jakearchibald 2 жыл бұрын
Exactly! We needed true cross-fades for this, so we standardised that separately
@AbdallaElmedny
@AbdallaElmedny 2 жыл бұрын
Super cool! Look forward to standardisation of this 👌
@kisvegabor
@kisvegabor 2 жыл бұрын
Amazing video! It was a pleasure to listen your presentation. And great feature, of course!
@kapeeshmanilal1613
@kapeeshmanilal1613 2 жыл бұрын
Waiting patiently for this one! Its a good time to be a developer! Thanks to you and the team for this
@oussamabouchebak6877
@oussamabouchebak6877 2 жыл бұрын
This is looking quite awesome!
@ArooPC
@ArooPC 2 жыл бұрын
I don't have much interest in web design but I'd watch any tutorial from you
@peternicholson26
@peternicholson26 2 жыл бұрын
I'm definitely going to be playing with this. Just launching my agencies new website and the page transitions from other Frameworks were a nightmare to mix in with smooth scrolling and gsap, so I left it for version 1.1. Something like this could be the future 💪
@MehdiEsfahani
@MehdiEsfahani 2 жыл бұрын
such a well put-together presentation
@hi9313
@hi9313 2 жыл бұрын
The real reason you don't see it on the web is because your reticular activation system is overwhelmed. It's different on a smaller device as your eye doesn't have to work hard.
@rand0mtv660
@rand0mtv660 2 жыл бұрын
This looks awesome! Couple of things that I'm curious about..You mentioned that this is a nice match to use with new Navigation API, so will these two be released together? If Navigation API is not available when this document transition API is released, how would one add right class name to achieve more tailored back/forward animations as you mentioned? Also, is there a chance that transition gets stuck (poor network or loss of connection)? How is that handled? Will page be non interactive because it's all converted into screenshots or is that screenshot phase not even started if destination route isn't loaded at all?
@rnater7145
@rnater7145 2 жыл бұрын
Great for mobile! Getting closer to native mobile experience.
@pablojavierjimenez
@pablojavierjimenez Жыл бұрын
"maybe is too much i'm not a designer just playing around with new toys" thats the better part 😂, as we say in argentina "te re bancamos jake" it mean "we really backup you jake"
@themarksmith
@themarksmith 2 жыл бұрын
Excellent - looking forward to using this!
HTMX Sucks
25:16
Theo - t3․gg
Рет қаралды 120 М.
The latest in Web UI (Google I/O ‘24)
45:47
Chrome for Developers
Рет қаралды 175 М.
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 17 МЛН
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 39 МЛН
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 168 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
A path to a world without passwords
17:42
Chrome for Developers
Рет қаралды 25 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 470 М.
The history API is dead. Long live the navigation API | HTTP 203
17:52
Chrome for Developers
Рет қаралды 36 М.
The Top 10 Websites of 2022 - CSSDesignAwards
24:45
DesignCourse
Рет қаралды 330 М.
HTMX and the View Transitions API
20:21
BugBytes
Рет қаралды 14 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,7 МЛН
The New Web Animation API that changes The Game!
17:28
CoderOne
Рет қаралды 15 М.
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 17 МЛН