Button dissapears on resize css1/6/2023 Ive no clue why this is happening, as when I use a variable for the height and width and manually assign the right values to those, and then resize those values instead of homeButton.width. Then if you resize to a full screen the menu is visible and back to normal but if you click on a mobile menu to show the links and then press again to hide the links(all of this while in the mobile device screen) and then resize to a full screen the menu is not visible anymore. Im trying to get some buttons done, and it seems that when I attempt to resize the button to fit the screen resolution it just makes the buttons disappear. In the following example, after clicking the button, note the following. Look into using Codepen or as suggests JSFiddle.,When you resize the window to simulate the mobile device and the mobile menu appear. All columns can be resized by dragging the top right portion of the column. Can someone please help…,It is better if you post a url to the actual project instead of to a zip file containing files for your project. Then if you resize to a full screen the menu is visible and back to normal but if you click on a mobile menu to show the links and then press again to hide the links(all of this while in the mobile device screen) and then resize to a full screen the menu is not visible anymore. You could check the screen width and when the width is a certain size again, you could fade it back in.,When we resize the window to simulate the mobile device and the mobile menu appear. Once it is faded out, you would need some trigger to fade it back in. Your else block of code fades out the menu. When the user resizes and then scrolls right, the background of the window is cut off on the right to the size of the resized window, so you only see a white background past that point. When you click the button again (to hide it), then your else code executes, because menu was set to true from the first click. Another problem that occurs when the user can scroll horizontally. It is because when you first click the mobile menu, menu was false, so your if statement fades the menu in and assigns true to menu.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |