JQuery disappears from right to left

I have the following jquery:

jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
  return this.animate({
    opacity: 'toggle',
    width: 'toggle'
  }, speed, easing, callback);
};

$(document).ready(function() {
  $("#container_content_quick").hide();
  $("#header").click(function() {
    $("#container_content_quick").slideFadeToggle();
    return true;
  });
});

      

Basically disappears into #container_content_quick from left to right.

I wonder if it can disappear from right to left?

+2


source to share


1 answer


If your element is anchored to the left, the left side will stay in place and the right side will move towards it. If you are anchored to the element on the right, then the opposite is true. You could achieve this most easily with floats, I would guess.



+1


source







All Articles