Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function()
- {
- $('#togglebutton').click(function() {
- if($(this).css("margin-right") >= "20%")
- {
- $('.sliderCalc').animate({"margin-right": '-=20%'});
- $('#togglebutton').animate({"margin-right": '-=20%'});
- }
- else
- {
- $('.sliderCalc').animate({"margin-right": '+=20%'});
- $('#togglebutton').animate({"margin-right": '+=20%'});
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement