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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

ความคิดเห็น • 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!

  • @soundhouse7tonstudio
    @soundhouse7tonstudio 4 ปีที่แล้ว +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.

  • @masudkarim112
    @masudkarim112 ปีที่แล้ว +1

    Thank you so much for your tutorial

  • @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 4 ปีที่แล้ว +1

      yes im having the same issue

    • @ayushisharma4155
      @ayushisharma4155 4 ปีที่แล้ว +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 4 ปีที่แล้ว +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

  • @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 😁🙇🏽‍♂️

  • @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.

  • @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?

  • @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 2 ปีที่แล้ว

      You are such a legend for this

    • @justynasieczka9132
      @justynasieczka9132 ปีที่แล้ว

      Thank you so much for this!!!!

    • @salmonj77
      @salmonj77 ปีที่แล้ว

      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

  • @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.

  • @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!

    • @cubemusicworld
      @cubemusicworld 3 ปีที่แล้ว

      Same problem
      How did you fix it

  • @trtle.t
    @trtle.t 6 หลายเดือนก่อน

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

  • @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 😁🙇🏽‍♂️

  • @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!

  • @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.

  • @creativereflux4336
    @creativereflux4336 4 ปีที่แล้ว +2

    Thanks for being generous in delivering good stuff.
    Salamat!

    • @pixelgeek
      @pixelgeek  4 ปีที่แล้ว +2

      Walang anuman. thanks for watching :)

  • @originunknown4273
    @originunknown4273 3 ปีที่แล้ว

    This was very helpful. Thanks

    • @pixelgeek
      @pixelgeek  3 ปีที่แล้ว

      Glad it was helpful!

  • @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

  • @IhorRomankov
    @IhorRomankov ปีที่แล้ว

    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?

  • @darshitpatel5513
    @darshitpatel5513 3 ปีที่แล้ว +1

    Thank you Brother for this.
    Have a nice day.

    • @pixelgeek
      @pixelgeek  3 ปีที่แล้ว

      Have a nice day

  • @nathandillon5505
    @nathandillon5505 4 ปีที่แล้ว

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

  • @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 ?

  • @martingeyeryoutube
    @martingeyeryoutube 2 ปีที่แล้ว

    Thanks for this!

  • @studybeats7784
    @studybeats7784 2 ปีที่แล้ว

    Thank you, very helpful content!

  • @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?

  • @user-sp4fb3lb2b
    @user-sp4fb3lb2b 4 ปีที่แล้ว +2

    Worked perfect thank you

    • @pixelgeek
      @pixelgeek  4 ปีที่แล้ว

      Glad to have helped 😁

  • @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

  • @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?

  • @mRWiil
    @mRWiil 4 ปีที่แล้ว +1

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

  • @GunKaraka
    @GunKaraka 4 ปีที่แล้ว +1

    Thanks mate, that was awesome

    • @pixelgeek
      @pixelgeek  4 ปีที่แล้ว

      Glad you enjoyed it

  • @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!

  • @geisleris
    @geisleris 4 ปีที่แล้ว +1

    Awesome tutorials, keep going!!!!

  • @akbarbadsha25
    @akbarbadsha25 4 ปีที่แล้ว +1

    thanks man.. awesome tips

    • @pixelgeek
      @pixelgeek  4 ปีที่แล้ว

      Happy to help!

  • @charlesm1173
    @charlesm1173 3 ปีที่แล้ว

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

  • @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 3 ปีที่แล้ว

      @Denny Satria see pinned comment above!

  • @rogerridpath1107
    @rogerridpath1107 4 ปีที่แล้ว +1

    Another great one!

  • @AmanSharma-dt7fh
    @AmanSharma-dt7fh 3 ปีที่แล้ว +1

    Thanks, You helped me
    :)

    • @pixelgeek
      @pixelgeek  3 ปีที่แล้ว

      Glad to hear that!

  • @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.

  • @selmanfit
    @selmanfit 4 ปีที่แล้ว +1

    Genius!! thx a lot!!

  • @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)

  • @LottieFiles
    @LottieFiles 4 ปีที่แล้ว +1

    Nice!

    • @pixelgeek
      @pixelgeek  4 ปีที่แล้ว +1

      Thank you! Cheers!

  • @kareemabulaban9456
    @kareemabulaban9456 4 ปีที่แล้ว

    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?

  • @musaffahtwelve
    @musaffahtwelve 7 หลายเดือนก่อน

    Lot OF thanks

  • @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.

  • @immagina239
    @immagina239 4 ปีที่แล้ว

    Thank you!

  • @stusmith1201
    @stusmith1201 ปีที่แล้ว

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

  • @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 th-cam.com/video/_5fJk1YxUcw/w-d-xo.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!

  • @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 4 ปีที่แล้ว

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

    • @shela_svg
      @shela_svg 3 ปีที่แล้ว

      did anyone solve this yet? :/

  • @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.

  • @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.

  • @lilimxprice
    @lilimxprice 4 ปีที่แล้ว +1

    Thank you :)

    • @pixelgeek
      @pixelgeek  4 ปีที่แล้ว +1

      My pleasure 😁🙇🏽‍♂️

    • @lilimxprice
      @lilimxprice 4 ปีที่แล้ว

      ​@@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 :)

  • @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