# October 31, 2019

# Attempting Adobe account migration

  • fine.

# HLF Claims adjustment

# Discussed page speed improvement opportunities for PGPro

# VNT MelF white boarded page structure and animation strategies.

Some basic scroll code

var header = document.getElementById('header');

window.addEventListener('scroll', scrollWatcher);
window.addEventListener('resize', resizeWatcher);

function scrollWatcher() {
  if ((header.offsetTop*0.3) <= window.scrollY) {
    // header, under the splash, is 100vh from the top, so let's say when we're at 30vh, is when we'll instate the top styles
    console.log('hitHeader')
    requestAnimationFrame(hitHeader);
    if (window.scrollY >= content.offsetTop) {
      // if we scroll to the content, run hit content
      console.log('hitContent')
      requestAnimationFrame(hitContent);
    }
  } else {
    // otherwise we'll assume we're at the header
    requestAnimationFrame(backToTop);
  }
}

function resizeWatcher() {
  console.log('resize');
  requestAnimationFrame(adjustDashesWidth);
}

function hitHeader() {
  bigB.classList.remove('b-black');
  bigB.classList.remove('big-b--scaled');
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Last Updated: 11/3/2019, 5:08:58 PM