forked from github.com/GenderDysphoria.fyi
11 lines
241 B
JavaScript
11 lines
241 B
JavaScript
$(function () {
|
|
let active = false;
|
|
window.addEventListener('scroll', function () {
|
|
const state = window.scrollY > 10;
|
|
if (active !== state) {
|
|
$('header').toggleClass('active', state);
|
|
active = state;
|
|
}
|
|
});
|
|
});
|