sliding element jquery

Solutions on MaxInterview for sliding element jquery by the best coders in the world

showing results for - "sliding element jquery"
Oskar
31 Jan 2021
1$("#menupic").click(function(e) {
2  $(".menu").animate({
3    left: $(".menu").css('left') == '-400px' ? "0px" : "-400px"
4  }, 200);
5});
6
7html >>
8<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
9<div id='menupic'>menupic</div>
10<div class='menu'>menu</div>
11
12css>>
13.menu{position:relative;}
14
15