Skip to content

Instantly share code, notes, and snippets.

View uryu-myao's full-sized avatar
⛩️
Charging

URYU uryu-myao

⛩️
Charging
View GitHub Profile
@uryu-myao
uryu-myao / app.js
Created November 6, 2018 09:25
HEADER SCROLLED
const HEADER = (function () {
function scrollingSwitch() {
let Page = document.getElementById('whole'),
headerHeight = 185
if (document.body.scrollTop >= headerHeight ||
document.documentElement.scrollTop > headerHeight) {
Page.classList.add('headerPoint')