This commit is contained in:
mynah
2019-03-12 19:20:30 -06:00
parent 956dbdb909
commit fa0fbe9eb4
49 changed files with 77 additions and 205 deletions

11
public/home/tv/d3_tras.js vendored Executable file
View 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 +")");
});