Skip to content

Instantly share code, notes, and snippets.

View andrey-helldar's full-sized avatar
🧙‍♂️
It's never too late to get better

Andrey Helldar andrey-helldar

🧙‍♂️
It's never too late to get better
View GitHub Profile
@andrey-helldar
andrey-helldar / flyHeader.js
Created January 15, 2019 07:56
fly header
$.fn.flyHead = function () {
function t() {
let t;
'absolute' == i.css('position') ? t = -a.height : (t = parseInt(i.css('top')) - n.step, t = -t > a.height ? -a.height : t), i.css({
top: t,
position: 'fixed'
})
}
function o() {