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;
|
let initLeft = false;
|
||||||
const initY = hippie.screen.vh;
|
const initY = hippie.screen.vh;
|
||||||
|
|
||||||
$tp.addClass('hide');
|
$tp.addClass('di_none');
|
||||||
|
|
||||||
// Check scroll position and toggle element
|
// Check scroll position and toggle element
|
||||||
this.check = function () {
|
this.check = function () {
|
||||||
hippie.screen.y = Math.min($(document).scrollTop(), document.documentElement.scrollTop);
|
hippie.screen.y = Math.min($(document).scrollTop(), document.documentElement.scrollTop);
|
||||||
if (hippie.screen.y > initY) {
|
if (hippie.screen.y > initY) {
|
||||||
if (!initLeft) {
|
if (!initLeft) {
|
||||||
$tp.removeClass('hide');
|
$tp.removeClass('di_none');
|
||||||
console.info('Initial viewport left');
|
console.info('Initial viewport left');
|
||||||
}
|
}
|
||||||
initLeft = true;
|
initLeft = true;
|
||||||
} else {
|
} else {
|
||||||
if (initLeft) {
|
if (initLeft) {
|
||||||
$tp.addClass('hide');
|
$tp.addClass('di_none');
|
||||||
console.info('Initial viewport entered');
|
console.info('Initial viewport entered');
|
||||||
}
|
}
|
||||||
initLeft = false;
|
initLeft = false;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2e100f72a90d9b29fdd1a053059631b8644d91dd
|
Subproject commit 9f3797f6516a63101fb8ebd23ab8229053ec57b6
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="pos_rel">
|
<div class="pos_rel">
|
||||||
<nav class="nav_page_meta js_">
|
<nav class="nav_page_meta js_">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="js_scrolltop hide">
|
<li class="js_scrolltop di_none">
|
||||||
<a href="#begin" class="a_button_meta">
|
<a href="#begin" class="a_button_meta">
|
||||||
<div class="sprite_img demo__sprite_up"></div>
|
<div class="sprite_img demo__sprite_up"></div>
|
||||||
{# <img src="{{ pageBase }}art/up.png" alt="" width="32" height="64"> #}
|
{# <img src="{{ pageBase }}art/up.png" alt="" width="32" height="64"> #}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue