canvas情人节快乐长条生长动画效果代码

代码语言:html

所属分类:动画

代码描述:canvas情人节快乐长条生长动画效果代码

代码标签: 长条 生长 动画 效果

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

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
<style>
html {
  background-color: #000;
}
body,
html,
.happy-valentines {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.happy-valentines {
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  transition: all 1s ease;
  position: absolute;
  text-align: center;
  top: 100px;
  margin: -0.5em auto 0 auto;
  color: #ff81fc;
  -webkit-text-shadow: 0 -1px 1px #fff, 0 1px 1px #fff;
  -moz-text-shadow: 0 -1px 1px #fff, 0 1px 1px #fff;
  text-shadow: 0 -1px 1px #fff, 0 1px 1px #fff;
  font-family: 'La Belle Aurore', cursive;
  opacity: 0;
  font-size: 10em;
  -webkit-filter: blur(0.2em);
}
.happy-valentines:hover,
.start {
  opacity: 1;
  font-size: 2em;
  -webkit-filter: blur(0.02em);
  -moz-filter: blur(0.02em);
  filter: blur(0.02em);
}
.dribbble {
  position: fixed;
  display: block;
  right: 20px;
  bottom: 20px;
}
.dribbble img {
  display: block;
  height: 28px;
}
.twitter {
  position: fixed;
  display: block;
  right: 64px;
  bottom: 14px;
}
.twitter svg {
  width: 32px;
  height: 32px;
  fill: #1da1f2;
}
</style>




</head>

<body >
  <link href='https://fonts.googleapis.com/css?family=La+Belle+Aurore' rel='stylesheet' type='text/css'>
<canvas id="nCanvasRender"></canvas>
<div id="nValentinesText" class="happy-valentines start">
  Happy Valentines Day
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0