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

Plaquenil (not verified)

Cialis Kaufen Polen

side effects of... (not verified)

Propecia Kaufen

furosemide 20 mg (not verified)

cialis for woman

azithromycin 25... (not verified)

levitra buying

zithromax dose ... (not verified)

pastillas cialis para que sirven

Zithromax (not verified)

Pharmacybiz

Priligy (not verified)

Danni Propecia

Plaquenil (not verified)

Generic Lasix Online

Priligy (not verified)

Buy Priligy Dapoxetine Online Canada

buy hydroxychlo... (not verified)

cialis tubs

priligy online ... (not verified)

side effects cialis

allergic reacti... (not verified)

Topical Propecia Uses

what happens wh... (not verified)

Prednisone Side Effects

priligy alternative (not verified)

Propecia Dermatologist Hair Loss Treatment

Prednisone (not verified)

Cheap Generic Cialis Online

Neurontine (not verified)

Amoxicillin Tablets

by prednisone w... (not verified)

cialis generique vente

buy prednisone ... (not verified)

Cialis Stomaco Vuoto O Pieno

Prednisone (not verified)

Xenical Online Kaufen Ohne Rezept

need to buy pre... (not verified)

Want To Buy Direct Stendra Erectile Dysfunction Tablet

Neurontine (not verified)

Is Ordering Viagra Online Safe

can i buy predn... (not verified)

Probenecid

Neurontine (not verified)

Buy Viagra With Debit Card

gabapentin for ... (not verified)

Cialis Generico Acquisto Sicuro

how long does i... (not verified)

Cialis Plus Dapoxetine

gabapentin mg (not verified)

Kamagra Shop 24

gabapentin cats (not verified)

low dose cialis generic

prednisone 10 m... (not verified)

Cialis Rezeptfrei Schneller Versand Inland

neurontin 600 mg (not verified)

cialis online consultation

Prednisone (not verified)

Desyrel

Neurontine (not verified)

Levitra Effetti Collaterali

no presription ... (not verified)

Cialis Senza Prescrizione

Cialis (not verified)

Viagra Pillen Erfahrungen

Cialis (not verified)

Free Generic Viagra Samples

Cialis (not verified)

Cialis Cheapest Canada

best site to bu... (not verified)

Worldwide Direct Acticin 30gm

viagra online c... (not verified)

taking 2 cialis

propecia finasteride (not verified)

Fairy Pharmacy

viagra beer (not verified)

Como Comprar Viagra

Cialis (not verified)

Comment Obtenir Du Viagra

Propecia (not verified)

Malegra Pro

finasteride 1mg... (not verified)

Amoxicillin Pneumonia

Stromectol (not verified)

cialis for pulmonary hypertension

Viagra (not verified)

generic cialis black 800mg

how to take viagra (not verified)

Levaquin Low Price

Viagra (not verified)

Precio Viagra 100 Mg

cialis buy (not verified)

Buy Now Cod Progesterone Tablets Cheapeast

lasix potassium... (not verified)

Xenical Over The Counter

Viagra (not verified)

Bonnisan Drops

Cialis (not verified)

Best Buy Acticin Without Dr Approval