An Awesome Toggle Menu created with HTML,CSS,JQuery,font-awesome and line by line comment.

Overview

Module/Library/function/icons used in this project:

Important information of this project:

  • Custom css file path -> /dist/css/menu-style.css
  • Custom js file path -> /dist/js/menu.js
  • Path of jquery -> /dist/js/jquery.min.js
  • Path of font-awesome -> /dist/font-awesome/ [We remove it for huge size.You can download it by below's instruction]
  • Path of icon and image -> /dist/img/

Dowload font-awesome:

  • Download font-awesome's latest librabry https://fontawesome.com/
  • Replace it into /dist as /dist/font-awesome
  • Remove the comment of font-awesome link from index.html
  • Also you can delete the cdnjs linkup from index.html

Why .collapse:

  • we used .collapse in -> /dist/css/menu-style.css if though it doesn't exist in -> /index.html
  • .collapse is exist in -> /dist/js/menu.js
  • We created this class by this script/selector -> $(".wrapper").toggleClass("collapse");

Change the Header Text:

  • Find out class="title" in /index.html
  • Then change the text of class="title-hide" && class="sec-span"

Change the Sidebar icon and username:

  • Find out class="profile" in /index.html
  • Then change

    BlackX-732

How to classify different background source before collapse and after collapse:

If you want to change background source of .main-container after collapse then ad below's code into .collapse .main-container

background: url(new-image.jpg) no-repeat center center;
background-size: cover;
height: 100vh;
  • no-repeat -> for miss-match size of image
  • center -> vertically center
  • center -> horizontally center
  • 100vh -> 100% vertical & 100% horizontal

For little more smoothness add this to previous class

transition: 0.3s;

That's all.Enjoy Our code by your own way.(^_^)

You might also like...

🤖 Tailwind CSS assistant helps you to edit classes (includes JIT & ignores purge), toggle breakpoint classes on an element and view current breakpoint

🤖 Tailwind CSS assistant helps you to edit classes (includes JIT & ignores purge), toggle breakpoint classes on an element and view current breakpoint

Tailwind CSS Assistant See it in action on this example website 🎉 ✅ Small JavaScript package that helps you work with Tailwind CSS by... Showing you

Dec 28, 2022

Pure CSS toggle switch

Pure CSS toggle switch demo install npm i toggle-switch-css or yarn add toggle-switch-css use label class="toggle-switch my-toggle-switch" in

Sep 14, 2021

A pure CSS toggle switch for form input checkboxes

A pure CSS toggle switch for form input checkboxes

Toggle Switchy A pure CSS toggle switch for form input checkboxes Preview Installation CSS link rel="stylesheet" href="toggle-switchy.css" HTML lab

Dec 8, 2022

一个运行在浏览器内的提词器,可翻页,可变速,可自定义字体、大小、颜色等多种选项 A teleprompter in web browser, page down, speed up , custom font family/size/color and more.

Introduction 一个运行在浏览器内的提词器,可翻页,可变速,可自定义字体、大小、颜色等多种选项 A teleprompter in web browser, page down, speed up , custom font family/size/color and more. inst

Aug 17, 2021

Change font for your notes and code.

Change font for your notes and code.

Google fonts for Logseq A Logseq plugin to use Google Fonts for rendering. Google fonts have more than 1400+ fonts which can be used in Logseq now. Yo

Dec 12, 2022

Freeze variations and features in font.

Freeze variations and features in font.

FontFreeze Freeze variations and features in font. Introduction Modern OpenType fonts support variations and features that allow customizable fonts. T

Jan 6, 2023

Font-end app to test the transformer model translation from Cape Verdian Creole to English

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Sep 28, 2022
Owner
BlackX-Lolipop
Code for make a peaceful world
BlackX-Lolipop
Execute obsidian commands with short key sequences. For example, 'tp' for 'Toggle Preview' and 'tb' for 'Toggle Sidebar'. Easier to remember.

Key Sequence Shortcut Key Sequence Shortcut is an obsidian plugin, allow binding key sequences to an obsidian command. For example If we assume "t" st

Yu Wang 26 Dec 26, 2022
VanillaSelectBox - A dropdown menu with lots of features that takes a select tag and transforms it into a single or multi-select menu with 1 or 2 levels

vanillaSelectBox v1.0.0 vanillaSelectBox : v1.00 : Adding a package.json file New : Possibility to change the dropdown tree and change the remote sear

philippe MEYER 103 Dec 16, 2022
This restaurant project is a SPA (single-page application) website. The user can navigate between the home, menu and contact page. I used the MealDB API to display some menu items.

Fresh Cuisine This restaurant project is from the Odin Project and it is a SPA (single-page application) website. The user can navigate between the ho

Virag Kormoczy 7 Nov 2, 2022
jSide Menu is a well designed, simple and clean side navigation menu with dropdowns.

jQuery jSide Menu jSide Menu is a well designed, simple and clean side navigation menu with dropdowns. Browse: Live Demo & Using Guide Main Features F

CodeHim 24 Feb 14, 2022
A little animation for a big menu where the letters of a word shuffle to become the first letter of each menu item.

Letter Shuffle Animation for a Menu A little animation for a big menu where the letters of a word shuffle to become the first letter of each menu item

Codrops 29 Dec 4, 2022
The iconic SVG, font, and CSS toolkit

Version 6 Font Awesome is the Internet's icon library and toolkit, used by millions of designers, developers, and content creators. Documentation Lear

Font Awesome 70.7k Jan 3, 2023
Kuldeep 2 Jun 21, 2022
A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time.

A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time. Dropdown, navigation bu

Matthieu Bué 277 Nov 25, 2022
This project is an Awesome Books web page where users can add or remove books from the site. It also displays a list of the books added to the collection. This Awesome books webpage was created using ES6.

Awesome books App using Module Awesome books App using Module This book list was built using modules and other ES6 syntax. It allows users to add/remo

Esther Udondian 6 Jul 25, 2022
A package to toggle properties of your HTML tags.

Toggler A package(atleast the code) to toggle properties of tags. I mostly use toggle classes while making a switch theme method, button interaction e

chandra sekhar pilla 6 Jan 9, 2022