feat: Reflect style changes in hippie-style

- Update submodule
- Rename changed classes
This commit is contained in:
sthag 2025-05-02 14:05:33 +02:00
parent 58cb0eba2c
commit 37986e7b4b
3 changed files with 5 additions and 5 deletions

View file

@ -33,20 +33,20 @@ function HippieScroll($tp, $dn) {
let initLeft = false;
const initY = hippie.screen.vh;
$tp.addClass('hide');
$tp.addClass('di_none');
// Check scroll position and toggle element
this.check = function () {
hippie.screen.y = Math.min($(document).scrollTop(), document.documentElement.scrollTop);
if (hippie.screen.y > initY) {
if (!initLeft) {
$tp.removeClass('hide');
$tp.removeClass('di_none');
console.info('Initial viewport left');
}
initLeft = true;
} else {
if (initLeft) {
$tp.addClass('hide');
$tp.addClass('di_none');
console.info('Initial viewport entered');
}
initLeft = false;