What's new in web animations

  Рет қаралды 37,391

Chrome for Developers

Chrome for Developers

Жыл бұрын

Appropriate animations are a great way to help users build an accurate mental model of how a web page UI works and therefore increase usability of a web site. But it's important for a UI to feel polished and fluid to users. Shipping in Chrome is a collection of new APIs that help you build these frictionless and engaging experiences. Get a highlight of some of these new APIs: view transitions, scroll-driven animations, the linear easing function, and individual transform properties.
Resources:
View Transitions documentation and demos → goo.gle/io23-view-transitions
Scroll-driven animations documentation and demos → goo.gle/io23-scroll-driven-an...
Linear easing function generator → goo.gle/io23-linear-easing-fu...
Speaker: Bramus Van Damme
Watch more:
Watch all the Technical Sessions from Google I/O 2023 → goo.gle/IO23_sessions
Watch more Web Sessions → goo.gle/IO23_web
All Google I/O 2023 Sessions → goo.gle/IO23_all
Subscribe to Google Chrome Developers → goo.gle/ChromeDevs
#GoogleIO

Пікірлер: 49
@ChromeDevs
@ChromeDevs Жыл бұрын
Want to learn more about what's new for the web? Check out the Web Keynote at #GoolgeIO → goo.gle/IO23_webkey_pin
@paramsingh4104
@paramsingh4104 Жыл бұрын
View transitions has been the most envied feature by me compared to native Android and iOS. Glad it finally landed, although late.
@genaroibc
@genaroibc 11 ай бұрын
This is amazing Bramus ❤
@mathnewph
@mathnewph Жыл бұрын
Can't wait to be able to use thoses transition in vue !
Жыл бұрын
After years of enjoying your blog, I finally know how to pronounce your name :)) thx for a great summary 🙏
@bramus
@bramus Жыл бұрын
Thank you, Pavel.
@akshar_dave
@akshar_dave Жыл бұрын
Thank you all for this! 🥭
@ericnjanga3245
@ericnjanga3245 Жыл бұрын
This is amazing!!! ❤❤❤
@komakaze1
@komakaze1 Жыл бұрын
All of these look interesting, but i'm particularly looking forward to the scroll and animation related features that could benefit parallax scrolling web animations.
@guanbo-yang
@guanbo-yang Жыл бұрын
These features are game-changing😮😮
@bramus
@bramus Жыл бұрын
Yes, it’s a very exciting time to be a front end developer 🤩
@TesterAnimal1
@TesterAnimal1 Жыл бұрын
I can’t see how. As a front end developer concerned with real world user needs, this is all fancy swooshy things and fiddling round the edges.
@metamorph8976
@metamorph8976 Жыл бұрын
@@TesterAnimal1 It's as much JS that won't be written nor loaded by the client, and it will also allow people who disable JS to view those "swooshy things and fiddling round the edges".
@savire.ergheiz
@savire.ergheiz Жыл бұрын
So not before long we will have css files which is way bigger than JS. Good Job 😂
@amoose136
@amoose136 Жыл бұрын
I honestly want the frameworks to take the easing function as defined in JS and then just bake it to CSS linear on build automatically so less JS is shipped but the developer experience is more flexible and you can still think in terms of functions and not a series of stops.
@kirillsundaen8810
@kirillsundaen8810 11 ай бұрын
It's amazing!
@dzienisz
@dzienisz Жыл бұрын
10:16 nice explanation
@starlederer
@starlederer Жыл бұрын
14:08 this is very cool but are there plans to introduce logical directions for transforms (e.g. `translate-inline` `translate-block`)
@bramus
@bramus Жыл бұрын
This is still being discussed within the CSS Working Group. Thanks for signalling interest, I’ll pass on the message :)
@alfathmuqoddas6986
@alfathmuqoddas6986 Жыл бұрын
this feature will significantly reduce javascript library used to handle animation! reduced js means increased lighthouse rating!
@mohammadaminrajabi1828
@mohammadaminrajabi1828 3 ай бұрын
That's crazy.
@jobiej7416
@jobiej7416 Жыл бұрын
It’s great. But these features will be best in a pwa published to the play store because of safari
@giorgiog2822
@giorgiog2822 Жыл бұрын
This is amazing! Feel like i wasted so much time animating in JS haha I'm wondering if is there a way to communicate between JS and Css with this animations, i picture a case where when you end a transition you wanna trigger a function or dynamically create a new element. Last is there any thought about the control of how smooth is the page scrolling in css? (like inertia in some js libraries)
@bramus
@bramus Жыл бұрын
In your JS you can listen to animation/transition end events to trigger other things.
@silberguy
@silberguy Жыл бұрын
Is there an expected time that the features will be available for Firefox and safari?
@philip9677
@philip9677 Жыл бұрын
what if the animate to page hasnt loaded yet
@bramus
@bramus Жыл бұрын
There's a timeout. In case that is reached, the transition is skipped.
@cloudpuncher4615
@cloudpuncher4615 Жыл бұрын
what happened to animation worklet API? being able to run an animation in another thread would be pretty handy...
@bramus
@bramus Жыл бұрын
That API is currently not being worked on. Do note though, that Scroll-Driven Animations run off the main thread where possible.
@andrewskangah3710
@andrewskangah3710 Жыл бұрын
All of these look great and all. But, Microsoft Edge is proving more efficient than Chrome these days, and I really want Chrome to fix its performance issues to remain in the game. Anybody agree with this? I love Google btw.
@Atractiondj
@Atractiondj 8 ай бұрын
When will Google buy apple and delete safari from the web?
@jakearchibald
@jakearchibald Жыл бұрын
First!
@yapet
@yapet Жыл бұрын
Just as I was thinking “where is Jake?”. Here he is, in the comments
@bramus
@bramus Жыл бұрын
👋
@leularia
@leularia Жыл бұрын
do we have pollyfill or something like i don't like the web because you can't use things
@bramus
@bramus Жыл бұрын
For many of the features you don’t need a polyfill when you approach them as a progressive enhancement while providing basic fallbacks to older browsers. For Scroll-driven animations specifically there once was a polyfill in the works, but it’s currently on hold while our engineering team first works on finalising the Blink implementation.
@rinconfede
@rinconfede Жыл бұрын
"I have a question about accessibility... is there any way to disable the "view transition API" or "scroll-driven animation" in the browser? I mean, what if people need to turn this off for any reason? (think of Epilepsy, migraines, etc., or even if the user doesn't want it, similar to cookies, for example)."
@clevermissfox
@clevermissfox 7 ай бұрын
Yes usually developers put animations behind a function that checks whether the user has “prefers-reduced-motion” turned on in their browser. If the user has enabled this, the animations aren’t triggered.
@RR-bz8bi
@RR-bz8bi 9 ай бұрын
the "back button" isn't a true "back button"
@axios7776
@axios7776 Жыл бұрын
Better late than never
@realalphas
@realalphas Жыл бұрын
How to use this with qwik?
@shawnbrian5805
@shawnbrian5805 Жыл бұрын
Wrap your function which control page navigation in document.startViewTransition(); Then, you will get a fade through transition.
@realalphas
@realalphas Жыл бұрын
@@shawnbrian5805 Two month past, it is implemented in qwik. And still your solution will not work, because when you clicking a link it's function will not provide Promise. = )
@dzienisz
@dzienisz Жыл бұрын
As always Safari webkit is lagging :( it's sad, Apple have so much money and resources to be on the same page as Google.
@bren.r
@bren.r Жыл бұрын
They don’t innovate anymore. They don’t care about quality. They only know how to market well. They’re toast.
@theklr
@theklr Жыл бұрын
I mean where’s subgrid though. Safari has been catching up in recent years, but they don’t follow only google’s direction. Go look for these in drafts and see the discussions.
@kklowd
@kklowd Жыл бұрын
He's cute
@bramus
@bramus Жыл бұрын
Cute wasn’t really what I was going for, but I’ll take the compliment nonetheless.
@nullstress
@nullstress Жыл бұрын
@@bramus I think you're cool
This React UI Library is GAME CHANGER!
18:13
developedbyed
Рет қаралды 521 М.
Set up consent mode in Google Analytics
8:53
Google Analytics
Рет қаралды 141 М.
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 32 МЛН
WebAssembly: A new development paradigm for the web
22:03
Chrome for Developers
Рет қаралды 69 М.
How to create personalized web experiences
15:55
Chrome for Developers
Рет қаралды 23 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,7 МЛН
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 542 М.
Introducing WebGPU: Unlocking modern GPU access for JavaScript
11:49
Chrome for Developers
Рет қаралды 90 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 387 М.
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 10 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН