class Scrolling {
offset = null;
scrolls() {
const isOffset = pageYOffset > 100 ? "offsetOne" : "offsetSecond";
if (this.offset != isOffset) {
this[isOffset]({
registion: document.querySelector("#registion"),
vhod: document.querySelector("#vhod"),
});
}
this.offset = isOffset;
}
........