This snippet shows examples of Accordion and toggles using Velocity.js. Velocity.js is an animation engine for the UI, which works with or without JQuery. It is fast it features colour animation, transforms, loops, easings, SVG support, and scrolling. It can be used instead of Jquery and CSS. Here, the snippet deals with bootstrap 3 combined with Velocity.js v1.2. You can see the Accordion and Toggle behaviour created using bootstrap classes. The HTML is similar for both the example, take a look at the CSS and JQuery. Jquery uses the Velocity for creating the animation effect for fading the panels once clicked to see the accordion and toggling behaviour. The animations are smoothly done. This would be used in websites with large content. You can use this code with your personal tweak to blend with your page.
Whether it is "traditional top bar" navigation or sticky navigation at the bottom or sides, we can have animations for the menu when selected. These animations can be blended with all types of navigation bars. We are looking at the series of collections of animations used for the menu items in a navigation bar. This is the third example in this series; the code uses the combination of HTML and CSS to create the animation. It is a simple navigation bar with a menu like any other blog. Check out the menu when you trigger the hovering event, this will create a left border along with the text of the menu. The font and other styling properties are perfect matches for any format website. These animations give a special effect to navigation bars. You can use this kind of animations for your personal website.
This is an excellent example of animations used in the navigation bar. This effect is due to the simple combination of the HTML and CSS styles. This is a simple navigation bar with menu added to it. Once you trigger the hovering event on any menu, you would see the top border moving down while the left border appears along the left side of the text. This is achieved by setting the height and width property of borders before and after the hovering event. This can be used in a traditional top bar or any sticky navigation bar located at the bottom or sides of the website. You can use this snippet with any website, as the font and the properties used, can be a perfect blend with any website. You can have multiple animations by changing the border properties and see to yourself for the ideal animation effect for your webpage.
This is an example of a one-page navigation menu template. This can be used for floating style website as it reserves a particular space on the left sidebar. The design is such that it does not contain boundary on the homepage but for the subpages, you would see the boundaries. The menu options are just a blend to the rest of the web page as this design is possible due to the icons used for the website. The visual effects are purely due to CSS styling. These menu options can be used for creating web pages or personal blogs as the menu items are less in number. Check out the colors set for each paragraph, which gives a look of a new page. You can use this snippet for your one-page design layouts.
Mega menus are a new trend. These are drop-down triggered when an event is triggered by hovering over a link mentioned in the menu. This is used to show all options under the particular menu. This is used on e-commerce site where all the available options are listed under a particular category. To add mega menu we are using “mega-dropdown menu”, to the menu item which will display the items under its list. To separate the content we are using the tab classes like “tab-content” and “tab-pane”. Define the tab-pane with particular ID’s. Define the nav tab’s as toggleable with links to the tab-pane of mega-menu items. Check out the CSS for hovering and styling. As mega menus are dropdowns using hovering events, you must be careful to add this on the selected menu items. Use this for your e-commerce website by listing your items and images.