摘要:
效果:原理: 用canvas逐行输出文字,然后让背景颜色逐渐加深,再随机中断某些列。代码:HTML:CSS:canvas {display: block;}JS:var c = document.getElementById("c");var ctx = c.getContext("2d");//全屏c.height = window.innerHeight;c.width = window.innerWidth;//文字var txts = "0123456789";//转为数组txts = txts.split("&qu 阅读全文