jquery+css实现黑洞粒子穿梭动画效果代码
代码语言:html
所属分类:粒子
代码描述:jquery+css实现黑洞粒子穿梭动画效果代码,点击左键试试效果。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
body, html {
height: 100%;
}
body {
height: 100%;
background-color: #191919;
}
#blackhole {
height: 100%;
width: 100%;
position: relative;
display: flex;
}
.centerHover {
width: 255px;
height: 255px;
background-color: transparent;
border-radius: 50%;
position: absolute;
left: 50%;
top: 50%;
margin-top: -128px;
margin-left: -128px;
z-index: 2;
cursor: pointer;
line-height: 255px;
text-align: center;
transition: all 500ms;
}
.centerHover.open {
opacity: 0;
pointer-events: none;
}
.centerHover:hover span {
color: #DDD;
}
.centerHover:hover span:before {
background-color: #DDD;
}
.centerHover:hover span:after {
background-color: #DDD;
}
.centerHover span {
color: #666;
font-family: serif;
font-size: 18px;
position: relative;
transition: all 500ms;
}
.centerHover span:before {
content: "";
display: inline-block;
height: 1px;
width: 16px;
margin-right: 12px;
margin-bottom: 4px;
background-color: #666;
transition: all 500ms;
}
.centerHover span:after {
content: "";
display: inline-block;
height: 1px;
width: 16px;
margin-left: 12px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0