canvas实现粒子泡泡汇聚拼凑成文字鼠标悬停避让动画效果代码
代码语言:html
所属分类:粒子
代码描述:canvas实现粒子泡泡汇聚拼凑成文字鼠标悬停避让动画效果代码
代码标签: canvas 粒子 泡泡 汇聚 拼凑 文字 鼠标 悬停 避让 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background-color: #000000;
margin: 0;
overflow: hidden;
font-size: 0;
}
body section {
background: url(../img/bcg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
width: 100vw;
height: 100vh;
font-weight: 700;
}
body section canvas {
width: 100vw;
height: 100vh;
}.........完整代码请登录后点击上方下载按钮下载查看
网友评论0