-1

I have seen this site on the internet: http://etinspires.com/ on the right side there is a "+" button ... when i click the button the whole side slides from right to left ... can somebody tell me how it works? I have googled but there is no code snippets that can explain me how it works ... in the source code of the site I didn't find the exact source code that I can learn how it works.

4

1 回答 1

1

基础知识

$('#YourButton').click(function(e) {
      $('#foo').animate({
          'left' : '30px'
      });                 
});

小提琴

于 2013-04-09T12:22:56.640 回答