This is another example of a bootstrap navigation bar with submenu dropdowns, designed using CSS, HTML, and JavaScript. JavaScript functions have been used to implement the dropdown menu function. The concept of Lists has been used with UL and LI components. UL element has been used with the child elements of LI to display the details in an orderly manner. The web form is given the styles of font-family as "Montserrat", sans-serif, background color of #8d97ad, and font-weight as 300. The h1 to h6 sections are given a color of #3e4555. The styles for the drop-down menu is set as padding as 8px 1rem, and color as #8d97ad, whereas the styles for the navigation bar is set to padding as 12px 0px, color as #8d97ad, font-weight as 400, and changes its color to #2cdd9b, in a hover event. The font size for the menu is set as 12px. The hire me button is also given the styles of color: #2cdd9b, background-color: transparent, and border-color: #2cdd9b.
This is a template of a bootstrap navigation bar with submenu dropdowns, designed using CSS, HTML, and JavaScript. JavaScript functions have been used to implement the dropdown menu function. The concept of Lists has been used with UL and LI components. UL element has been used with the child elements of LI to display the details in an orderly manner. The web form is given the styles of font-family as "Montserrat", sans-serif, background color of #8d97ad, and font-weight as 300. The h1 to h6 sections are given a color of #3e4555. The navigation bar is given the background color #188ef4 and also the linear gradient color of that, for the browsers that support linear gradient colors. The font color of the drop-down list is set as #8d97ad, whereas the styles for the navigation bar is set to padding as 12px 0px, color as #ffffff, and font-weight as 400, which changes its color to #263238, in a hover event. The signup button has the styles of color: #fff, background-color: #343a40, border-color: #343a40, and changes its styles to color: #fff, background-color: #23272b, border-color: #1d2124, in a hover event.
This is a keypress event where a certain element gets focused when the key that starts that element is pressed down. This is written in JavaScript. To handle the keypress event, the “key-down” function has been used in and to validate it to work only for alpha characters, a list has been declared with all the alphabetical characters with its Hexa value. There are three functions used here; handleAlphaKeyPresses, matchElemToKey and cycle focus and the use of them are respectively, to apply the keypress event, to find all the matching elements and return them and to make the “li > an” element. CSS styles have been used to apply mouse hover styles with the “hover” class and to apply the styles for the selected div with the “focus” class. Source: https://codepen.io/miclgael/pen/LJJvyP?&page=1
This code is used to design a responsive navigation bar where it dynamically changes according to the screen size. If the screen width is greater than 700px, the “nav-bar” class will be displayed and “small-navbar” will be hidden and vice versa. The style “display” is used with the value “none” to hide the visibility and the value “block” to make it visible. To identify the screen size, the media screen attribute has been used by specifying a min-width. The input element has been used with its type checkbox to display the clickable div; its clicked events have been handled by applying the styles when checked and remove the styles when unchecked. Source: https://codepen.io/jewel998/pen/exVpQK?&page=1
This is an example of the mouse hover effect using pure CSS styles without any JavaScript’s. The slide in animation allows expanding a menu when the mouse cursor hovers over the div whereas the slide-out animation closes the menu when the cursor moves out of the div. It uses the “transform” style to slide in and out of the div. The translated is used to make the slide in and out horizontal. The hover event in styles has been used to append the styles when the cursor gets on a specific div. The “text-transform” style has been used to convert the given HTML text into uppercase automatically by setting its value to “uppercase”. Source: https://codepen.io/codboy_3/pen/pmMzzp