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

viagra coupons ... (not verified)

levitra medicament orodispersible

where to get vi... (not verified)

Viagra Gift Card

azithromycin dr... (not verified)

Pittsburgh Page Get Viagra Quick

generic propeci... (not verified)

Propecia Generic Fda

azithromycin z pack (not verified)

Acheter Viagra En France Pas Cher

cheepest generi... (not verified)

Kamagra Sildenafil 100 Mg

viagra hard ons (not verified)

Worldwide Bentyl Secure Discount

finasteride hai... (not verified)

Propecia Cotizacion

1841 finasterid... (not verified)

Levitra Vardenafil Bayer

generic viagra ... (not verified)

forum cialis effets secondaires

buy propecia online (not verified)

Acheter Cialis Pour Femme

chlamydia treat... (not verified)

Dejar Propecia

viagra at a you... (not verified)

viagra que hace

propecia hair loss (not verified)

Prescription Viagra On Line

were to buy viagra (not verified)

Pharmacycanada

propeciahelp (not verified)

What Will Outdated Cephalexin Do

z pack for strep (not verified)

Kamagra Directions

propecia hairline (not verified)

Cheapest Desyrel Without A Prescription

buy kamagra wit... (not verified)

Canadian Superstore Pharmacy Reviews

alternativas kamagra (not verified)

Levitra In Osterreich Rezeptfrei

JamesDup (not verified)

{Виг-эрикс|Ndash|Половый член|Препарат|Результаты|Месяц|Окружность|Увеличение|Пещеристые тело|Представитель||} В результате включения самых лучших компонентов в проверенную формулу Виг-ЭрИкс пользователи увидели значительно более высокие результаты - {Это не редкость, чтобы искать путь, для улучшения качества секса.

Janenerabfee (not verified)

XEvil - the best captcha solver tool with unlimited number of solutions, without thread number limits and highest precision!
XEvil 5.0 support more than 12.000 types of image-captcha, included ReCaptcha, Google captcha, Yandex captcha, Microsoft captcha, Steam captcha, SolveMedia, ReCaptcha-2 and (YES!!!) ReCaptcha-3 too.

1.) Flexibly: you can adjust logic for unstandard captchas
2.) Easy: just start XEvil, press 1 button - and it's will automatically accept captchas from your application or script
3.) Fast: 0,01 seconds for simple captchas, about 20..40 seconds for ReCaptcha-2, and about 5...8 seconds for ReCaptcha-3

You can use XEvil with any SEO/SMM software, any parser of password-checker, any analytics application, or any custom script:
XEvil support most of well-known anti-captcha services API: 2Captcha, RuCaptcha, AntiGate (Anti-Captcha.com), DeathByCaptcha, etc.

Interested? Just search in Google "XEvil" for more info
You read this - then it works! ;)))

P.S. New XEvil 6.0 will solve hCaptcha, FunCaptcha and ReCaptcha Enterprize

JaimeTes (not verified)

Заказать бады для мужчин ради повышения либидо и потенции, китайская медицина.
Женские возбудители и афродизиаки. Однако дозволено Заказать тут :
fito-shop.in.ua

JaimeTes (not verified)

Заказать бады для мужчин ради повышения либидо и потенции, китайская медицина.
Женские возбудители и афродизиаки. Однако дозволено Заказать тут :
fito-shop.in.ua

loveawake.ru (not verified)

Welcome to the world of adult Dating loveawake.ru

mojoheadz (not verified)

For example, juggling chainsaws while singing doesn't make you a better artist necessarily, it just makes you physically talented. Know what I mean?

mojoheadz (not verified)

For example, juggling chainsaws while singing doesn't make you a better artist necessarily, it just makes you physically talented. Know what I mean?

clearblue inte ... (not verified)

These are really enormous ideas in about blogging. You have touched some fastidious things here. Any way keep up wrinting. clearblue inte gravid prophi.sewomabest.com/map4.php

RogerBaige (not verified)

поднять дом красноярск

RogerBaige (not verified)

ремонт пола геракл

furniturebox ou... (not verified)

Hi there just wanted to give you a brief heads up and let you know a few of the pictures aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different browsers and both show the same outcome. furniturebox outlet blocket mocco.teswomango.com/map1.php

RogerBaige (not verified)

Замена венцов красноярск

RogerBaige (not verified)

поднять дачу геракл

MichaelSex (not verified)

Хай всем

Смотрите, нашел отзывчивый вебсайт о починке бытовой
Вот ссылка inetrfax.ru

MichaelSex (not verified)

Всем добрый вечер

Смотрите, нашел привлекательный вебсайт о ремонте техники и пр
Вот ссылка inetrfax.ru

VictorPutle (not verified)

Full List Of Meta Tags, Why They Matter For Search Engine Optimization & Tips On How To Write Them

CraigTreah (not verified)

20 Finest Spring Marriage Ceremony Guest Attire Of 2022

CraigTreah (not verified)

20 Finest Spring Marriage Ceremony Guest Attire Of 2022

Ashlee (not verified)

Howdy! I know this is kinda off topic nevertheless I'd figured I'd ask.
Would you be interested in trading links or maybe guest authoring a blog post or vice-versa?
My website discusses a lot of the same topics as yours and
I think we could greatly benefit from each other. If you might be interested feel
free to shoot me an e-mail. I look forward to hearing from you!
Terrific blog by the way!

JanetikPrace (not verified)

Each generation sees itself as completely different from the previous one, but in the end is about the same.
If I look back on my life, I believe that I was constantly wrong.
The same will happen to you when you get older. Gain experience and make mistakes. That is the meaning of life.
Don't think you can be perfect - that's not possible.
Temper yourself, your will, so that when the test comes, you can accept it like a real man.
Do not let yourself be deceived by pathos truths and loud phrases.
Travel, explore the world, meet people, work on something that excites you, fall in love, be daring but do it with passion.
The most important thing is to live life with taste.
Perhaps there is more than one life waiting for you. But in order to deserve them, you need to use this life to the fullest. Take everything you can from life.
Beware of colorless fate.