CSS Animation Optimization and Performance 101

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • promo.linode.c... - Use code 'DESIGNC19' to get $20 credit on your new Linode account!
    designcourse.com - Learn UI/UX from Scratch with my new service (coming soon)
    -- Today, we're checking out a very important topic that I haven't covered much here on the channel -- and that is CSS animation performance. If you want your animations to appear smooth on as many devices as possibles, there's definitely some concepts and best practices you should follow. We're going to take a look at some slides first, and then we'll hop into a real-world example where I will demonstrate how to use DevTools to notice any issues with your CSS animations.
    Site referenced in the video:
    csstriggers.com
    Let's get started!
    #frontend #css #nojank
    - - - - - - - - - - - - - - - - - - - - - -
    Subscribe for NEW VIDEOS!
    My site: designcourse.com
    My personal FB account: logodesi...
    Coursetro FB: coursetro
    Coursetro's Twitter: / designcoursecom
    Join my Discord! / discord
    ^-Chat with me and others
    - - - - - - - - - - - - - - - - - - - - - -
    Who is Gary Simon? Well, I'm a full stack developer with 2+ decades experience and I teach people how to design and code. I've created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network.
    Now, I focus all of my time and energy on this channel and my website Coursetro.com.
    Come to my discord server or add me on social media and say Hi!

