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

Cialis (not verified)

cialis once a day pill

Lasix (not verified)

price cialis mexico pharmacy

purchase cialis... (not verified)

Propecia Varato

Viagra (not verified)

Ciprodex Discount

buy cheap ciali... (not verified)

Sore Throat Antibiotic Amoxicillin Protocol

cialis price (not verified)

Viagra Generic For Sale

viagra time frame (not verified)

Viagra Generic No Prescription

cheap cialis no... (not verified)

Inderal Canada Nol Prescription

Viagra (not verified)

Cephalexin Bad Breath

Lasix (not verified)

Levitra Medicament En Baisse

cialis and viag... (not verified)

Propecia Finasteride Dosage

buy ivermectin ... (not verified)

one a day cialis

generic viagra ... (not verified)

Levitra Prezzo Bayer

aclepsa buy propecia (not verified)

Keflex For Strep Throat

Cialis (not verified)

Propecia Estomago

Cialis (not verified)

Viagra Europe

Cialis (not verified)

Synthroid Without Rx

buy female viag... (not verified)

Achat Levitra Fiable

ivermectin scabies (not verified)

Fastest Levitra Home Delivery

Cialis (not verified)

Propecia 1mg Side Effects

Cialis (not verified)

Amoxicillin High Dose

Stromectol (not verified)

Recensione Kamagra Generic

Lasix (not verified)

viagra donde lo consigo

Cialis (not verified)

Fedex Acticin Purchase Overseas Derby

Lasix (not verified)

Benicar 20 Mg Efectos Secundarios

viagra drug inf... (not verified)

Viagra Canada Price

buy cheap viagr... (not verified)

Comprar Cialis Original En Espana

viagra vs levitra (not verified)

Sicher Cialis In Amerika Kaufen

Propecia (not verified)

Propecia En Ligne Canada

Lasix (not verified)

Levitra Rxlist

prednisone no r... (not verified)

why does cialis cause muscle pain

Lasix (not verified)

Amoxicillin Bronchitis

ivermectin 3mg (not verified)

Complementaria Propecia

purchase predni... (not verified)

Cephalexin Dosing For Dogs

60mg priligy (not verified)

Como Cortar Propecia

Lasix (not verified)

Viagra Online Overnight

cialis and priligy (not verified)

cialis caida cabello

Viagra (not verified)

Propecia Itchy

Prednisone (not verified)

Cialis Combien De Temps Avant

Stromectol (not verified)

tadalafil cialis from india

Prednisone (not verified)

levitra online in usa

Viagra (not verified)

Hydrochlorothiazide Express Delivery Store

furosemide otot... (not verified)

Zithromax 250 Mg Side Effects

Prednisone (not verified)

Supremesuppliers

Priligy (not verified)

viagra farmacias online

tab ivermectin 3mg (not verified)

Kamagra Oral Jelly Zoll

Priligy (not verified)

Diclofenac Tablets Without Prescription

Prednisone (not verified)

Keflex And Breastfeedng

Prednisone (not verified)

Ratiopharm Viagra 2013

Priligy (not verified)

Buy Priligy Dapoxetine From India