gulp stuff

This commit is contained in:
Martin Donnelly 2017-08-05 23:41:26 +01:00
parent 5746467035
commit 25e934452d

View File

@ -13,3 +13,26 @@ $('#btn-shorten').on('click', function(){
});
});
(function($) {
$.extend($.fn, {
fadeIn: function(ms) {
if(typeof(ms) === 'undefined') ms = 500;
$(this).css({ display: 'block', opacity: 0 }).animate({ opacity: 1 }, ms);
return this;
},
fadeOut: function(ms)
{
if(typeof(ms) === 'undefined') ms = 500;
$(this).css({ opacity: 1 }).animate({ opacity: 0 }, ms, 'linear', function() {
$(this).css('display', 'none');
});
return this;
}
});
})(Zepto);