gulp stuff
This commit is contained in:
parent
5746467035
commit
25e934452d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user