All I want to do is on .click() is .animate #slip, essentially Im changing the css at the moment from top: 10px to top: 0px
Instead of it being quite clunky i’d like to animate the movement on the change of CSS.
Currently use .toggleClass to achieve this:
$("#div1").click(function() {
$("#div2t").toggleClass('min');
});
You can animate like this:
Unless you need the
.animatecontainer, leave it off…the ID selector is, well, as fast as it gets 🙂If you wanted the click to animate it back every other
clickas well, use.toggle()like this: