feat: Change global mouse interaction
- Add .body_intro to intro screen - Change mouse over identifier - Introduce HippieFade as global function - Replace #js_mob with HippieFade - Remove old partial
This commit is contained in:
parent
65d80fcbc4
commit
ac8f55a7c9
8 changed files with 62 additions and 40 deletions
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
<body class="{{ bodyClass }}">
|
||||
{{ log.log('BODY start') }}
|
||||
{% include "hippie/partials/_body_hover.njk" %}
|
||||
{% include "hippie/partials/_body_nav.njk" %}
|
||||
<div id="root">
|
||||
{% include "hippie/partials/_header.njk" %}
|
||||
|
|
@ -54,6 +53,10 @@
|
|||
let scrollUi = new HippieScroll($('.js_scrolltop'), $('.js_scrolldown'));
|
||||
let helpUi = new HippieMeta($('.js_showmeta'), $('.js_pop'));
|
||||
|
||||
if (viewHover) {
|
||||
let fadeUi = new HippieFade(document.getElementById('js-toggle-fade'), true);
|
||||
}
|
||||
|
||||
document.addEventListener('scroll', () => {
|
||||
scrollUi.check();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue