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

canadaxpha.com (not verified)

canadian drug stores online pharmacy Vrukza xugeey

cadciali.com (not verified)

tadalafil liquid http://cadciali.com/ Okxdlm rdzlch

viagprsrx.com (not verified)

cialis buy cialis buy cheap viagra Xupvoe pjsibe

viagprsrx.com (not verified)

cialis buy cialis buy cheap viagra Xupvoe pjsibe

vigaspro.com (not verified)

generic viagra names viagra 100mg Wyuhur zmcxda

Rcnezq (not verified)

sildenafil 100mg http://viagzaibis.com/ sildenafil price

Baabla (not verified)

canada online pharmacy canadianedpls.com Euyspe jptrie

Tlpbqv (not verified)

sildenafil vs tadalafil cialis effect Osgraj fiknfy

Fjryev (not verified)

https://vardenedp.com/ - buy levitra online vardenafil price vardenafil online pharmacy

Lindalig (not verified)

Anybody home? :)

XEvil 4.0 killed Cryptocurrency!

XEvil.Net

HeatherViece (not verified)

Absolutely NEW update of captchas recognition package "XRumer 19.0 + XEvil":

Captchas solution of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Hotmail, Mail.Ru, SolveMedia, Steam,
and more than 12000 another size-types of captcha,
with highest precision (80..100%) and highest speed (100 img per second).
You can use XEvil 5.0 with any most popular SEO/SMM software: iMacros, XRumer, SERP Parser, GSA SER, RankerX, ZennoPoster, Scrapebox, Senuke, FaucetCollector and more than 100 of other programms.

Interested? There are a lot of impessive videos about XEvil in YouTube.

Free XEvil Demo available.

See you later!
P.S. A Huge Discount -30% for XEvil full version until 15 Jan is AVAILABLE! :)

XEvil Net

HeatherViece (not verified)

Incredible update of captcha solving package "XRumer 19.0 + XEvil":

Captcha breaking of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, MailRu, SolveMedia, Steam,
and more than 12000 another size-types of captchas,
with highest precision (80..100%) and highest speed (100 img per second).
You can use XEvil 5.0 with any most popular SEO/SMM programms: iMacros, XRumer, SERP Parser, GSA SER, RankerX, ZennoPoster, Scrapebox, Senuke, FaucetCollector and more than 100 of other software.

Interested? There are a lot of demo videos about XEvil in YouTube.

Free XEvil Demo available.

See you later!
P.S. A Huge Discount -30% for XEvil full version until 15 Jan is AVAILABLE! :)

XEvil Net

HeatherViece (not verified)

Perfect update of captchas solving package "XRumer 19.0 + XEvil 5.0":

Captchas recognition of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, MailRu, SolveMedia, Hydra,
and more than 12000 another subtypes of captchas,
with highest precision (80..100%) and highest speed (100 img per second).
You can use XEvil 5.0 with any most popular SEO/SMM programms: iMacros, XRumer, SERP Parser, GSA SER, RankerX, ZennoPoster, Scrapebox, Senuke, FaucetCollector and more than 100 of other programms.

Interested? You can find a lot of impessive videos about XEvil in YouTube.

P.S. YES, latest version of XEvil solve ReCaptcha-3, used on your website, TOO! As you see ;))

Free XEvil Demo available.

See you later!

XEvil.Net

Sport (not verified)

My brother suggested I might like this website. He was totally right. This post actually made my day. You can not imagine simply how much time I had spent for this info! Thanks! Sport corsby.sewomabest.com/sport/

safe viagra (not verified)

Thiazides Diuretics Buy Canadian Pharm

Propecia (not verified)

Balding Propecia Approved

Cialis (not verified)

Propecia 5mg

Propecia (not verified)

Viagra Significato

Stromectol (not verified)

Cephalexin Drug Family

Propecia (not verified)

Generic Cialis For Daily Use

Cialis (not verified)

Prix Du Levitra En Espagne

Viagra (not verified)

cialis tadalafil online

Propecia (not verified)

Levitra Without A Rx

generic viagra ... (not verified)

Cialis Son Dosage

Viagra (not verified)

Cialis Acquisto In Italia

Propecia (not verified)

cialis sample pack

purchase cialis... (not verified)

Plavix Online Coupons

canada viagra cheap (not verified)

Cephalexin And Turtle

viagra for girls (not verified)

comparatif viagra cialis levitra

Cialis (not verified)

Viagra Paypal Payment Accepted

real propecia f... (not verified)

Cialis Periodo Refrattario

Stromectol (not verified)

Amoxicillin With Food Or Without Food

propecia vs rogaine (not verified)

Levitra Generique Pas Cher Cialis

amazon stromectol (not verified)

Il Cialis Prezzo

Stromectol (not verified)

Order Zithromax Azithromycin

where to buy zi... (not verified)

cialis en venta

Plaquenil (not verified)

prix levitra 10mg en ligne

lasix surgery (not verified)

cialis commande

Plaquenil (not verified)

Generique Cialis Meilleur Prix

Plaquenil (not verified)

Amoxicillin Coverage

zithromax liquid (not verified)

I Want To Buy Amoxicillin

where to buy pr... (not verified)

Keflex And Holy Basil

Zithromax (not verified)

Furosemide

what are the si... (not verified)

Cvs Pharmacy Cialis Coupon

cheap priligy (not verified)

How To Use Propecia

z pack for std (not verified)

How Do I Receive Free Viagra Trials

Lasix (not verified)

Affordable Cialis Without Prescription

plaquenil toxicity (not verified)

can cialis be used by women

Lasix (not verified)

Lymph Node Decrease Canine Cephalexin

hydroxychloroqu... (not verified)

Order Zithromax Cheap