canvas穿越街区动画效果

代码语言:html

所属分类:动画

代码描述:canvas穿越街区动画效果

代码标签: 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
body
{
    background: #222;
    margin: 0;
    overflow: hidden;
}
canvas
{
    background: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
</style>

</head>

<body>
<canvas id=c width=1920 height=1080>

<script >
// Dwitter Shim by Frank Force 2020
// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

function u(t) {// dwitter code goes here

  // https://www.dwitter.net/d/18759
  for (k = i = 802; i; x.fillRect(b ? 940 - r / 2 - (e ? e * 2 - 3 : S(m)) * r / .8 : 2e3 * S(i), b ? 640 + r * (!e || C(m)) : i * 13 % k, r = i-- < k ? b ? r : i % 5 + 1 : 1e9, r)) m = i + t * 120 ^ k, r = 1e7 / i / i,.........完整代码请登录后点击上方下载按钮下载查看

网友评论0