appMobi/jQ.Mobi — Issue #59: toggle
Author: kyoukhana
Created: 2012-01-31 17:15:13+00:00
State: open

Lets say you use the css3Animate. I know there is a reset but I want to do a toggle. So when you click on the link it will increase the size of the div click on the link again it will reset back to its normal state.

Here is the code I am working with

function showWallet() {
$("#myDiv").css3Animate({
width: "600px",
time: "600ms",

callback: function () {
reset()
}
});
} /*End move function */

function reset() {
$("#myDiv").css3Animate({
opacity: 1,
width: "600px",
time: "0ms"
});
}