Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # author : eakkasit tunsakool
- #my trick
- //toogle
- var logic = false; // hide
- $('#toogle').click(function(e){
- if(logic == false){
- $('#left-panel').animate({left:'351px',opacity:'1'},1000);
- logic = true;
- }else if(logic == true){
- $('#left-panel').animate({left:'0px',opacity:'1'},1000);
- logic = false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement