How to create mobile slide menu - the simple example

Posted by admin on Tue, 10/31/2017 - 04:58

Here is your HTML:

<div class="menu">
  <div class="menu-open"></div>
  <div class="menu-content">
    <ul>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>
    </ul>
    <div class="menu-close"></div>
  </div>
</div>

Here is the CSS:

.menu-content {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 200px;
  height: 100%;
  transform: translateX(-100%); /* Скрываем меню */
  overflow-y: auto;
  transition: 0.2s;
}
.menu-opened .menu-content {
  transform: none; /* Показываем меню */
}

Javascript:

$(function() {
  $('.menu-open').on('click', function() {
    $('.menu').toggleClass('menu-opened');
  });
  $('.menu-close').on('click', function() {
    $('.menu-open').click();
  });
});
×

Hey! Don't miss a new cool stuff!

Comments

Prednisone (not verified)

Buy Kamagra Online Usa

Priligy (not verified)

Order Now On Line Isotretinoin

Prednisone (not verified)

Effetti Collaterali Del Cialis

whats i n viagra (not verified)

Apres Clomid J Ai

ivermectin for goats (not verified)

Online Harmacy

order prednison... (not verified)

Cialis Non Prescription

priligy for pe (not verified)

Watery Bloody Stools Amoxicillin

Prednisone (not verified)

Via Medic

Priligy (not verified)

Amoxicillin Side Effects

precio priligy 30 mg (not verified)

Cialis Once A Day Dose

Priligy (not verified)

Flarex Without A Rx

HerbertLaf (not verified)

economic crisis in pakistan essay 2020

can i buy plaqu... (not verified)

Propecia After 5 Years

plaquenil generic (not verified)

Propecia Rogaine Dosage

legit cialis online (not verified)

Amoxicillin Genital Tract

legit cialis online (not verified)

Amoxicillin Genital Tract

best time of da... (not verified)

cialis abdominal pain

buy zithromax 5... (not verified)

Healthy Man Viagra Radio

buy zithromax f... (not verified)

Viagra In America

gabapentin addictive (not verified)

Real Progesterone Visa On Line

cialis for sale... (not verified)

Viagra Acquisto Senza Ricetta

where can i buy... (not verified)

mejor viagra o cialis

plaquenil lupus... (not verified)

Niagara Tablets

azithromycin me... (not verified)

Cephalexin And Doxycycline At Same Time

buy zithromax o... (not verified)

comprar viagra farmacia madrid

buy zithromax o... (not verified)

comprar viagra farmacia madrid

hydroxychloroqu... (not verified)

Prednisone Online With No Script

hydroxychloroqu... (not verified)

Prednisone Online With No Script

cialis and viag... (not verified)

Buy Flagyl Over The Counter

gabapentin mg (not verified)

cialis vs vigra

plaquenil toxicity (not verified)

Fedex Shipping Doryx Australia Online Delivered On Saturday

gabapentin mech... (not verified)

Amoxicillin 400 Mg 5ml

gabapentin mech... (not verified)

Amoxicillin 400 Mg 5ml

cialis online p... (not verified)

cialis belgique aucune prescription

plaquenil dosage (not verified)

Forum Cialis Ou Levitra

buying cialis o... (not verified)

Ed Meds In Canada

cialis for daily use (not verified)

Levitra Generika Kaufen Forum

hydroxychloroqu... (not verified)

Generic Acticin Internet Shop Shipped Ups

plaquenil uses (not verified)

Discount Buy Viagra

neurontin pill (not verified)

Sildenafil Prezzo

neurontin and codine (not verified)

Cialis Pills Online

neurontin and codine (not verified)

Cialis Pills Online

buy generic cialis (not verified)

Drinking Alcohol While Taking Zithromax

gabapentin side... (not verified)

Cod Pyridium Buy Medication Low Price No Doctors Consult

gabapentin half life (not verified)

cialis 20 mg peak time

neurontin for pain (not verified)

Cialis E Ipertrofia Prostatica

cialis 40 mg (not verified)

generic levitra online uk

purchase cialis... (not verified)

Indomethacin Comprar Online

is neurontin co... (not verified)

Cheapest Levitra Online Uk

gabapentin 300 (not verified)

Generic Provera Meprate Cheapeast Best Website On Line