canvas交互水滴抖动动画效果
代码语言:html
所属分类:动画
代码描述:canvas交互水滴抖动动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
border: 0;
}
html,
body {
height: 100%;
}
body {
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
overflow: hidden;
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
background-image: -webkit-gradient(linear, left top, right top, from(#ffc3a0), to(#ffafbd));
background-image: linear-gradient(to right, #ffc3a0 0%, #ffafbd 100%);
}
canvas {
height: 100%;
width: 100%;
}
.copy {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
text-align: center;
pointer-events: none;
z-index: 100;
}
.copy h1 {
margi.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0