Комментарии • 57

  • @DesignCourse
    @DesignCourse  5 лет назад +15

    Get the jank outta here and subscribe already!

  • @juliocodes
    @juliocodes 5 лет назад +23

    Sometimes people tend to forget how important animation optimization is, me included. I can't tell you how many times I've been on sites that use a lot of animations and the experience is just painful.

    • @juliocodes
      @juliocodes 5 лет назад +1

      @Mastery Of Craft That's true. Also how they try to animate as many elements as they possibly can. I've made that mistake tons of times in the past just because I thought it looked 'cool'.

  • @EfeKurnaz
    @EfeKurnaz 5 лет назад +2

    This is gold, most valuable content I've seen on YT for Frontend devs. Thank you Sir Gary Simon.

  • @JlarMM
    @JlarMM 5 лет назад +11

    Please more about smooth web animations, 60fps, hero animations etc thanks

  • @cirusMEDIA
    @cirusMEDIA 3 года назад

    O...M...G... i just applied the 'will-change' property to some elements in a LARGE cross-platform app I've been working on and BOOM. It's as smooth as native!
    Thanks a lot for this video!

  • @FullStackMaster
    @FullStackMaster 5 лет назад +5

    Thanks Design course for this nice CSS lesson and extra tips!

  • @ck0024
    @ck0024 5 лет назад +6

    *The more I learn, the more I realize how illiterate I am.* _Great work, man._ 👍

  • @CristianAlexandruRadu
    @CristianAlexandruRadu 5 лет назад +1

    I'm building a social network. The animations are painful.
    Sometimes, I get lags.
    I'll update the project with what you just learned me.
    Great tutorials. Very well explained. Please Keep Up!!!

  • @nathaaaaaa
    @nathaaaaaa 5 лет назад

    Your channel is pretty near to perfection, pls don't stop

  • @krychanpro
    @krychanpro 5 лет назад

    One of the best episode, want more about performance in frontend!

  • @swoorp
    @swoorp 2 года назад

    Very-very helpful. Thanks ❤

  • @kokoshko1985
    @kokoshko1985 4 года назад

    Thank you a lot!!! I didn't even think of it this way

  • @patrickjosephaugustinahoic9544
    @patrickjosephaugustinahoic9544 5 лет назад +1

    Watching this from cote d'ivoire...thank you so much !

  • @LeFede
    @LeFede Год назад

    so if you have an absolute positioned element, it is safe to asume that it wont trigger a layout recalculate after changing its content or its width ?

  • @abhishek_k7
    @abhishek_k7 5 лет назад

    Just what I wanted and exactly when I wanted it. Thank you!

  • @macke8939
    @macke8939 5 лет назад +2

    Perfect timing mate!

  • @CosminCP
    @CosminCP 5 лет назад

    I love how this video's thumbnail matches the previous video's one

  • @whiztown3557
    @whiztown3557 5 лет назад +2

    I always love your videos. Keep it up 👍

  • @matiaswebdevwebdev800
    @matiaswebdevwebdev800 5 лет назад

    Thanks Gary I am learning a lot from your work.

  • @wesleyfeller2114
    @wesleyfeller2114 5 лет назад +1

    Liking the new backdrop!!

  • @anoopvasudevan
    @anoopvasudevan 2 года назад

    Super useful 👍

  • @jacquesduplessis6175
    @jacquesduplessis6175 5 лет назад

    Janky is my new favourite word. :D Great video.

  • @DlSPLACER
    @DlSPLACER 5 лет назад

    Great stuff! Thx so much

  • @razenkellesly20
    @razenkellesly20 5 лет назад

    Super nice, Thanks.

  • @uncheat
    @uncheat 5 лет назад

    But what about transfrom: translate without animation? In some conditions chrome will render it blurry, right?

  • @sjn_
    @sjn_ 5 лет назад

    I read the transform property can be used to create almost any types of animations but I find it pretty difficult to create certain animations. The Android's reveal animation starting with a circle for instance, just like the one on your tutorial using clip-path. Perhaps, you could make some videos on creating unique and creative animations using the properties that trigger composite only? Would be a lot helpful for a guy like me who already know this thing about cheaply animatable properties but struggle to create the desired animations.

  • @Jay-eg7yt
    @Jay-eg7yt 4 года назад

    Is the transition property considered an animation? I know it can be used for animation effects such as making a div grow, but I don't see it as a trigger on csstriggers.com. Is transition taxing?

  • @AtamMardes
    @AtamMardes 5 лет назад

    Hi, one unrelated question:
    Which one of these ( Spotfire, QlikSense or Tableau ) is more popular and pays the most? Which one do you recommend I should learn?

  • @syamss3507
    @syamss3507 4 года назад +1

    2020 and still waiting for will-change property video

  • @sachinprabhuk6241
    @sachinprabhuk6241 5 лет назад

    nice video..thank you

  • @desmondsparrow3490
    @desmondsparrow3490 Год назад

    please where is the css you used

  • @nandhikaprayoga6510
    @nandhikaprayoga6510 5 лет назад

    Hey nice video as always, I want to know, is it good do animation on canvas rather than in HTML element?

  • @sarahbrown1230
    @sarahbrown1230 4 года назад

    You said you were going to link in comments a custom willchange video but did not

  • @brampeirsful
    @brampeirsful 5 лет назад

    Epic!

  • @unboxingexperience
    @unboxingexperience 5 лет назад

    Good work

  • @dipsikhadutta6412
    @dipsikhadutta6412 5 лет назад

    Thanks it helps a lot, can you make a video on how to create images more responsive and image optimization for web. Thank you.

    • @ProsenjeetPaulProsenjeetPaul
      @ProsenjeetPaulProsenjeetPaul 5 лет назад +1

      Use tinypng.com for all kind of images compression. Its the best optimization option so far.

  • @arthurshaidullin7981
    @arthurshaidullin7981 5 лет назад

    cool staff, can you explain 'transform3d' too?

  • @CreepToeJoe
    @CreepToeJoe 5 лет назад

    Just visit the channel page in RUclips and look at the last two videos! Notice anything?

  • @redsevenbox
    @redsevenbox 5 лет назад

    Another one

  • @chefbennyj
    @chefbennyj 4 года назад

    Did you ever make a 'will-change' video?

    • @mikizuk83
      @mikizuk83 4 года назад

      Yeah, I was wondering too... I've checked today, it's still not made!

  • @antonchinaev3495
    @antonchinaev3495 5 лет назад +1

    When the banks stop using IE11 by 2025 I will be thrilled to do actual animations.

  • @ProsenjeetPaulProsenjeetPaul
    @ProsenjeetPaulProsenjeetPaul 5 лет назад

    So let me add 2 major points to your topic for all the web dev out there.
    1. Avoid box shadow mossst important.
    2. Avoid Css3 animation instead of that use normal css with position absolute
    You wont exp this in web but you will exp the lag in mobile.
    Having an exp of around 9+ years now and this really decrease the hampering job.

    • @surc_
      @surc_ 5 лет назад

      What did you mean by using absolute positioning for animation?

    • @ProsenjeetPaulProsenjeetPaul
      @ProsenjeetPaulProsenjeetPaul 5 лет назад

      @@surc_ i mean to say avoid transform:translate(x,y) instead of that use with absolute positioning to animate your element e.g top:x,right:y

    • @AFTstorm
      @AFTstorm 5 лет назад

      Prosenjeet Paul it really depends. A lot of modern phones have pretty good gpus these days so using transform would greatly benefit it. I think you as a developer need to know your audience first and build your site for that audience. Knowing your audience will let you build the right site with the right tools

    • @ProsenjeetPaulProsenjeetPaul
      @ProsenjeetPaulProsenjeetPaul 5 лет назад

      @@AFTstorm well i agree with you partially because on an average audience like me who got an average phone which is not capable of janky/heavy animations . I have tested this on multiple devices and it really depends upon the user phone capabilities. An oneplus one or an i phone has the ability to run this animation smoothly but a phone like Redmi note 3-4 it drops FPS heavily. And i have completely tested it so i came to conclusion that for alteast now we should avoid box shadows and transform.

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 5 лет назад

    Vue.js animation ?

  • @inbiggaaa
    @inbiggaaa 3 года назад

    please add subtitles

  • @bonleofen
    @bonleofen 5 лет назад

    Hey, I have this request if you could create a tutorial about animation that happens on wheel events. Something like species in pieces website. I have made this request before as well. In case, you're seeing this, please make something like that. Thanks. You're awesome

    • @ProsenjeetPaulProsenjeetPaul
      @ProsenjeetPaulProsenjeetPaul 5 лет назад

      I want to understand your question. I am assuming you are talking about infinite css anination or some kind of rotation using css.

    • @bonleofen
      @bonleofen 5 лет назад

      @@ProsenjeetPaulProsenjeetPaul check this website www.species-in-pieces.com/

  • @bonleofen
    @bonleofen 5 лет назад

    Second viewer

  • @AsithChamidu
    @AsithChamidu 5 лет назад

    First.. yo😋