A simple, jQuery plugin for fancy hiding.
$(...).fadeUp();
// or
$(...).fadeUp(function(collapsed) {
// Do things
});
// or
$(...).fadeUp({
duration: 5000,
easing: 'swing'
}, function(collapsed) {
// Do things
});
<button type='button' class='btn'>Go</button>
<div class='content'>
...
</div>
<script>
$(function() {
$('.btn').on('click', function() {
$('.content').fadeUp();
});
});
</script>
Install via bower, npm or copy from the dist
directory.
bower install fadeup
npm install fadeup
Chrome, Safari, Firefox, IE 9+
Velocity will be used if available. You don't have to do anything, if it is there, it uses it. #winning.
Please submit any issues here.
Hit me up on twitter @sturdynut