How to Webflow: Replacing the hamburger menu icon with a Lottie animation - Tutorial (2019)

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • Here is the Lottie file that I downloaded:
    lottiefiles.com/255-menu-butt...
    #webdesign #tutorial #lottie
    Join the Pixel Geek Community:
    pixelgeek.community
    -------
    I've been a web designer since 1995 and I've learned a lot about this industry. Now that I've found my dream job at Webflow, I want to share some of my experiences and knowledge with you in hopes you can find your dream job as well.
    The purpose for this channel is to help you design and build better websites, learn more about the business of web design, and empower you to inspire others in this unique creative industry.
    -------
    Like what you see? Subscribe here:
    ruclips.net/user/subscription_...
    -------
    / thepixelgeek
    / pxlgk
    pixelgeek.co
  • ХоббиХобби

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

  • @ozwki
    @ozwki 3 года назад +29

    For those who wants to achieve this to work fully on mobile, use "Navbar" instead of "menu-button "on animation and choose element trigger "Navbar opens" then choose your lottie

    • @alldatruckus
      @alldatruckus 2 года назад +3

      God bless you man I seriously had issues with this.. Your solution worked perfectly !!!

    • @martingeyeryoutube
      @martingeyeryoutube 2 года назад +1

      Thank you!

  • @eric-rounds
    @eric-rounds 3 года назад

    I did it! (I'm new to Webflow) and your example really helped. I had a Lottie file that looped and I needed to make it playback on click and then the second click like in your example. Thank you! Even now in 2021, the interface is fairly identical.

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

    Thanks man, a lot simpler than I thought it would be. Good vid!

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

    Thanks a bunch, Nelson! Being coming from a design background, i love your super cool explaination

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

      my pleasure. thanks for watching 😁🙇🏽‍♂️

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

    Another great one!

  • @yoannetra5372
    @yoannetra5372 2 года назад +6

    For those having problems with blurry and pixelated lottie, the solution I found is to not scale it but instead use the width property and overflow hidden div "menu-button". You can also try to resize the lottie file in Lottie Editor and download it to preserve the quality.

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

      You are such a legend for this

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

      Thank you so much for this!!!!

    • @salmonj77
      @salmonj77 9 месяцев назад

      Or you could just use em instead of px. It retains the quality and scales it nicely... try 2em as a starter and adjust from there

  • @masudkarim112
    @masudkarim112 Год назад +1

    Thank you so much for your tutorial

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

    Thanks for this!

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

    Thank you very much, it's working perfectly :)

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

    Thank you, very helpful content!

  • @creativereflux4336
    @creativereflux4336 4 года назад +2

    Thanks for being generous in delivering good stuff.
    Salamat!

    • @pixelgeek
      @pixelgeek  4 года назад +2

      Walang anuman. thanks for watching :)

  • @johnleighdesigns
    @johnleighdesigns 4 года назад +8

    nice ! plus that bonus tip of dealing with files that have extra spacing around or too many blank keyframes!

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

      Happy to help 😁🙇🏽‍♂️

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

    Thanks mate, that was awesome

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

    Awesome tutorials, keep going!!!!

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

    Genius!! thx a lot!!

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

    This was very helpful. Thanks

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

      Glad it was helpful!

  • @nicolasmarquez5956
    @nicolasmarquez5956 4 года назад +9

    Sizing it was a great idea, because a lot of lottie files are like that one! thx!

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

      glad to help teach you that trick. :) Thanks for watching.

  • @user-sp4fb3lb2b
    @user-sp4fb3lb2b 4 года назад +2

    Worked perfect thank you

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

      Glad to have helped 😁

  • @soundhouse7tonstudio
    @soundhouse7tonstudio 3 года назад +5

    Yes, if I click on a menu link button the x will stay while the menu itself is closed then. can you please show us how to solve the problem? Maybe is it possible to click on two buttons at once? Click on a menu link button clicks also the animated Nav toggle element? That would be an easy way when it is possible.

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

    thank you for shared with us! :) i'm newbie

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

    thanks man.. awesome tips

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

    Thank you!

  • @user-lw5lp8co8v
    @user-lw5lp8co8v 4 месяца назад

    Lot OF thanks

  • @darshitpatel5513
    @darshitpatel5513 3 года назад +1

    Thank you Brother for this.
    Have a nice day.

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

    You're killin it half-asian lawyer bro! Awesome!

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

      thanks for watching! Also, I'm not half-asian. I'm full Filipino :D

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

      @@pixelgeek was referencing to Steven Crowder's lawyer, as a joke. You are awesome!

  • @AmanSharma-dt7fh
    @AmanSharma-dt7fh 3 года назад +1

    Thanks, You helped me
    :)

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

    Nice!

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

      Thank you! Cheers!

  • @MAli-gd8zu
    @MAli-gd8zu 4 года назад +1

    Mr.Nelson really i love your face don't know why i think because of your slogan {Make Web Beautiful Together} . Sir doing great and yeah good to know about your family.

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

    what's the best way to invert the lottie animation colours so when the background changes, the lottie animation changes so it looks good (black to white etc)

  • @dankort
    @dankort 3 года назад +2

    I follow it exactly as you say, but when I second click the animation doesn't change. Furthermore, the icon is pixelated when using safari. Any idea what I'm doing wrong?

  • @aloha2713
    @aloha2713 4 года назад +14

    There are some parts missing in the end of your video. If I click on a menue link the x is still there?

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

      that's true

    • @ipekmoosheimer656
      @ipekmoosheimer656 3 года назад +1

      yes im having the same issue

    • @ayushisharma4155
      @ayushisharma4155 3 года назад +2

      I got the same error. In the beginning, you will have to apply the same interaction on the Navbar (with a house icon) and not on the Menu Button. Keeping the rest of the steps as it is explained in the video afterward. Then it will work.

    • @vladimircvejanov9970
      @vladimircvejanov9970 3 года назад +1

      @@ayushisharma4155 Thank you for the info! Very helpful! :D

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

      Once you link another page it will not matter because it would just load the next page you have linked

  • @AZ-hg4rn
    @AZ-hg4rn 3 года назад

    Thanks for the video! I just have a follow up question. The icon loads everytime the page loads. Goes to x and back. How can I stop that?

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

    Hey, i have a sidebar menu and i would like the hamburger icon to move to the right 300px together with the menu. When i try to add the animation to the timed animation the whole hamburger disapears. Any idea?

  • @lilimxprice
    @lilimxprice 3 года назад +1

    Thank you :)

    • @pixelgeek
      @pixelgeek  3 года назад +1

      My pleasure 😁🙇🏽‍♂️

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

      ​@@pixelgeek Been following loads of your videos lately, as I'm building my first Webflow website and just wanted to say thanks for all the valuable videos, really couldn't have got started in a load of the sections without you :)

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

    Hi, I just want to ask if there is a way to turn a lottie I made into a button? I already imported that on Webflow, I just don't know how to link that to another page. Thank You!

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

    Hi, thank you very much for this great tutorial. It worked totaly fine, but i noticed that the scaled lottiefile wors fine in chrome anf ff but is blurred in safari browser. Is there any way to fix that? Thx in advance

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

    is there anyway to change colors of lottie on hover for example?

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

    And what will be if I will pres on some of menu links, not in a menu button?

  • @trtle.t
    @trtle.t 4 месяца назад

    Is it required that you use a Lottie file? Can I use a GIF instead, or does it not work the same?

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

    How do I reverse direction of a global navbar menu items when in hamburger mode without flipping it on a full page mode? This is needed for Right to left languages.

  • @Zeddings
    @Zeddings 3 года назад +2

    I had an issue that when I published, the lottie became very pixelated and blurry. Is this because of the way we scaled it? Other than that, great tutorial and easy to follow!

  • @akashchoudhary5736
    @akashchoudhary5736 3 года назад +1

    Why my menu button disappears as soon as the menu is opened !? This is so frustrating , can anyone help me with this ?

  • @user-vn3lt1oi9x
    @user-vn3lt1oi9x Год назад

    Everything is cool, but the topic is not fully covered. When you drag a link in the menu or under the menu, the icon does not respond and remains a cross. What should I do in this case?

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

    It’s not very convenient that there is no way to change the styles in the slider for slide nav, will this function be implemented in the future?

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

      That's true. Can you give me style examples of what you want to change the dots to? I'll make a video for this.

  • @Faint52
    @Faint52 4 года назад +2

    Hey bud, thanks again for the glorious insight!
    A note- you speak to close to your mic, so all the asmr sounds are super loud and for me, it’s a little distracting.
    I would suggest lowering the sensitivity of your mic and talk maybe a bit further?
    Much love

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

      Thanks for the feedback. I'll make a note of this

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

    I did this animation and was wondering when you click on any part of the screen to close the menu, the icon remains as the "X". How do you trigger the menu animation to go back to the initial state when not using the icon to close the navigation.

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

      The solution to having the lottie icon change back to the initial state when closing the menu by clicking on the screen is to place the animation trigger on the dropdown instead of the lottie icon.

    • @0ptim
      @0ptim 4 года назад +3

      ​@@bikeng10 Hey Lester
      I just wanted to let you know that there is a much cleaner and better solution to this.
      Just use the triggers 'navbar opens' and 'navbar closes' to start the according animations.
      This way you can be sure that the animation is always in the correct state.

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

      @@0ptim Thank you so much! I had the same issue. And followed your suggestion. It works perfectly. I found this while searching as well ruclips.net/video/_5fJk1YxUcw/видео.html. Hope it helps someone who doesn't know where to select 'navbar opens' and 'navbar closes'.

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

      @@saiharsha6207 thanks so much for that link! you're a lifesaver!

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

    Agreed - works PERFECTLY!!! Thanks Nelson @pixelgeek, however looks awesome on my desktop mac but super blurry/pixelated on iphone - (due to the scaling I'm guessing). Any fix for this?

    • @pixelgeek
      @pixelgeek  4 года назад +2

      i notice this only happens on Safari and iOS Safari. I'll make a follow up video to this soon.

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

      @@pixelgeek Thanks Nelson! Appreciate your ongoing support. Enjoy your weekend...

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

      @@pixelgeek Hi Nelson, have you made the follow up video yet? I am having the same problem :(

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

      @@pixelgeek any luck finding the answer to this - it was all making sense until mine was all blurry... then I read these comments so I know it wasn't just me

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

      @@pixelgeek Have you made a follow up video for this issue? Loved this video, but it's a bit blurry on my end.

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

    What about if the user doesn't click the hamburger to close, and instead clicks on somewhere else on the page?

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

      there's a comment above that takes care of this- use the navbar opens and closes as the element trigger and follow the rest of the steps in this video the same way.

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

    Can you update this Tut for 2023? Webflow UI has changed

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

    Hey Pixel Geek, thanks for the video! I did exactly this but for some reason on mobile my menu icon is blurred. Any way to fix this?

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

      Hmmm... Can you post your read only link?

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

      @@pixelgeek preview.webflow.com/preview/stephenasonye?preview=9584bd9961eb39233a8c446ba99cc72e&mode=preview
      It shows that it's clear on the designer view but when I open the URL on my phone it's blurry. Also, the Lottie file still automatically plays even though I followed the interaction steps exactly how you did it.

    • @PS-so5zc
      @PS-so5zc 4 года назад

      @@stephenasonye same problem on my project too.. how can I fix it?

    • @James-vt1vn
      @James-vt1vn 3 года назад

      @@PS-so5zc Same with me, but only in Safari. Any solution to this, Nelson?

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

      did anyone solve this yet? :/

  • @timth01
    @timth01 3 года назад +3

    First, love your videos, they are super helpful, thank you so much for doing them. On this specific one I have the same question as Abid Hajher: How do you handle the case where someone clicks somewhere else on the screen to close the mobile menu, instead of clicking on the icon again? How do you fire the close-lottie interaction so that you have the hamburger lottie in the correct state? Not being able to handle this case is a deal breaker for using lotties as hamburger icons, unfortunately. :-( Seems like you would have the same issue with a standard close/open icon as well.

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

      @Denny Satria see pinned comment above!

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

    doesnt work.... still have white space overflowing

  • @marvin..m
    @marvin..m 4 года назад

    Thanks for the tutorial. It would be very helpful to know how to change the color of the hamburger to a custom color. There seem to be options on changing the background color but not the object itself. Can this be accomplished by adding custom code? A tutorial would be greatly appreciated.

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

      Just change the background color like you would any other item on the page.

    • @marvin..m
      @marvin..m 4 года назад

      Thanks for responding. I don’t want to change the background color. I just want to change the hamburger color.

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

      Marvin Mattelson oops, my bad. You can change the burger itself over at the website he downloaded it from. There's an editor button there after clicking the lottie you want.

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

      yup, @Fawesum is right. If you can't find the button, it's over here: share.getcloudapp.com/v1um1J4j
      hope this helps :)

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

      You can change the color of any Lottie animation using our Lottie Editor --> lottiefiles.com/editor