Complex Animations Shouldn't be SO Hard | Framer Motion + useAnimate

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • We will use the useAnimate hook from Framer Motion and create a complex animation.
    ⏳ Timestamps
    00:00 - Introduction
    00:32 - What we will build
    01:44 - Setting up
    04:34 - Animating
    👨‍💻 Looking for a web developer job, visit: www.webdevjobs.io/
    👽 Discord - / discord
    👾 Code - github.com/sixfwa/subscribe-b...
    #framermotion #reactjs #animations

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

  • @dhidhi1000
    @dhidhi1000 Месяц назад +2

    if only the docs had this example...

  • @asadansari8908
    @asadansari8908 2 месяца назад +2

    This channel's gonna blow up...... Amazing content and great example

  • @farzadmf
    @farzadmf 2 месяца назад +2

    So cool!!!

    • @iamrithmic
      @iamrithmic  2 месяца назад +1

      As always, thank you man!

    • @farzadmf
      @farzadmf 2 месяца назад

      Thank YOU for the great videos!

  • @sohrabkhan101
    @sohrabkhan101 2 месяца назад +1

    Hey there! I've been thinking, what if we try something different instead of using async await? We could opt for a sequence array approach, like this:
    const sequence = [
    ["ul", { opacity: 1 }, { duration: 0.5 }],
    ["li", { x: [-100, 0] }, { delay: stagger(0.1) }]
    ];
    animate(sequence, { duration: 10 });
    Also, regarding the hover state for buttons, instead of creating isCursorLoaded and setIsCursorLoader states, why not simply apply a Tailwind CSS class like opacity-0. I think it'll give our project a cleaner and cooler look. What do you think? 😊🚀

    • @iamrithmic
      @iamrithmic  2 месяца назад

      Good stuff, but I think with the array we could be sacrificing readability and with the cursor, it still needs to be loaded. If I understood that last part correctly

  • @godofwar8262
    @godofwar8262 2 месяца назад +2

    Great videos

  • @digitalsahara6670
    @digitalsahara6670 Месяц назад

    great tutorial man, loved it. was wondering whether you can explain how to do page transition with the app directory? I was looking all over for it but cant find one so far, are there any workarounds ?

  • @p1erceprc
    @p1erceprc Месяц назад

    Amazing content! may I ask what theme are you using? Thanks

  • @nanonkay5669
    @nanonkay5669 2 месяца назад +2

    👏👏👏👏👏

  • @Foo678
    @Foo678 Месяц назад +1

    Nice video!!!, is this like gsap timeline?

    • @iamrithmic
      @iamrithmic  Месяц назад +1

      Yes similar, but you don't have the structure that comes with GSAP

  • @mayurbansal4051
    @mayurbansal4051 2 месяца назад

    which color theme are you using