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

enetibliole (not verified)

free slots best online casino casino slots casino online slots http://casinorealmoneysoe.com/ - casino game

enetibliole (not verified)

online casino bonus casino games casino real money

enetibliole (not verified)

online casino bonus casino games casino real money

enetibliole (not verified)

online casino bonus casino games casino real money

enetibliole (not verified)

big fish casino casino games cashman casino slots casino real money

enetibliole (not verified)

big fish casino casino games cashman casino slots casino real money

enetibliole (not verified)

big fish casino casino games cashman casino slots casino real money

enetibliole (not verified)

world class casino slots free online slots free casino real casino slots http://onlinecasinogamespcx.com/ - play online casino

enetibliole (not verified)

free online slots best online casino casino blackjack

enetibliole (not verified)

free online slots best online casino casino blackjack

inticleni (not verified)

online casino casino play play online casino free slots

enetibliole (not verified)

play slots online play slots online online casino gambling free casino games

enetibliole (not verified)

play slots online play slots online online casino gambling free casino games

inticleni (not verified)

http://onlinecasinosw.com/ play casino http://onlinecasinosw.com/ - gold fish casino slots casino game

enetibliole (not verified)

http://onlinecasinogamespcx.com/ online casino free slots games vegas slots online real casino slots

inticleni (not verified)

free slots games free casino casino online free casino games

Bwyvzo t (not verified)

Pscfeo ntyvxc online viagra purchase

enetibliole (not verified)

free casino games online slots online free slots games no deposit casino http://onlinecasinogamespcx.com/ - casino play

enetibliole (not verified)

free casino games online slots online free slots games no deposit casino http://onlinecasinogamespcx.com/ - casino play

inticleni (not verified)

play online casino http://onlinecasinosw.com/ - casino slots casino bonus codes slots for real money casino slots

enetibliole (not verified)

best online casino online slots online casino real casino slots http://onlinecasinogamespcx.com/ - real casino slots

inticleni (not verified)

http://onlinecasinosw.com/ real money casino http://onlinecasinosw.com/ - slot games big fish casino

enetibliole (not verified)

best online casino online slots online casino real casino slots http://onlinecasinogamespcx.com/ - real casino slots

inticleni (not verified)

best online casinos casino online slots casino games play casino

enetibliole (not verified)

free casino slot games http://onlinecasinogamespcx.com/ - free casino games online online casino bonus casino play

enetibliole (not verified)

free casino slot games http://onlinecasinogamespcx.com/ - free casino games online online casino bonus casino play

enetibliole (not verified)

free casino slot games http://onlinecasinogamespcx.com/ - free casino games online online casino bonus casino play

inticleni (not verified)

world class casino slots free casino slot games play slots online free slots

enetibliole (not verified)

free casino slot games http://onlinecasinogamespcx.com/ - free casino games online casino games world class casino slots

inticleni (not verified)

http://onlinecasinosw.com/ free slots games free casino games online online casino play slots online

enetibliole (not verified)

online casino slots http://onlinecasinogamespcx.com/ - best online casinos online gambling vegas slots online

inticleni (not verified)

http://onlinecasinosw.com/ best online casino casino bonus codes real casino slots vegas casino slots

inticleni (not verified)

http://onlinecasinosw.com/ best online casino casino bonus codes real casino slots vegas casino slots

enetibliole (not verified)

free slots casino slots no deposit casino

enetibliole (not verified)

free slots casino slots no deposit casino

enetibliole (not verified)

free slots casino slots no deposit casino

inticleni (not verified)

slots games free slots games free real casino slots slots for real money http://onlinecasinosw.com/ - slots online

inticleni (not verified)

slots games free slots games free real casino slots slots for real money http://onlinecasinosw.com/ - slots online

inticleni (not verified)

slots games free slots games free real casino slots slots for real money http://onlinecasinosw.com/ - slots online

enetibliole (not verified)

online casino real money free casino games online online gambling

enetibliole (not verified)

online casino real money free casino games online online gambling

inticleni (not verified)

http://onlinecasinosw.com/ online casino bonus http://onlinecasinosw.com/ - online casino slots big fish casino

enetibliole (not verified)

online casino slots http://onlinecasinopc.com/ - casino blackjack casino play casino game

inticleni (not verified)

play online casino online slots play online casino

enetibliole (not verified)

slots games free http://onlinecasinopc.com/ free casino slot games free slots casino bonus codes

enetibliole (not verified)

slots games free http://onlinecasinopc.com/ free casino slot games free slots casino bonus codes

enetibliole (not verified)

slots games free http://onlinecasinopc.com/ free casino slot games free slots casino bonus codes

inticleni (not verified)

http://onlinecasinosw.com/ online slots best online casinos online casinos casino games

enetibliole (not verified)

free online slots http://onlinecasinopc.com/ - slot games free online slots slots online

inticleni (not verified)

online casinos http://onlinecasinosw.com/ - free casino games online slots online best online casino cashman casino slots

Add new comment