Animated Toggle Menu

We bring to your attention our new concept of a free animated toggle menu that can be helpful to web developers for creating websites. We hope you'll like our menu and find a way to use it in your development practice.

What is Animated Toggle Menu?

Our animated toggle menu is both spectacular and ergonomic, and that's why it will be highly appreciated by users of any site. Luckily, we avoided the mistake often being made by web developers who create expressive but "heavy" site design. Our animated toggle menu is visually appealing, laconic and easy-to-use.

yes_2.gif

We offer you lightweight, open-source menu which requires minimum lines of code. By using this menu, you’ll be able to create a stylish and user-friendly website for all the clients.

How to use?

Animated Toggle Menu uses css3 animations, as well as the jQuery library.

To take the full use of the menu, add the following block after opening the <body> tag:

<div class=“menu-overlay”></div>

In order to add the menu itself, you need this code:

<div class="menu"> <div class="hamburger-menu-wrapper">

<button class="hamburger-menu">

<span>toggle menu</span>

</button>

</div>

<div class="menu-list">

<a href="#">Link 1</a><br>

<a href="#">Link 2</a><br>

<a href="#">Link 3</a><br>

<a href="#">Link 4</a><br>

</div>

</div>

Remember, the "menu" class is going to take 100% wide.

js for the menu:

(function() {

'use strict';

$('.hamburger-menu').click(function (e) {

e.preventDefault();

if ($(this).hasClass('active')){

$(this).removeClass('active');

$('.menu-overlay').fadeToggle( 'fast', 'linear' );

$('.menu .menu-list').slideToggle( 'slow', 'swing' )

} else {
 $(this).addClass('active');

$('.menu-overlay').fadeToggle( 'fast', 'linear' );

$('.menu .menu-list').slideToggle( 'slow', 'swing' );

$('.hamburger-menu-wrapper').toggleClass('bounce-effect');

}

})

})();

And, of course, don’t forget to connect jQuery library.

 

We hope you found our animated toggle menu appealing and useful. Feel free to take full advantage of it during the website development.

You can also visit this page to learn more about our menu.

Rate this article
2 ratings, average 4.00 of out 5
Table of contents
Get in touch
Related articles
Blockchain Myths Debunked: Separating Fact from Fiction
Blockchain Myths Debunked: Separating Fact from Fiction

Blockchain

5 min read

Custom Accounting App Development Costs
Custom Accounting App Development Costs

Fintech

9 min read

Exploring Fintech Application Development Costs in 2024
Exploring Fintech Application Development Costs in 2024

Fintech

12 min read

Blockchain Myths Debunked: Separating Fact from Fiction
Blockchain Myths Debunked: Separating Fact from Fiction

Blockchain

5 min read

Custom Accounting App Development Costs
Custom Accounting App Development Costs

Fintech

9 min read