jQuery slide right to left not working -


I have a panel whose status to toggle on a button click. I can not even leave a simple animate work, never leave a toggle

  #sideCol {position: absolute; Correct: -70%; Width: 70%; }  

I think that transferring correct to 0% and then returning -70% to click event

Click (function () {$ ('# sideCol'). Amimate ({"true": "0%"},

300);});

Use a class to toggle the element:

< $ Elem.toggleClass ("Open"); $ elem.animate ({"right" : $ Elem highclass ("open")? "-70%": "0%"}, 300);});

JS Friedal:


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -