julianshapiro/velocity — pull request #128 by DevertNet (2014-06-26 08:58:59+00:00)
Title: velocity.ui: Prevent display none at out-animations with new option

Hey,

in one of my projects i used velocity(.ui) to animate some texts and images IN/OUT based on the scroll position.
This works great, if i set the element to opacity:0; and animate it IN with $elem.velocity("transition.slideUpIn").
But when i animate the element out the other content jump up. Not very nice.

To fix that problem i added the option opacity: true/false;. On true the out-animation will not reset the css of the element to opacity:1; display:none;

Example of the problem and the new option:
http://codepen.io/anon/pen/JyroK