restruc
This commit is contained in:
11
public/home/tv/d3_tras.js
vendored
Executable file
11
public/home/tv/d3_tras.js
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
|
||||
var h=window.innerHeight;
|
||||
d3.select(window).on("scroll",function(){
|
||||
var t = d3.select('#trs').node().getBoundingClientRect().top;
|
||||
var trans= -0.2 + Math.round(100*(h-t)/h)/100;
|
||||
d3.select('.grid').style("background-color","rgba(0,0,0,"+ trans +")");
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user