Sweeten up your JavaScript animations with one line of code

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

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

  • @severancestreet
    @severancestreet 6 лет назад +8

    `ease(value, power = 3) { return 1 - Math.pow(1 - value, power); }` Since it's a one-liner it's nice to have it in the description/comments

  • @WillsB3
    @WillsB3 6 лет назад +14

    Thanks Paul - Great to have you back!
    P.S Wow the production quality is really great in this video - You’re like a proper RUclipsr and stuff 😄👌

    • @aerotwist
      @aerotwist  6 лет назад +3

      I'm working hard over here! ;)

  • @Maolo92
    @Maolo92 6 лет назад

    Glad you're back! I really liked the animation-themed superchargeds!

  • @Max-bh8tg
    @Max-bh8tg 6 лет назад +3

    You are an awesome human being Paul.

  • @modpo
    @modpo 6 лет назад

    Love the format - small nuggets of useful stuff. Hope there is more to come :)

  • @Phlickey
    @Phlickey 6 лет назад

    This is great. I had something a while ago where I wanted to trigger navigator.vibrate at a certain point in an animation, which meant I had to sacrifice nice easings to use requestAnimationFrame to sync the two up. Definitely going to go back and refractor it now I know how easy this is.

  • @mauroreisvieira
    @mauroreisvieira 6 лет назад

    Great video. I hope you continue share is amazing tips.

  • @gustialfianmp
    @gustialfianmp 6 лет назад

    Thanks Paul, can't wait for the next video 👍

  • @viktorsoroka4510
    @viktorsoroka4510 6 лет назад

    Great one. I think as a bit of improvement cancelAnimationFrame should be called when the animation is done.

  • @Chezt
    @Chezt 6 лет назад

    This is awesome, love how you explain this!

  • @occamsrazor1466
    @occamsrazor1466 6 лет назад

    Fantastic job! Great tip, thank you!

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

    Good stuff! (visiting here after watching you pair programming with mpj on his funfunfunction channel)

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

    Thanks, Paul. BTW your channel is epic👍👍👍

  • @visuellegedanken
    @visuellegedanken 6 лет назад

    So good to see the first video. Awesome!

  • @ShahidKhan-lf6gx
    @ShahidKhan-lf6gx 6 лет назад

    Pretty good first one!

    • @aerotwist
      @aerotwist  6 лет назад +1

      Only "pretty good"?! I'm going to assume you mean that as a Brit would say it, i.e. epic 😂

    • @ShahidKhan-lf6gx
      @ShahidKhan-lf6gx 6 лет назад

      @@aerotwist, LOL. Pls take it as Awesome.
      Waiting for the "Epic"! 😀✌

  • @m1sima
    @m1sima 6 лет назад

    Awesome. Thank you.

  • @mmahgoub
    @mmahgoub 6 лет назад

    Awesome! Thanks, Paul!

  • @gpluta
    @gpluta 6 лет назад

    Epic intro Paul! :D

  • @bahatijustin
    @bahatijustin 6 лет назад

    Hello Paul, I missed you very much. I'm a fun... You help me so much in my career.

    • @aerotwist
      @aerotwist  6 лет назад

      Glad to be back, thanks for watching the vid.

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

    Paul, you mention that there are some amazing libraries out there for doing animations that we should check out. I'm interested in which you think are good, especially from a performance point of view? Greensock, for example, looks like it takes the pain out of more complex 'chained' animations using timelines, but I'm worried about using RAF based javascript animations for (hardware acceleratable?) properties like opacity and transforms - does taking this responsibility away from CSS mean we compromise performance?

  • @antoinebisch1762
    @antoinebisch1762 6 лет назад

    Very cool tip well explained! May I ask which code editor you are using here? Thank you.

    • @aerotwist
      @aerotwist  6 лет назад

      You may. It's VSCode. Check my other video for 6 VSCode tips in 60 seconds

    • @antoinebisch1762
      @antoinebisch1762 6 лет назад

      Awesome, thanks :)

  • @brunoB182
    @brunoB182 6 лет назад

    This remembers Supercharged series, YESSS

  • @KWLOTR
    @KWLOTR 6 лет назад

    Thank you!
    P.S. Nice music!

  • @gevorgghazaryan210
    @gevorgghazaryan210 6 лет назад

    masterpiece!!!

  • @mohamedhussainsh7913
    @mohamedhussainsh7913 6 лет назад +1

    Thanks Paul,
    could you do short video about new class syntax and prototypical inheritance ?

  • @lemiffe
    @lemiffe 6 лет назад

    Epic!

  • @sebastiang8031
    @sebastiang8031 6 лет назад

    good Job! which Editor do you use? is it sublime?

  • @nisarhassan7093
    @nisarhassan7093 6 лет назад

    Top Notch!

  • @tomaschmelevskij623
    @tomaschmelevskij623 6 лет назад +1

    More please!!!

  • @KevinSheppard
    @KevinSheppard 6 лет назад

    Hey Paul, can you do a video on requestAnimationFrame? I've been trying to wrap my head around it for the past two years *cries*

  • @AndrewBone
    @AndrewBone 6 лет назад

    I was expecting a 'septic' joke...

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

    you're familiar. have i seen you somewhere?