Responsive Hamburger menu React and styled-components

Поделиться
HTML-код
  • Опубликовано: 18 апр 2020
  • HELPIn this tutorial, we will be building a Responsive Hamburger Menu using REACT and STYLED-COMPONENTS from scratch with create-react-app. After creating the react app, install styled components and delete the unwanted files that come with create-react-app, and add a components directory inside the src folder. The components folder is going to hold our navigation bar components consisting of Burger, RightNav, and Navbar.
    Check out the blog post here: awadieudonne.com/blog/How-to-...
    Check OUT other React tutorials:
    ▶️ • React Tutorials
    _______________________________________
    SOURCE CODE:
    github.com/dieudonneAwa/respo...
    ___________________________________________
    🙏 PLEASE SUBSCRIBE FOR MORE VIDEOS 👇
    bit.ly/3cIb4er
    ____________________________________________
    🔮OTHER VIDEOS YOU MIGHT LIKE👇👇
    ▶️ How to create React App from Scratch: • How to setup React app...
    ▶️Create Sequelize Migration and Association: • Create Sequelize Migra...
    ▶️How to create an animated modal in reactjs: • How to create a nicely...
    ▶️ How to render a list of todo objects in Reactjs: • Render a list of task ...
    ▶️How to setup sequelize and postgres: • How to setup Sequelize...
    ▶️Password Reset using SendGrid: • Password Reset using S...
    ▶️ CRUD Operations with sequelize: • CRUD operations with S...
    ____________________________________________
    HELPFUL RESOURCES
    Certified ScrumMaster Training: Get $200 off Today! Use this code SCRUM200
    click.linksynergy.com/fs-bin/...
    $2,760 in Savings: Premium PMP Exam Prep Boot Camp! Get everything you need to pass & enhance your skills
    click.linksynergy.com/fs-bin/...
    Follow me on Social Media:
    Facebook: profile.php?...
    Twitter: awadieudone?s=09
    GitHub: github.com/dieudonneAwa
    Personal Blog: awadieudonne.com/
    _________________________________
    KEYWORDS:
    How to create Responsive Hamburger Menu,
    Responsive Hamburger Menu js,
    Responsive create Hamburger Menu,
    Responsive Hamburger Menu CSS,
    Responsive Hamburger Menu NavBar,
    Hamburger Menu CSS,
    responsive menu, react hooks, reactjs tutorial, hamburger menu react, hamburger menu reactjs, hamburger menu javascript, styled components, responsive navigation menu, react js for beginners, how to create a navigation bar, how to create a navbar, how to create a hamburger menu, How to create Responsive Hamburger Menu, Responsive Hamburger Menu js, Responsive create Hamburger Menu, Responsive Hamburger Menu CSS, Responsive Hamburger Menu NavBar, reactJS styled component, Hamburger Menu in the responsive navigation bar,
    reactJS styled component,
    #reactJS #navbar #webDevelopment #hamburger #styled-components #HamburgerMenu #HamburgerMenuJs
  • НаукаНаука

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

  • @victortarroni
    @victortarroni 3 года назад +14

    Honestly, such a good content! The only complain I've got is related to the sound quality but other than that, You are amazing!

  • @muhammadumargulzar5642
    @muhammadumargulzar5642 3 года назад +6

    I was banging my head here and there looking for a good solution and then found this video and just used the code. Just loved it.

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

      Hi @Muhammad,
      Thank you too for watching the video. Don't forget to subscribe for more interesting videos that will be coming up in the future.

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

    I went through quite a number of videos that couldn't help me, until i stumbled upon yours. Thank you so much for sharing your knowledge.

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

      You're welcome Toyosi

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

      @@fullstackmastery Could you kindly tell me what CSS property I'd apply if I want the hamburger to slide to the left, above the left edge of the open menu (when it's open)? Thanks so much.

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

    Don't know how I found your channel, but I'm damn glad I did. This tutorial is a huge help!

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

      Hi @GarmrZero13
      I'm happy I could help you through this video.
      Thanks for watching and don't forget to subscribe to the channel if you have not done that already.

  • @tanishqsinghanand5383
    @tanishqsinghanand5383 2 года назад +2

    Thanks a ton!! Was finiding a responsive navbar over the net for hours and got your repo from github and it is really good 👍

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

    Amazing, simple amazing, a code quality and simplicity to make something good, fast and beautiful, i was trying to make something like that with styled components but i failed, thank you for the content !!! Help me a lot !!!

  • @SonGoku-ep4wj
    @SonGoku-ep4wj 3 года назад +2

    thank u bro yesterday I spend hours trying to adapt my javascript animation into react and this video helps a lot

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

      You're welcome bro,
      I am very glad the video could help.🙌

  • @davidcs1466
    @davidcs1466 4 года назад +4

    Good, ive been looking for this solution for days. Thanks bro.

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

      You're welcome bro.
      I'm very happy you find it helpful. Just make sure you don't forget to subscribe because more interesting videos will be coming up soon.💪💪💪

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

    thank you very much for this solution!! it took me some time because i'm new to react styled-component but it work great!

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

      Thank you too for watching, I hope you share with friends too.

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

    Thank you for sharing! I really like your implementation and coding style.

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

      Thanks. Glad you find it helpful. Please remember to subscribe and share with friends.

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

    Great video! Helped me a lot in a project!

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

    This is great! Thank you so much. Really glad you made this video!

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

      Hi Lee
      I am also glad you find it helpful
      Thanks for watching

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

    Really awesome tutorial mate! Thanks for sharing knowledge

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

    Thank you so much - the tutorial was great

  • @raulvap5780
    @raulvap5780 3 года назад +8

    Awesome!!! you really help me!! I was searching how to create a toggle menu and this is great!!
    I learned to close the menu when some link is clicked, if this can help anybody:
    1. At burger.js, on the burger function, pass the "setOpen" function to the component "RightNav":
    2. At RightNav.js, on the RightNav function, receive the function and take it out from props (change the function to receive props):
    const RightNav = (props) => {
    const { open, setOpen } = props;
    ...
    3. Use the received function on the links to change the state of "open":
    return (


    setOpen(!open)}>
    Home
    ...
    That's all, it should close the menu when a link is clicked.
    Thanks for this video!!!!!

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

      This is great! Thanks a lot!

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

      Thanks for watching @Joseph. Don't forget to subscribe if you haven't already done so.

    • @NA-ex9xk
      @NA-ex9xk 3 года назад +1

      OMG!!!! genius!!! i've been trying to find a solution for hours!!!!!! thank you!!!!

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

      Thanks for watching@@NA-ex9xk

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

      I really don't get what your code here is doing... or why it works... but it saved my project. Thank you so much!

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

    This was very helpful for my project. Thank you.

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

      You're welcome @JumpPanda
      I'm glad it was helpful.
      Thanks for watching the video

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

    Just what I needed! great stuff man, keep it up!

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

    I'm in my first real job experience (as a voluntary tho), and I literally had to do this exact same thing. Thanks

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

    Thank you for wonderful tutorial!

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

    Thank you so much:) amazing tutorial

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

    Just what i needed, Thank you!!!

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

      You're welcome @Wahab Rhaman.
      I will be uploading an update for this tutorial this weekend, so don't forget to subscribe to get it too.

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

    Very good my man, implementing this solution right now. Thanks a lot!

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

      You're welcome @Codename Unknown
      I'm glad you find it helpful.

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

    Thank you! This was very helpful!

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

    Thank you Sir ..... This is awesome, I have just started using react...You helped a lot here.

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

      You're welcome @Ramasindi Thalu
      I'm very happy to help. Don't forget to like share and subscribe if you haven't done that already. I will be uploading more interesting videos very soon.
      Thanks

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

      @@fullstackmastery I've already did Sir, I'll be looking forward to the next videos.... Could you please incorporate firebase as well in next videos?

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

      I would love to, but I'm not very good with firebase. However, I will will have that in mind.
      Thanks again

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

      @@fullstackmastery Thanks again 🙂🙂🙂🙂🙂🙂

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

    Excellent video...although I attempted to incorporate your code into a pre-existing react program. Although all seems to be working (Auth0, ReactBrowser, and the navigation)...sadly it seems I have no control over the menu li colors or underline (despite trying text-decoration: none. Very frustrating as I can't seem to exercise any control over menu color or background. Any thoughts?

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

    Really nice guide, THANKS BRO

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

    Thank you ! bro.

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

    you helped me! thank you!

  • @dar-v
    @dar-v Год назад

    cool, thank you!

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

    ASMR coding awesome! Thanks!

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

    Thank you for the useful video!
    Here is the way to write a little bit easier to read block of conditional styled-component (instead of getting the parameter in each line):
    import styled, { css } from 'styled-components'
    ...
    const StyledBurger = styled.div`
    ...
    div {
    ...
    ${({ isToggled }) => css`
    &:nth-child(1) {
    transform: ${isToggled ? 'rotate(45deg)' : 'rotate(0deg)'};
    }

    &:nth-child(2) {
    transform: ${isToggled ? 'translateX(100%)' : 'translateX(0)'};
    opacity: ${isToggled ? 0 : 1};
    }
    &:nth-child(3) {
    transform: ${isToggled ? 'rotate(-45deg)' : 'rotate(0deg)'};
    }
    `};
    }
    `

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

    Thank you!!

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

    I wonder what is the purpose of flex-flow: row nowrap, which doesn't seem to affect anything, thank you.

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

    thanks so much, dude

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

    Good!
    but how could the toogle state change when clicking on a link?

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

    Great. good job. I already subscribed. Thanks

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

    This was so useful, thank you so much, I was able to implement it well within my code

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

      You're welcome

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

      @@fullstackmastery I do have a small question though, everything in the styled parts (styledBurger etc), everything within the backticks are coming up as orange instead of how it would in css or scss files...any ideas why...?

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

      it all works though

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

      @@sobiah11 you need to install the extension for it to get the syntax highlighting. I don't remember the name of the extension, but you can check it out if you're using vs code

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

      @@fullstackmastery oh ok, I’ll try digging around, I mean I have prettier but this would need another extension I think

  • @krishnagawai3369
    @krishnagawai3369 2 года назад +2

    it works properly in my navbar but i have a issue how do i close hamburger menu when someone click in menu link item

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

    Well that was a nice surprise! dude I really like the way you have no fluff and just show what to do, but you do need to sort that audio out though. great work!

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

      Thanks for the feedback @Danny Roberts.
      It's highly noted.

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

    Thank you 🙂

  • @preethamm.s6095
    @preethamm.s6095 3 года назад +2

    thank u so much, wonderful tutorial :). And also I subscribed to your channel now xD.

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

      Hi @Preetham,
      Thanks for subscribing to the channel. Very interesting videos will be coming up soon. I'm very glad you find this wonderful. :)

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

    Very helpful 👌

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

      I'm glad it was helpful @Murilo Kronbauer
      Thanks for watching

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

    Thanks alot.

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

    Thank you

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

    I always thought it was a big no no having all your styles inside of a const like that or is this a normal thing to do now

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

    Gracias amigo esto me ayudara a crear mi blog personal en gatsbyjs

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

      Hola @CodeBlez
      Me alegra que este video te sea útil. Más videos interesantes aparecerán pronto. También puedes comenzar compartiendo con amigos 😇😇😇

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

    thanks a lot bro

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

    this is awesome bro thanks heaps, have subscribed!!

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

      Thanks bro. Happy to have you around.💪

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

      @@fullstackmastery hey bro sorry one question, when it hits the media query, the RightNav appears for 1 second and then slides back out. any idea why this is happening and how to prevent it? i've copied the source code from your github, i think it also happens in your vid at the end after 25:20 :( any help would be appreciated thank you!

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

      @@UniTz You can achieve that by having separate components; the side bar for small screens and the menu for big screens. The side bar should have a display of none when the screen is large.

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

      You can turn it to display block when it is on small screen, and add the translate effect.
      However, I will be uploading an updated version for this video, where I will fix this bug. I will do that most probably this weekend as I am busy throughout the week

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

      FullStack Mastery ok will give it a go
      thanks heaps for the quick response looking forward to the vid!

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

    hello good night friend, thank you very much for sharing your knowledge with the community, excellent material because I am wanting to escape from the framework and work only with styled-components, because I will have more flexibility.
    thank you very much
    heavy metal, coffee and code

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

      Hi @JR Dev,
      You're welcome and thanks for watching the video.

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

    I found it really helpful, I would be great if you could emphasize on making your audio quality better, it's not a big deal tbh but It would help with the views as it would make it easier for most people to follow. Thank you really helpful ❤

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

      Thanks for finding it helpful. I will work more on audio quality in the upcoming videos.

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

    bro this is great, you just helped me solve a problem, I sub to your channel, wow great lesson

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

    thanks bro

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

    You are amazing...

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

    Your video is just what I wanted.! The video is good. If you wanted to improve it, I suggest you taking care of the sound! And maybe talking more energetically...?
    Just an opinion.
    thanks

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

      Hi @Lucio
      I am glad you find the video helpful and thanks for the feedback, I will work on it in upcoming videos.

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

    Thanks 👍🏽

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

    Thank you sensacional

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

    Is building navBar with material-UI is better compared to this? Or both work's same and either are used in industry

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

      I think it's a matter of choice and implementation

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

    Thnx bro

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

    Thank you and Nice Video!!....how does your styled component give you option to auto fill like in regular Css ..mine is all in orange text...helps with spelling mistake.

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

      Thanks for watching @YAYarea 510
      I used a vs code extension to help with highlighting. The name of the extension is: vscode-styled-components

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

      @@fullstackmastery Thank you ....that will be really helpful.

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

      @@fullstackmastery TOP vscode-styles-components

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

    Great video - really helpful. Do you know how can I stop the animation from happening when reducing screen size? For example, when I shrink my screen the animation will happen as if I am closing the navbar. Thanks in advance

    • @nelnel8849
      @nelnel8849 2 года назад +2

      I know you made this comment like 11 months ago, but for anyone else needing the answer to this, I was also trying to fix the same thing.. in my @media on the RightNav i set width: ${({ open }) => open ? '200px' : '0'}; and set the padding-left: 0

    • @nuevouso
      @nuevouso 2 года назад +2

      ​@@nelnel8849 You helped me fixing this thing, thanks! Now the Navbar doesn't appear as you shrink the screen. The only thing yet to fix is that the menu closes with animation, since now it closes without animation, i'm trying to solve with no results, but it is a minor detail.

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

      Glad to help! 🤗

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

    sir, i asked one question u not using class so when u go to link and click the link on navbar how to navbar closed in responsive any idea please describe

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

      1. At burger.js, on the burger function, pass the "setOpen" function to the component "RightNav":
      2. At RightNav.js, on the RightNav function, receive the function and take it out from props (change the function to receive props):
      const RightNav = (props) => {
      const { open, setOpen } = props;
      ...
      3. Use the received function on the links to change the state of "open":
      return (


      setOpen(!open)}>
      Home

      ...
      That's all, it should close the menu when a link is clicked.

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

      @@raulvap5780 wow great man thanks for helping I'm doing same thing but I'm not consider whole thing as a props once again thanks for replying and your explanation is tooo good

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

    The content of my website(text and image) overlaps the open nav bar. Edit: fixed it with z-index: 1; in the RightNav.jsx

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

    estoy en un dilema.... que recomientas style components o material UI?.... un genial tutorial!!

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

      Hola @Tormentt0,
      Gracias por mirar y estoy muy contento de que te guste el video.

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

      En cuanto a si usar styled-components o material-ui. Preferiría styled-components. styled-components le ofrece mucha flexibilidad en comparación con material-ui. También tiene una característica muy poderosa llamada Theming con la que puede implementar fácilmente los modos día / noche.

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

      @@fullstackmastery ok gracias por responder... sigue creando cosas bonitas y complicadas xD

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

      @@Tormentt0 Gracias también

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

    P.S Does it disappear after the links are clicked? seems to be lacking in most tutorials, love the simplicity tho , thank you

  • @ricardo.marin7
    @ricardo.marin7 3 года назад +1

    Bro, my transitions doesn't work, do you know why? when i click on the hamburguer menu

    • @ricardo.marin7
      @ricardo.marin7 3 года назад

      it was a problem with my css and i had the styled components inside the stateless component

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

    What happened to the fullstack todo list??

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

    I have a question. How close the menu on click on the or clicking outside the ? i realy need this . THX for your help

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

      Hi @KosikPL
      You can use react Refs to achieve that. Quickly checkout this stack overflow question.
      stackoverflow.com/questions/32553158/detect-click-outside-react-component

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

      I need to do the same functionality, did you manage to make it work?

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

      @@dadomarr not yet,
      Sorry I for taking long. I will fix it unfailingly this weekend. I'm usually very busy within the week.
      Thanks for watching

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

      @@fullstackmastery tkss

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

      @@fullstackmastery I'm also waiting for resolution how close menu onClick on . Thanks !

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

    Hi, I'm following your tutorial and the @media query is not working for me, any idea why this would happen? I have the same code as you except for the index.html on public folder. thank you!

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

      Hi Julieta
      How are you using it?

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

      @@fullstackmastery Hi thank you for answering me! I just fixed it, changed the @media max-width to 1500px, i'm not sure that is right, but I could not see the burger menu with full screen on my browser

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

    why showing styled-components not found
    /src/components/Nav/Navbar.jsx
    Module not found: Can't resolve 'styled-components' in 'C:\Users\GCUF\Desktop\bootcam tutorial\trading
    avBar eesponsive
    avbar-resonsponsive\src\components\Nav'

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

      You probably didn't install it, you need to install it before you can use.

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

    Anyone know how close menu on click on nav link ?

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

    please can you help me?

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

    on expanding the navbar, it covers the contents of the screen?
    How to solve that issue ?

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

      Use z-index on the navbar. Give a high value if you want it to cover the content, otherwise, give a low value.

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

      The thing is ,I want to push all the things downwards ,so that navbar doesnt get displayed on top of other content

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

      @@kishorbhatt6274 Sorry I don't understand what you mean by push everything downward? Are you talking about the sidebar or the navbar at the top?

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

      I mean, when I click the burger menu,the items gets displayed over the body (like over image and some part of image gets hindered).
      So how to make it not appear on top of image (in my case) ?

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

    my side navbar is behind everything on page. how do i make it disaply over the page?

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

      Hi @Ayushi
      You need to give the side bar a z-index of about 50 or more.

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

      @@fullstackmastery You are awesome. Worked like a charm. Thanks

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

      @@AbhayKumarSrivastava you're welcome

  • @michael_ibeh
    @michael_ibeh 2 года назад +2

    I have a problem if I resize my browser window to a mobile view, the RightNav pops up for a split second but if I remove the transition, it stops, and I want the transition to be there without that problem, please how can I fix this

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

      You should use the left and/or right css properties to do the transition.

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

      @@fullstackmastery still not working

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

      @@michael_ibeh is this urgent?

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

      @@fullstackmastery not really

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

      @@michael_ibeh I haven't worked on the solution yet. I will come up with the solution when I can and pin the link in the comment section.

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

    Thanks! How can i use this on class component?

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

      Hi Alex.
      Thanks for watching.
      Apologies for the late reply.
      Yes you can do the same feature with class component.

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

      @@fullstackmastery Thank you!

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

      @@alexren2434 you're welcome

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

      Don't forget to subscribe for more awesome Tutorials coming up soon.

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

    Hi @FullStack Mastery i'm working on closing menu, when clicking outside the menu but it is not working as expected. can you help me doing so.
    Thank you for this wonderfull tutorial.

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

      Hi @ayaan,
      Thanks for watching the video.
      You should use react ref to do that. Set a reference to the slider wrapper, and listen for clicks out of the slider(you can do this in useEffect hook or componentDidMount),. If a click is out of the slider, you set open to false

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

      Get more context about it here: stackoverflow.com/questions/32553158/detect-click-outside-react-component

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

      @@fullstackmastery I used your Creating modal video for creating outside click functionality on menu. Thanks for the modal video.

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

      ​@@ayaankh245 Wow that sounds awesome,
      I am very happy the video video was helpful. Keep coding, and if ever you come across better ways of doing thing, please comment it on any of my video's comment sections, I'd be very glad to learn too.

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

      @@fullstackmastery sure in just trying to implement it with style-components so that transform property remains. Thank you again!!!

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

    how to push contents to the right when you open the hamburger menu

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

      Hi @Eric Mathi,
      Thanks for watching the video.
      About your question, here is a resource where that is done: codyhouse.co/gem/full-screen-pushing-navigation?__cf_chl_captcha_tk__=23f31b1b990dc5f8fee20bdd357d3e235394dc4a-1594881204-0-Afk6O8Pw1FmfCJeKMZGSkVIididvleDdGtBTB2DCLowtZOvXlU5-J7YXOeXEVaRWrF6L9xHh1PRLkEt4Gcx8vaEvE6wq_KHPCmEE4Jj_A4J3RK2UZmfwnEVvl0YTn5YmBAy76OayTZ5RoFTz9ZjmC1b9tx7GuhdNKDx-TXCeVsdlJ_0b2JOtatQcFhA5sKfwUpCgtz6FYtKp8DqF7xfmvBGhjzZ36cykB0iKK0Ck_p6snUhDPrrcDhpFVywDcrZIhZ2ywox8kmWVpRs9uh5Vx50fCxfag3ZhVWV4PeS02Fv9SX24JJoRxhp6mOxGheRkIdPEmXvvODCNGHc0m2D6AcDM9i0qIBw0_b77T6UbEmfx7gcgGrFjlNY78eXOZn06VnhZxtCTwjUsGBsVZPgYmiV5npjSVa8d3v_6gfKt5hZGNhJjNT0zEibZGa_x80CqaYryHHakty2ZeJOzR_61iC6j1_NdpPpn2XVLD09dDHdKSNlVU9jl-s-CZMk9839dLyHM-oEqh9h_F96cXZu2HnbEd6A88lL_iOkPxMxFNzQI

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

      @@fullstackmastery Thanks

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

    It works really nice but the animation is a little choppy. When I open the hamburger menu I notice some jiggliness on the bottom part. No big deal but I wish the animation was smoother.

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

      Hi @surfinbird71.
      Thanks for watching the video. A better update will be coming up soon, and I will handle the jiggleness in it. So make sure to subscribe if you haven't done it yet.
      Thanks

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

    good content, but the audio needs improvement

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

    Error

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

    Good tut. please work on your audio and especially your keyboard; it's too loud 🙈

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

      Thanks for the feedback.
      I will work on it in the next videos

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

    I have no clue what you're saying. But I followed visually...

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

      Thanks for watching @HighZenBurger
      Don't forget to subscribe for more helpful videos and I promise to be clearer next time.

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

    Awesome video but speak a little louder and clear man!

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

      Hi @Kunal
      Thanks for watching. I will work on the voice in up coming videos.

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

    The audio on this video is terrible. Otherwise good work.

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

      Hi @AndrianMMable
      Thanks for your feedback, I will work on the audio in the upcoming videos

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

    Is this coding ASMR?

  • @Abdullah-uv9nk
    @Abdullah-uv9nk 3 года назад +1

    please get a better mic, it's a good tutorial but all I can hear is static in the background.

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

    WHAT?! I CAN'T HEAR YOU. SPEAK UP PLEASE