Mind-blowing page animations are easy now... View Transitions API first look

Поділитися
Вставка
  • Опубліковано 12 сер 2023
  • Learn about the new View Transitions API in Astro and how it can add awesome route animations to your website.
    #webdevelopment #javascript #code
    Upgrade to Fireship PRO fireship.io/pro
    View Transitions API docs.astro.build/en/guides/vi...
    SvelteFire Docs sveltefire.fireship.io
    I built a JS framework • I built a JavaScript f...

КОМЕНТАРІ • 353

  • @trimonmusic
    @trimonmusic 9 місяців тому +1435

    "Grid of Asses", this is why I chose Fireship for my programming education needs 👍

    • @kissmyussr1993
      @kissmyussr1993 9 місяців тому +26

      If I were taught like that at my college I would've already been an L11 at Google

    • @parlor3115
      @parlor3115 9 місяців тому +11

      When your mom walks in on you

    • @XDarkGreyX
      @XDarkGreyX 9 місяців тому

      Thanks to you I knew what was coming... or so I thought. The number of times he said ass made me giggle like a child a bit too much...

    • @steamer2k319
      @steamer2k319 9 місяців тому +2

      About time someone came out with a foolproof plan to get one's ass moving. I'm going to forward this helpful vid to my roommate.

    • @arunkarnati
      @arunkarnati 9 місяців тому +1

      💯😂

  • @pilearn1266
    @pilearn1266 9 місяців тому +706

    The best ai youtuber

  • @jcy089
    @jcy089 9 місяців тому +372

    Two lines of code for a nicer animation but be prepared to learn a new framework, re-learn how do develop JS AND spend hours debugging why all your JS interactions are broken. Yep, sums up frontend development accurately.

    • @beatsandstuff
      @beatsandstuff 9 місяців тому +92

      yeah, but you get to morph asses, so get going and relearn

    • @mosch1811
      @mosch1811 9 місяців тому +27

      For frontend developer learning Astro and all its concepts shouldn’t really be as hard. A short look into the docs and you will know most of the stuff

    • @user-kt7li4le8s
      @user-kt7li4le8s 9 місяців тому +18

      ​@@mosch1811astro really feels like it's mostly just HTML

    • @shayanzamani9907
      @shayanzamani9907 9 місяців тому

      I literally learned Astro right before I started building my personal website and it didn't take me more than 3,4 days. You just need to be fluent in HTML, CSS, and JavaScript. BTW, Astro is just awesome and dead simple for the most part, you'll love having it added to your tech stack.

    • @Kevin-jc1fx
      @Kevin-jc1fx 9 місяців тому +3

      @@mosch1811 The big concern is opportunities. It can be fun for personal or freelance projects were you enjoy full autonomy but there are little chances it will help in your current or future job.

  • @wlockuz4467
    @wlockuz4467 9 місяців тому +58

    -Ass- as a mobile dev turned into a web dev, this makes me so happy.

  • @DanelonNicolas
    @DanelonNicolas 9 місяців тому +102

    I love how you move this asses from one page to another

  • @georgios_georgiou
    @georgios_georgiou 9 місяців тому +111

    Dang it love Jeff’s puns he deliberately made the ass page and item just to say now you can move your ass from one page to another 😂 give this man a pun Nobel already

  • @ciach0_
    @ciach0_ 9 місяців тому +132

    "That explicitly tells the View Transitions API how to move your ass from one page to another" - Jeff, 2023

    • @kpodp0ra
      @kpodp0ra 9 місяців тому

      lot of asses out there

  • @LukeBarousse
    @LukeBarousse 9 місяців тому +29

    "That tells the API how to move your a$$ from one page to another" 🤣i'm dying lolz

  • @mitchellmnr
    @mitchellmnr 9 місяців тому +12

    You had me on my a$$ with this one.
    Well played, well played!

  • @kollpotato
    @kollpotato 9 місяців тому +43

    2:15 I am the one who added smooth transitions when toggling themes. I am proud of myself.

    • @fuzzy-02
      @fuzzy-02 9 місяців тому +11

      And I am proud of you son. I mean, potato

    • @kollpotato
      @kollpotato 9 місяців тому +1

      @@fuzzy-02 Thank ya

    • @Owapawa
      @Owapawa 9 місяців тому +1

      Smooth stuff! Is there a way to see where and how you implemented that?

    • @kollpotato
      @kollpotato 9 місяців тому +1

      @@Owapawa It's really simple with Tailwind, you just add transitions-colors duration-500 to the body

    • @shayanzamani9907
      @shayanzamani9907 9 місяців тому

      Oh cool@@kollpotato

  • @DryBones111
    @DryBones111 9 місяців тому

    Thank you so much for this video. I linked it to someone to show off Astro's new support for this in v3 while at the same time accidentally discovering the solution to the bug of my button losing interactivity after upgrading my site to use these transitions. Super.

  • @mfpears
    @mfpears 9 місяців тому +65

    This feels like a low-code router in an unfinished SPA framework. It may be that the ideal solution is way simpler than existing SPA frameworks. So maybe just a little bit of experience with this will reveal some basic patterns that can scale. But I have a feeling it's going to be rough for a while.

    • @kashanahmad8014
      @kashanahmad8014 9 місяців тому

      Don't really see anything being rough other than the image sources, which you can handle pretty easily using a build-time js object that just dumps the sources wherever you want it to.

    • @mfpears
      @mfpears 9 місяців тому +1

      @@kashanahmad8014 it always seems that way until you have to get something done. Even in this video we see a few gotchas.

    • @kashanahmad8014
      @kashanahmad8014 9 місяців тому

      @@mfpears yet none of us has given it a try yet we're here to complain eh?

    • @mfpears
      @mfpears 9 місяців тому

      @@kashanahmad8014 I don't need to try it. It's new, and routing is complicated.

    • @kashanahmad8014
      @kashanahmad8014 9 місяців тому

      @@mfpears New doesn't mean bad unless you have evidence, which you don't have until you try. I just created a simple 2-page app and it looks pretty solid. Try it yourself.
      Routing has never been less complicated, ever seen one of those client-side routers in an enterprise react app?

  • @midas6659
    @midas6659 9 місяців тому +1

    It's videos like this that make me proud to be a subscriber of Fireship content 🔥

  • @combinio9533
    @combinio9533 8 місяців тому

    Amazing! I really enjoy the way where it is all going in terms of web-dev (classic MPA with SPA-best features).

  • @samkim5612
    @samkim5612 9 місяців тому +1

    Awesome video, learning and laughing at the same time.

  • @Shaheer-xs5os
    @Shaheer-xs5os 9 місяців тому +1

    Dude that stack is so uncommon , only you can come up with such a beautiful and unique thinking, hats off dude.... and I have also renamed my assests to.... ahm... anyways, nice content, keep it up BOI 😅✌

  • @krzysztofkrol5374
    @krzysztofkrol5374 9 місяців тому +11

    I LOVE ASSTRO

  • @adicandra9940
    @adicandra9940 7 місяців тому

    for the listener problem, just hook everything related to the page initialization(attaching event handler, etc) to "astro:after-swap" event, it will be called when page changed, so it's similar to "DOMContentLoaded" event in a sense.

  • @taiwojolomi2638
    @taiwojolomi2638 9 місяців тому

    Fireship delivers knowledge and humor... Gets me everytime 😂💥💥

  • @devprog001
    @devprog001 9 місяців тому +3

    "Our asses now dances around our astro site" got me rolling in the ground 💀💀

  • @boogiman007
    @boogiman007 9 місяців тому

    your humor has gone to another level

  • @efdezpolo
    @efdezpolo 9 місяців тому +1

    My blog has literally two posts. Straight to the feelings.

  • @davidkurniadiweinardy9603
    @davidkurniadiweinardy9603 9 місяців тому +18

    You're a live saver! Now I know how to move my ass gracefully,

  • @gabrielbrandao1106
    @gabrielbrandao1106 9 місяців тому

    Love your content, keep it up :)

  • @bobdpa
    @bobdpa 9 місяців тому +10

    Great job. Ass usual.

  • @KJOB
    @KJOB 9 місяців тому +3

    you making me want to rebuild my personal project that i havent even finish yet

  • @MegaTeeruk
    @MegaTeeruk 9 місяців тому

    Hanging out with Fireship is going on my bucket list with getting in a foot race with Tom Cruise.

  • @modernkennnern
    @modernkennnern 9 місяців тому +41

    The first time I heard about the View Transitions API (Used to be called something else when Google originally announced it), my immediate reaction was "Why is this not a thing already?" followed by "I can't wait for this"
    Then when they announced it was an official CSS spec, and that cross-document view transitions are coming in v2 I was really dissapointed. Sure, same-document transitions can simplify things, but they're nothing game-changing. Cross-document on the other hand are when things are getting interresting. View transitions can give you most of the power of SPAs with the user-, and development experience of MPAs.
    Edit: I originally wrote "site" instead of "document" which might've confused people. Cross-"domain" transititions never even crossed my mind when I wrote this originally. Sorry for the confusion.

    • @quintencabo
      @quintencabo 9 місяців тому +9

      Yeah but like when do you actually control multiple domains?

    • @mfpears
      @mfpears 9 місяців тому +2

      ​@@quintencaboI think the use case would be embedded media. Because yeah, headers and footers tend to be site-specific. But imagine UA-cam provides embedding code that includes the right view transition, so when you want to continue watching on UA-cam it smoothly transitions. Images could work too. Whatever site is hosting the media would have to treat it like a public API.

    • @rand0mtv660
      @rand0mtv660 9 місяців тому +6

      To be honest I never thought about cross site transitions for something like this. I always thought about this being a single site experience. To me it also seems like a security issue if someone can potentially use smooth transition to some crappy domain which a regular user wouldn't notice.
      To me same site transitions make more sense to give your users a bit nicer UX in certain cases and sense of direction and change when changing pages. I personally wouldn't want UA-cam transitioning to Google Docs for example because those two are totally different. I might change my mind when I actually see this in practice.

    • @modernkennnern
      @modernkennnern 9 місяців тому

      @quintencabo have I misunderstood the spec? According to MDN:
      > Note: The View Transitions API doesn't currently enable cross-document view transitions.
      I understood that as "going from domainCom/cats to domainCom/dogs is not supported", but if that actually means "going from domainCom/cats to otherDomainCom/dogs" tgen it's a non-issue

    • @r-i-ch
      @r-i-ch 9 місяців тому

      The transitions are game-changing for your User's "UX" - Animations provide context for "what just happened"/"how did I get here". They show a hierarchical-relationship in a hit-you-in-the-face-with-a-tennis-racket obvious way. As the dev/designer you know way more about what/why your UI changes than your user will. The whole transitioning thing really shines when you are implementing a Single-Page App. Sure, it would be neat to transition to another website, but that website is someone else's problem (someone else's literal domain) so if you really really want to go there, maybe add the other site in an that you do have control over?

  • @hbfl3x50
    @hbfl3x50 9 місяців тому

    I have been an Astro fan ever since I discovered it

  • @user-cg4id9ig3y
    @user-cg4id9ig3y 2 місяці тому

    You're the best!

  • @abraham_o
    @abraham_o 3 місяці тому

    The rants about assess is so beautiful... 😂

  • @devdhaif
    @devdhaif 9 місяців тому

    That's a cool way to transition an ass from page to another
    Really cool

  • @JimMendenhall
    @JimMendenhall 9 місяців тому

    Those are some sweet ass animations!

  • @MrExiztence
    @MrExiztence 9 місяців тому

    This is fantasstic!

  • @roopak973
    @roopak973 9 місяців тому +2

    That's a kick-ass example

  • @Carhill
    @Carhill 9 місяців тому +3

    "...how to move your ass from one page to another..."
    Pure comedy gold. 😂

  • @yajirushik2871
    @yajirushik2871 9 місяців тому

    The ultimate asses guide, one to interest everyone.

  • @terabit7400
    @terabit7400 9 місяців тому

    Damn! Those are really nice АSSES 🔥😉

  • @vaisakhkm783
    @vaisakhkm783 9 місяців тому

    That's a greatAss video...

  • @theblackestfern
    @theblackestfern 9 місяців тому +7

    That's a nice Ass-tro tutorial indeed

  • @btg323
    @btg323 9 місяців тому

    This video kicks ass

  • @powerpcx86
    @powerpcx86 9 місяців тому

    This is fantASStic, i love ASStro

  • @timjini3197
    @timjini3197 9 місяців тому

    At the end it was quite funny 😂

  • @FauzulChowdhury
    @FauzulChowdhury 9 місяців тому +1

    Asstonishing feature.

  • @amirnoorani5017
    @amirnoorani5017 9 місяців тому

    You are so good and funny 😂

  • @ciscoramonsanchez5192
    @ciscoramonsanchez5192 9 місяців тому

    this got wild really fast

  • @Woeden
    @Woeden 9 місяців тому

    That's a fine ass app you got there

  • @wahyusa
    @wahyusa 9 місяців тому

    Can't wait for more browser support

  • @erik-fisher
    @erik-fisher 9 місяців тому +6

    This AI sound is almost perfect.

  • @FlyingPenguino
    @FlyingPenguino 9 місяців тому

    That ass demo was kickass

  • @sebs4591
    @sebs4591 9 місяців тому +5

    Would love to see how to achieve this with the plain View Transitions API (without Astro or any other frameworks)

  • @aubenhill
    @aubenhill 9 місяців тому

    Great ass tutorial!

  • @SteveHazel
    @SteveHazel 9 місяців тому +1

    well. i was entertained.

  • @hugodsa89
    @hugodsa89 9 місяців тому

    This guy is a winner 🤣

  • @loudboomboom
    @loudboomboom 4 місяці тому

    Omg 😂😂😂 so informative

  • @a_tabaza
    @a_tabaza 9 місяців тому

    I love you, Jeff

  • @sohammalve8958
    @sohammalve8958 9 місяців тому

    Man you are too creative making content as well as jokes.🤣

  • @lukobranko
    @lukobranko 9 місяців тому +1

    You are an effin' legend. ASS!!!

  • @kaustavroy6542
    @kaustavroy6542 9 місяців тому

    Great ass transitions

  • @CreativeTutorialsWeb
    @CreativeTutorialsWeb 9 місяців тому

    I can't count how many times FireShip has said the word ass 😂
    Overall great tutorial, I'll choose you over any Udemy course any day

  • @noe_122
    @noe_122 8 місяців тому

    i lost it at the end 😂😂😂😂

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 8 місяців тому

    FantASStic

  • @arunkarnati
    @arunkarnati 9 місяців тому

    "like that our asses now dance around our Ass'tro site with Grace and Style" 😂Fireship at its best. Love your content!

  • @fahadnadeem2458
    @fahadnadeem2458 9 місяців тому

    Love your content man!
    I was wondering what do you use for designs? do you design yourself or do you hire someone? I suck at designing so its a demotivation for me to build anything :/

    • @Sovereign589
      @Sovereign589 9 місяців тому

      I think this doesn't have to be s show stopper. There are probably dozens of blogs about that. I mean most programmers aren't designers

  • @jamesscarr3372
    @jamesscarr3372 9 місяців тому

    At 0:26 it says you need Next.js for SEO. But does Vite offer built in SSR, so is this diagram still accurate?

  • @Zepi2509
    @Zepi2509 9 місяців тому

    Ich benutze Astro für ein Projekt und finde es super! Kennst du Elm und was hältst du davon?

  • @JagaSantagostino
    @JagaSantagostino 9 місяців тому

    fantASStic

  • @rCinCLined
    @rCinCLined 9 місяців тому

    anyone know if it's possible to have dynamic transition names, the list of asses is something you might want to do in a loop, but then transition:name={uniqueTransitionName} doesn't work even even if that same transition:name is also defined on the other page.

  • @tomich20
    @tomich20 9 місяців тому

    Q: why is everyone so worried about how not to use Js? Who doesn't use it? Love the state transfer hope sveltekit implements it.

    • @YuriG03042
      @YuriG03042 9 місяців тому

      JS usually blocks the DOM and decreases your lighthouse score

    • @ieatthighs
      @ieatthighs 9 місяців тому +1

      some people prefer to have js disabled, and it's also a nice flex to do stuff without js

  • @arcasoy
    @arcasoy 9 місяців тому

    "Move your ass from one page to another"... Gold

  • @TheGaoNan
    @TheGaoNan 9 місяців тому

    Hey Fireship,
    What kind of microphone do you use?

  • @roguesherlock
    @roguesherlock 9 місяців тому

    that's a lot asses this early in the morning for me

  • @tomfancode
    @tomfancode 8 місяців тому

    Astro is next js killer.

  • @PlotTwists
    @PlotTwists 9 місяців тому

    Asstro seems promising

  • @utof
    @utof 9 місяців тому

    did u use voice cloning for this video cuz in some places the voice sounds a bit shaky, or am i going insane?

  • @chrisalexthomas
    @chrisalexthomas 9 місяців тому

    Quality educational content here, a grid of asses, I love it! I sometimes find myself working in a room full of asses, but when I say that, I don't mean donkeys :D

  • @G0NZA11
    @G0NZA11 9 місяців тому

    What happened to the frame html element? Aren't islands just frames?

  • @cabanford
    @cabanford 9 місяців тому +3

    Asses! (The real meaning) 😂

  • @Jim-bh2tb
    @Jim-bh2tb 9 місяців тому

    Thats ASSome

  • @thelazycoder64
    @thelazycoder64 9 місяців тому

    I just forked your sveltefire repo recently., I'm trying to write a react version even though react fire already exists

  • @electrolyteorb
    @electrolyteorb 9 місяців тому +1

    ASSTRO!

  • @nxte8506
    @nxte8506 9 місяців тому +5

    I built this same feature in react by hand. At the time view transitions hadn’t been fully announced. I’m just saying people be patient cuz as simple as it looks this shit is hard assf.

    • @Kevin-jc1fx
      @Kevin-jc1fx 9 місяців тому +1

      I was wondering how to go about this in react. Do you have a codepen or github repo where we could have a look at your solution? If so, please do share. Thank you.

  • @akshitnassa6833
    @akshitnassa6833 Місяць тому

    Can we use these route animations in Webflow for page transitions?

  • @indieshd
    @indieshd 9 місяців тому +1

    He had to say our asses😅😅.. he's awesome

  • @deado7282
    @deado7282 9 місяців тому +4

    So u were using go or hugo?

    • @heroe1486
      @heroe1486 9 місяців тому +2

      Yugo

    • @beyondfireship
      @beyondfireship  9 місяців тому +2

      Hugo

    • @deado7282
      @deado7282 9 місяців тому +1

      @@beyondfireship Because you are already here: May I ask for go content? It seems like the perfect programming language additionally to js. If you find a week without a js framework release...

  • @abe10
    @abe10 9 місяців тому +1

    FantASStic 😂

  • @emilz0r
    @emilz0r 9 місяців тому

    Bad ass

  • @MarijanKopcic
    @MarijanKopcic 9 місяців тому

    Another JS framework :)

  • @FabioRotondo
    @FabioRotondo 9 місяців тому +4

    I'd like to see a similar tutorial for Svelte

  • @WillMruzek
    @WillMruzek 7 місяців тому

    Asses - nice one 😂

  • @zorkdabork211
    @zorkdabork211 7 місяців тому

    Does anyone know what extension he used to see the package size?

  • @jaroslavhuss7813
    @jaroslavhuss7813 9 місяців тому

    Jeff please, can u make a tutorial how to make authtentication with Astro in the most possible secure way?

  • @vasiovasio
    @vasiovasio 9 місяців тому

    This type of behavior can be easily achieved with Unpoly too.

  • @francoisguezengar6255
    @francoisguezengar6255 9 місяців тому +3

    I would recommend session storage for keeping state between navigation instead of local storage

    • @DrKartoffelsalat
      @DrKartoffelsalat 9 місяців тому +6

      Tbh, something like remember dark-mode preference is ideal for local storage since your user probably wants to remember that for the next time they visit.

  • @landotter
    @landotter 9 місяців тому

    4:35 🎉

  • @olmrgreen1904
    @olmrgreen1904 9 місяців тому

    Noice

  • @icaroo9084
    @icaroo9084 9 місяців тому

    Pure ass magic

  • @repairstudio4940
    @repairstudio4940 9 місяців тому

    Jeff for Pres! 🔥 🚢
    Best asses on UA-cam. ASStronomical!

  • @toxaq
    @toxaq 9 місяців тому +1

    In a video about Astro he made an Ass Trope. 🥇

  • @iwaduarte
    @iwaduarte 8 місяців тому

    Client side routing is now a feature in Astro.