derrida
asked on
animate a dir right position like toggle
Hi
i have a div that start like so:
i need to toggle it to:
i tried toggle but it doesn't just move it, it is like hide and show. i just need to toggle its right between these two points.
so i have this, and it works but it doesn't act like a toggle:
what am i missing here? how to make it act like a toggle?
best regards
i have a div that start like so:
right: -50%;
i need to toggle it to:
right: -90%;
i tried toggle but it doesn't just move it, it is like hide and show. i just need to toggle its right between these two points.
so i have this, and it works but it doesn't act like a toggle:
$('#menu-btn').on("click",function(e) {
$('.slide').animate({"right": '-90'});
});
what am i missing here? how to make it act like a toggle?
best regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
please try this:
Open in new window
Which jQuery version are you using?
HTH
Rainer