That header image: Is it animated when window.onscroll() is fired? I find one reference in the code to e.addEventListener("scroll", v, !1) which I guess then fires the function v which does:
v = function() {
var t = parseInt(e.pageYOffset, 10);
t = Math.min(u, t), t !== d && (d = t, t > 0 ? f(t * m, 1) : f(t / -6, -1 * t / u + 1), t >= u - 35 ? s(p, E) : i(p, E))
Could someone point me to some unminimized version of this code, I really like it?
Off-topic of the off-topic but can you explain to me what's cool about it? I'm not a web developer so all I see is that the image doesn't scroll off but appears to shrink. Genuinely (not a troll), can't think why that's useful though ...
I don't think it's useful in a technical sense, but it did catch my eye so much that I scrolled up and down a few times to watch it. Take that and stick it on a client demo and you might help secure another sale.
The effect is achieved by having a div with a specified height pushing down the article. As you scroll down the div naturally moves up with the rest of the content. The scroll event adjusts the position of the background image on that div, relative to the amount of scroll, until it stops when it goes off the screen.
That header image: Is it animated when window.onscroll() is fired? I find one reference in the code to e.addEventListener("scroll", v, !1) which I guess then fires the function v which does:
v = function() { var t = parseInt(e.pageYOffset, 10); t = Math.min(u, t), t !== d && (d = t, t > 0 ? f(t * m, 1) : f(t / -6, -1 * t / u + 1), t >= u - 35 ? s(p, E) : i(p, E))
Could someone point me to some unminimized version of this code, I really like it?