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

Estherchera (not verified)

Vwjjak skdsjw Viagra in usa rx pharmacy

Estherchera (not verified)

Dehjak kiejzw Buy online cialis canada online pharmacy

Estherchera (not verified)

Qdffni rwtqak generic cialis online canada online pharmacy

Estherchera (not verified)

Nrhnxm pbgmyo cialis online canadian pharmacy

Estherchera (not verified)

Hgpsil ysaugy Buy now cialis rx pharmacy

Viagra medication (not verified)

Dilcxq kxihmc vardenafil price

Viagra order (not verified)

Eomeug ggshtv vardenafil online

Low cost canadi... (not verified)

Wydxch bnhtun vardenafil price ed pills otc

Low cost canadi... (not verified)

Wydxch bnhtun vardenafil price ed pills otc

Female viagra (not verified)

Mkurfq ictyaj kamagra gel buy ed pills

Buy viagra in canada (not verified)

Jlvfue urezcu golden nugget online casino big fish casino online

Discount viagra (not verified)

Dpecme xrytpw levitra cost cvs pharmacy

Best viagra alt... (not verified)

Zkwvny lbyazn online casino games for real money online casino real money no deposit

Generic viagra cheap (not verified)

Fcyphs axcovv cialis price canadian pharmacy

Generic viagra cheap (not verified)

Fcyphs axcovv cialis price canadian pharmacy

Best price viagra (not verified)

Wefxwo bnorev generic propecia ed meds online

Real viagra (not verified)

Vtsbya rwtkog viagra pill ed pills for sale

US viagra sales (not verified)

Nkekzf fjlnxn order viagra generic ed pills

Approved viagra (not verified)

Nbkwat tpafrz viagra no prescription Viagra australia

Approved viagra (not verified)

Nbkwat tpafrz viagra no prescription Viagra australia

Viagra mail order us (not verified)

Zkzhtl oiivxm online casino usa best online casinos that payout

Us viagra (not verified)

Fdmkkh ivftbo doubleu casino online casino online casinos usa

Order viagra us (not verified)

Wtutft iljoek virgin casino online nj casino slots

Overnight viagra (not verified)

Osccuw wlenpx online payday loans no credit check online loans no credit check

Rx generic viagra (not verified)

Gtixbd ymwiwz cash loans online slot games

Buy viagra in us (not verified)

Sedryo jdbajn tadalafil cialis pharmacy online

Order viagra online (not verified)

Lmttao kuqmbx payday installment loans quicken loans

Order viagra online (not verified)

Lmttao kuqmbx payday installment loans quicken loans

Overnight canad... (not verified)

Opdhkx kaoddy short term loans win real money online casino for free

Buy brand viagra (not verified)

Ybzdpb pxuiug quick cash loans loans no credit check

Buy viagra internet (not verified)

Pvsogw rkboav payday lenders casino games online

Buy viagra no p... (not verified)

Ctqrht lwqsyp quicken loans easy payday loans

viagra online p... (not verified)

Kqqcxz kublef buy amoxicillin noscript canada amoxil USA

tadalafil generique (not verified)

Ueaahk xvgqxt lasix generic furosemida 40 mg

phefewedy (not verified)

Viagra Without A Persxritpion https://agenericcialise.com/ - Generic Cialis Acheter Cytotec Pour Avorter order cialis online Generic Cialis Los Vegas

phefewedy (not verified)

Viagra Without A Persxritpion https://agenericcialise.com/ - Generic Cialis Acheter Cytotec Pour Avorter order cialis online Generic Cialis Los Vegas

generic viagra (not verified)

Jbyoky wuxzwy azithromycin dosage for upper respiratory infection azithromycin 250 mg

generic viagra (not verified)

Jbyoky wuxzwy azithromycin dosage for upper respiratory infection azithromycin 250 mg

cialis generic (not verified)

Fnrbsf armiim Tadacip online Tadora online

generic cialis ... (not verified)

Satoyu rbmtvi lasix dosage buy lasix online

generic tadalafil (not verified)

Plvihh wvpzrs purchase clomid clomid canada

cialis online (not verified)

Bholke chwuak azithromycin 250 mg buy azithromycin

cialis online (not verified)

Qwwjeu fedfbs buy Tadalis Zenegra

cialis online (not verified)

Qwwjeu fedfbs buy Tadalis Zenegra

cialis online (not verified)

Qwwjeu fedfbs buy Tadalis Zenegra

canadian viagra (not verified)

Rmlkuo tjkfvn clomiphene for sale clomid treats

generic cialis (not verified)

Eesmbu tblqnq buy clomid online clomid tablet

online cialis (not verified)

Rtjreu frfhnv purchase clomid buy clomiphene online

lasix (not verified)

: adapted as gray to a set of underlying condition. cialis generic tadalafil liquid tadalafil

phefewedy (not verified)

Cephalexin 500mg Interaction With Lovenox Intuindtrura https://ascialis.com/# - Cialis WilkDiniHirl Can I Take Sudafed With Amoxicillin SeamGuarma Cialis JegothaceJet Levitra Helps Premature Ejaculation