feat: Reflect style changes in hippie-style
- Update submodule - Rename changed classes
This commit is contained in:
parent
58cb0eba2c
commit
37986e7b4b
3 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue