10 years later #1
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;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2e100f72a90d9b29fdd1a053059631b8644d91dd
|
||||
Subproject commit 9f3797f6516a63101fb8ebd23ab8229053ec57b6
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="pos_rel">
|
||||
<nav class="nav_page_meta js_">
|
||||
<ul>
|
||||
<li class="js_scrolltop hide">
|
||||
<li class="js_scrolltop di_none">
|
||||
<a href="#begin" class="a_button_meta">
|
||||
<div class="sprite_img demo__sprite_up"></div>
|
||||
{# <img src="{{ pageBase }}art/up.png" alt="" width="32" height="64"> #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue