Need animations? Use this library.

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 128

  • @ryanmilton
    @ryanmilton Місяць тому +15

    I’ve always loved Framer Motion and used it in nearly all of my projects. So happy to see that they are bringing it to everyone outside of React!

  • @uchennaofoma4624
    @uchennaofoma4624 Місяць тому +7

    Glad you finally covered motion one

    • @ione_x
      @ione_x 29 днів тому

      I used this last year and seeing it here now makes me feel ahead of the curve

  • @crowlsyong
    @crowlsyong Місяць тому +3

    7:14 just echoing this coolness. i love the cooperation here.

  • @kevharv
    @kevharv Місяць тому +23

    I’m conflicted. These animations look sick, but I equally love the straight performance of something like the McMaster site. No animations just feels faster.

    • @frstylol
      @frstylol Місяць тому +3

      You don't need framer motion for something like McMaster site, basic css animations are just fine for that if you want any animation at all. Framer motion is for complex stuffs and mostly just artistic stuffs.

    • @kevharv
      @kevharv Місяць тому +5

      @ Right. I’m saying I love sites that have all the artsy animations, but I also like the ones that have no animation and feel super snappy. Two different approaches.

    • @frstylol
      @frstylol Місяць тому +1

      @@kevharv True tho, sites with animations do feel slow sometimes. Actually I'm working on a webapp that heavily relies on framer-motion rn as I'm writing this and oh man do I have to go to extra lengths for the animation to work, especially since the backend is involved too.

    • @user-vk9ff9gr4x
      @user-vk9ff9gr4x Місяць тому

      I’ll have to check it out. Would be nice to use in Astro

  • @ramsey2155
    @ramsey2155 Місяць тому +81

    The thing I don't like about motion is that, it treats animations like components. To me, animations should be a part of the components' styles stored seperately.

    • @MansaMusa_ll_of_Timbuktu
      @MansaMusa_ll_of_Timbuktu Місяць тому +9

      By components you mean like a Provider? cause that’s been the direction these libraries have been headed for a while like Transition from mantine. I do agree though animation should be more like a prop/ref

    • @martinlesko1521
      @martinlesko1521 Місяць тому +3

      What's your js animation library then ?

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

      @@martinlesko1521 i hate people like you. where's yours, buddy? 2.5 GPA government contractor andy

    • @ahmedfathy9994
      @ahmedfathy9994 Місяць тому +15

      @@martinlesko1521critism doesnt mean he does something better, he just prefers a different approach and that’s okay

    • @TheOtherMattPerry
      @TheOtherMattPerry Місяць тому +2

      Hey @ramsey2155 - that’s fair though the nice thing about having them co-located is they are easier to manage together. You don’t get things lingering around the same way with styles. That said with the animate function you can put your animations elsewhere and use selectors to “reach in” and animate

  • @chrisyatesdev
    @chrisyatesdev Місяць тому +8

    React 19, Expo 52, now this. Web devs can't stop winning.

    • @LutherDePapier
      @LutherDePapier Місяць тому +1

      Why am I the first to like this comment?

    • @snk-js
      @snk-js Місяць тому

      @@LutherDePapier because not anyone is a true web dev

  • @gro967
    @gro967 Місяць тому +46

    Entry and exit animations ins Vue are built-in and are so easy, I can’t believe that is hard in React…

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

      i can there's an official easy solution for everything in vue like vuex store while react is bare bones and you have to go and look for libs to do basic things. it's a shame that Americans use react bc of brand recognition only thus forcing most of the world to do so as well

    • @dopetag
      @dopetag Місяць тому +2

      Time to learn Vue or Astro I guess

    • @sK0pe-d9b
      @sK0pe-d9b Місяць тому +1

      React was the worst framework to become industry standard

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

      @@sK0pe-d9b 100%

    • @eparizzi
      @eparizzi Місяць тому +4

      I've been a web dev for almost 20 years and I can't believe we still can't get easy enter/exit animations in the current most popular web framework... These should be built-in in pretty much any web framework in my opinion..

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

    Never heard of this library. I love learning that this kind of thing is available! Thanks Theo.

  • @rasyasejati
    @rasyasejati 23 дні тому +1

    this was motion one!

  • @matchu-pitchu
    @matchu-pitchu Місяць тому +1

    With modern CSS exit animations are easier in React. You can transition to `display: none` with `transition-behavior: allow-discrete` and combine this with the @keyframes rule.

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

      Is it compatible with most modern browsers?

  • @arun-poudel
    @arun-poudel Місяць тому +3

    I just open YT to search motion related content and this video was on top

  • @kaedriz
    @kaedriz Місяць тому +28

    9:00 Funny, that I thought this was such a basic feature in Vue, entry/exit animations, customizable in css. I guess other frameworks (libs), have it rough.

    • @vaisakh_km
      @vaisakh_km Місяць тому +1

      In svelte as well.. it's one of the little feature i overuse...

  • @ryan-from-verow
    @ryan-from-verow Місяць тому

    So stoked for this

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

    So happy to see that this library getting some new love!

  • @saminamanat
    @saminamanat Місяць тому +1

    “most talented senior+ developers watching youtube” awwww 😂😂

  • @maxfri6680
    @maxfri6680 Місяць тому +15

    Hey Theo, I've been cooking up my own animation library these past two months. Fingers crossed it lands in one of your videos someday-I'd love to hear your hot take on it. 🤞🏻
    It’s built for After Effects motion designers who wanna flex REAL keyframe-based animations on the web-none of that basic tweening stuff. Oh, and there's a GUI in the works, so devs and designers can finally stop speaking two different languages. 👀
    Bonus: You’ll even be able to export animations straight from After Effects as SVG. Unlike Lottie, though, these animations won’t turn your site into a sluggish potato. 🚀

    • @TheSlyProfessor
      @TheSlyProfessor Місяць тому +1

      How do I find it?

    • @t3dotgg
      @t3dotgg  Місяць тому +3

      👀

    • @TheOtherMattPerry
      @TheOtherMattPerry Місяць тому +1

      Tweening *is* keyframe based animations. “Tween” is short for “between” - as in between keyframes.

    • @maxfri6680
      @maxfri6680 Місяць тому +1

      ​@@TheSlyProfessor I'm currently working with a few talented people to structure a comprehensive brand identity. Once that's done you'll see it all across social media. 🔥

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

      @@TheOtherMattPerry Matt Perry himself! I love ya and I feel honoured to have caught your attention 🥳
      Once public (it is probably going to take a few months) you'll see what I mean 😉

  • @GravityFallse
    @GravityFallse Місяць тому +65

    bots watched this video before me. sad.

    • @vaisakh_km
      @vaisakh_km Місяць тому +1

      XD bots are getting excited watching the smooth motion.. like he does 11:44

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

    Matt first had Motion One which was for both Solid and Vue. Now that he no longer has to focus on Framer Motion as much, this is going to be great

  • @virtual5754
    @virtual5754 Місяць тому +1

    Does it solve main problems of js animations though? Terrible performance (on scroll) and 99% cpu and gpu load

  • @ste9890
    @ste9890 14 днів тому

    There are issues with React Server Components though right? I don't think you can use AnimatePresence with RSCs

  • @ninjagaskin
    @ninjagaskin Місяць тому +1

    Can you use framer motion in app router files? Or does it only work in “use client”? (Next js)

  • @zocker_playtv
    @zocker_playtv Місяць тому +1

    Timeline is like the animation api from angular, a compare would be awesome 😄

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

    how do you get github to display distinct icons for the files and folders ? 11:09

  • @thatrubix
    @thatrubix Місяць тому +1

    6:10 your GitHub UI looks great! Are you using Arc boost to make it look that way??

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

    nice, gonna have to give this a shot. Been using React spring for a while now

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

    I use astro + tailwind + threejs
    But For animation stuffs i doubt what lib should i choose.
    Gsap, animejs, motion...
    Looking for some guide

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

    What do you think about GSAP and React

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

    that kind of video is why I'm subscribed...not the gossip crap. thanks for that

  • @hiddeglansdorp8274
    @hiddeglansdorp8274 Місяць тому +1

    How does he obtain icons for the folders in GitHub?

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

      Material Icons for Github as browser extension

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

    exists another good library - react-spring

  • @Sillyvan
    @Sillyvan Місяць тому +1

    1 step further for SvelteKit

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

    Why not gsap, which has been there for ages, hence battle tested?

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

      Motion is six years old at this point, and was spun off of Popmotion which is 10 years old

  • @AvanaVana
    @AvanaVana Місяць тому +1

    7:53 lol anything dot “engineering” is just not in the same league…sorry
    9:27 a few weeks ago at work I had to animate enter and exit animations for form error messages…and the form was using formik, which I couldn’t change…fml. No form of denouncing could stop formik’s validation from interfering with the code I wrote for exit animations to delay unmounting, etc. And I was just doing this with react, no animation library, because they wasn’t much animation elsewhere in the project. It was a nightmare and eventually I just settled for no animation. In the end I think it might be better, though, from a UX perspective, because once users enter valid form data they just want the errors to go away quickly. It feels cleaner.

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

    Nice!

  • @vemuyaswanth803
    @vemuyaswanth803 Місяць тому +2

    I just use gsap/react. Isn't it good?

    • @ridass.7137
      @ridass.7137 Місяць тому +1

      its good, but way heavier and animations are a bit less smooth

  • @mamad-dev
    @mamad-dev Місяць тому

    what extension is he using for github to look like that?

  • @reilwaystation4372
    @reilwaystation4372 Місяць тому +2

    If i focus in animation ill just use svelte

    • @theindieprogrammer
      @theindieprogrammer Місяць тому +1

      Oh boy, if you rely on Svelte animations you gonna have a bad time. The simple example works, but anything more complicated just suck

    • @reilwaystation4372
      @reilwaystation4372 Місяць тому +1

      @@theindieprogrammer I see that's a fair point.

  • @null_spacex
    @null_spacex Місяць тому +2

    Wait so Motion One became Motion?

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

      And framer-motion became motion.

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

      @@Bu7MaiD075 guess I'm using motion now

    • @TheOtherMattPerry
      @TheOtherMattPerry Місяць тому +1

      Yes both Motion One and Framer Motion are now Motion

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

      @@TheOtherMattPerry thanks Matt 🖤 keep up the good work

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

    Was just looking yesterday for animation libs 😮

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

      React-spring.. much more powerful… well developed.. open source for years..

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

      ​@@TheKaosTux motion has been also open source for years under the name framer motion

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

    really kewl

  • @Michael-Martell
    @Michael-Martell Місяць тому

    Well with GSAP being bought out by a No-code, I feel like Motion is all we got.

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

    for a site which mainly depends on seo ranking, using anything other than vanilla js + css is bad (this library comes with high size)

    • @Saradomin65
      @Saradomin65 27 днів тому

      It was kind of okay before they merged it with framer-motion (v10.18.0). But now that they've merged it the size increased.

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

    So it's now back to PopMotion?

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

      I left the rights to “Popmotion” at Framer! We didn’t even talk about it, both agreed Motion was a good new name.

  • @JamesRouzier
    @JamesRouzier Місяць тому +1

    Even htmx

  • @leanghok120
    @leanghok120 Місяць тому +4

    First human in the comment (i use arch btw)

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

      Bold of you to assume you are human, nice try robot.

  • @shashishekhar4999
    @shashishekhar4999 6 днів тому

    Me sitting at the corner in 2014 using animate.css with some modified css animations and laughing at a JS lib to do the same.

  • @user-vk9ff9gr4x
    @user-vk9ff9gr4x Місяць тому

    Just learned that gsap got bought by webflow- so GSAP is out for any consideration (shut down their forum already) any paid subscriptions won't be honored, are they ever? SO can motion replicate some of GSAP, can it do text animations? I have never used it and am pissed, I have a site I am developing and was using some GSAP, but I got to rip that out and use something else.

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

    I watched this video get recorded live on streams. if you don't already, you should try watching Theo's streams

  • @Lemmy4555
    @Lemmy4555 Місяць тому +9

    Usually i tend to avoid those libraries, except for exit animations in react, everything else is very simple to achieve with transitions or keyframes (even the timeline)
    and about performance, there's nothing more performant than plain css

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

      How complex are your animations?

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

      ​@@null_spacex Classic enter/exit of dialogs, menus, hovers for select items, buttons etc.

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

    I tried it, too slow for my websites.

  • @laxmandeadpool8260
    @laxmandeadpool8260 Місяць тому +1

    React spring is 💕

    • @termorey
      @termorey Місяць тому +1

      But not framework agnostic (

  • @boccobadz
    @boccobadz Місяць тому +4

    Svelte ecosystem is js ecosystem so no need to build anything - it just works.

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

      I hate ecosystem argument. React needs massive ecosystem because its incapable of functioning without it. Solid, Svelte, Vue can all interact with Web APIs properly.

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

    Svelte is not React. Svelte has excellent animation support built in.

  • @hyprsonic_dev
    @hyprsonic_dev Місяць тому +2

    Animejs v4 is so much better it’s not even close and I’ve been building with framer motion & motion for the past year.
    Problem with framer motion - it’s too slow
    Problem with motion - api is poorly documented (compared to animejs v4) and unintuitive.

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

      Framer motion uses requestAnimationFrame() alongside WAAPI

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

      Would love to see which animations were too slow! Where possible it uses WAAPI under the hood for hardware accelerated animations, which other libraries don’t

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

      @@TheOtherMattPerry AnimeJS v4 specifically also uses WAAPI, but the problem with framer motion specifically is rooted in the fact that It’s React.
      I work on an app where performant animations are important and while the framer motion API is really good, it doesn’t perform well under those constraints and leads to performance drops, and on older hardware, jank.

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

      ​@@hyprsonic_dev Although Anime 4 will be faster than WAAPI in some specific situations, it doesn't use WAAPI, it runs on requestAnimationFrame.
      Motion isn't routed in React. Its vanilla library is vanilla - it has no dependency on React, no dependencies at all.
      It might be the case that with Motion for React if you had too many renders this could interfere with the main thread and therefore animations. But then this would be an argument to stick to hardware accelerated animations, i.e filter transform and opacity, via CSS or WAAPI. Which is what Motion already does.

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

    It's not "these guys." It's Matt.

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

    Framer motion but svelte? AAAAAAA

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

    howd he make his github look so nice

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

      found it! its the refined-github extension

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

    But wait... I've been using "vanilla" Motion in my Svelte projects for a while now, but wasn't aware that it was part of Framer Motion.
    Honestly it's been quite a task to organize and reuse, combine, sequence animationse etc., but I guess that's more of a skill issue, and it's all good knowing that your bundle size remains crazy small!

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

    Imagine one day React leaves Meta and becomes independent.

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

    Being a svelte guy I'm so happy that we're getting to use the cool stuff the react guys have.
    React: trashy framework with great ecosystem
    Svelte: great framework with no ecosystem
    Still waiting for a cross-framework shadcn. No, webcomponents don't count because they're just a backend for other frameworks.

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

      Not sure if it's exactly what you're looking for, but you should certainly give a look at FrankenUI in that regard.

  • @qrx.4596
    @qrx.4596 Місяць тому +1

    Vue has this, Svelte has that...
    Oh god u know why I hate any frontend library other than React? Cuz it's just an awful, oversimplified abstraction.
    Writing React code I feel more like I'm writing plain JS. No hidden dark magic. It's just JS.
    I like to get my hands dirty, I like to have more control. Ask Vue developer how does exit animation works under the hood.
    Majority won't even know I'm sure.

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

    im sad that framer motion is still real bad with 3d and performance

  • @TheKaosTux
    @TheKaosTux Місяць тому +1

    So.. just a weaker version of react-spring… disappointing
    Why do „we“ always start again with the same stuff instead of focusing money and work force on what is already great and there?

    • @t3dotgg
      @t3dotgg  Місяць тому +11

      Framer motion came out years before React Spring

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

    Framer motion is so unintuitive. Never bothered with it.