<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>纯CSS3实现发光按钮特效DEMO演示</title>
<style>
body {
background: #333333 url(css/classy_fabric.png);
margin: 0;
}
#c {
position: absolute;
top: 50%;
left: 50%;
margin-left: -355px;
}
.s {
position: relative;
border-radius: 50%;
background: #333333;
float: left;
margin-left: 20px;
box-shadow: inset -1px 1px 4px 2px #444, inset 1px -1px 4px 2px #222;
-webkit-transition: all 1s;
-moz-transition: all 1s;
transition: all 1s;
}
.s:nth-child(n):hover {
-webkit-animation: bs2 linear 1s 1s infinite, bs2-in 1s;
-moz-animation: bs2 linear 1s 1s infinite, bs2-in 1s;
animation: bs2 linear 1s 1s infinite, bs2-in 1s;
}
.s:nth-child(1) {
width: 20px;
height: 20px;
margin-top: -10px;
-webkit-animation: bs linear 2s 0.5s infinite;
-moz-animation: bs linear 2s 0.5s infinite;
animation: bs linear 2s 0.5s infinite;
}
.s:nth-child(2) {
width: 30px;
height: 30px;
margin-top: -15px;
-webkit-animation: bs linear 2s 0.7s infinite;
-moz-animation: bs linear 2s 0.7s infinite;
animation: bs linear 2s 0.7s infinite;
}
.s:nth-child(3) {
width: 40px;
height: 40px;
margin-top: -20px;
-webkit-animation: bs linear 2s 0.9s infinite;
-moz-animation: bs linear 2s 0.9s infinite;
animation: bs linear 2s 0.9s infinite;
}
.s:nth-child(4) {
width: 50px;
height: 50px;
margin-top: -25px;
-webkit-animation: bs linear 2s 1.1s infinite;
-moz-animation: bs linear 2s 1.1s infinite;
animation: bs linear 2s 1.1s infinite;
}
.s:nth-child(5) {
width: 60px;
height: 60px;
margin-top: -30px;
-webkit-animation: bs linear 2s 1.3s infinite;
-moz-animation: bs linear 2s 1.3s infinite;
animation: bs linear 2s 1.3s infinite;
}
.s:nth-child(6) {
width: 70px;
height: 70px;
margin-top: -35px;
-webkit-animation: bs linear 2s 1.5s infinite;
-moz-animation: bs linear 2s 1.5s infinite;
animation: bs linear 2s 1.5s infinite;
}
.s:nth-child(7) {
width: 60px;
height: 60px;
margin-top: -30px;
-webkit-animation: bs linear 2s 1.7s infinite;
-moz-animation: bs linear 2s 1.7s infinite;
animation: bs linear 2s 1.7s infinite;
}
.s:nth-child(8) {
width: 50px;
height: 50px;
margin-top: -25px;
-webkit-animation: bs linear 2s 1.9s infinite;
-moz-animation: bs linear 2s 1.9s infinite;
animation: bs linear 2s 1.9s infinite;
}
.s:nth-child(9) {
width: 40px;
height: 40px;
margin-top: -20px;
-webkit-animation: bs linear 2s 2.1s infinite;
-moz-animation: bs linear 2s 2.1s infinite;
animation: bs linear 2s 2.1s infinite;
}
.s:nth-child(10) {
width: 30px;
height: 30px;
margin-top: -15px;
-webkit-animation: bs linear 2s 2.3s infinite;
-moz-animation: bs linear 2s 2.3s infinite;
animation: bs linear 2s 2.3s infinite;
}
.s:nth-child(11) {
width: 20px;
height: 20px;
margin-top: -10px;
-webkit-animation: bs linear 2s 2.5s infinite;
-moz-animation: bs linear 2s 2.5s infinite;
animation: bs linear 2s 2.5s infinite;
}
@-webkit-keyframes bs {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
50% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #1affff;
}
100% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
}
@-moz-keyframes bs {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
50% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #1affff;
}
100% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
}
@-o-keyframes bs {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
50% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #1affff;
}
100% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
}
@keyframes bs {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
50% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #1affff;
}
100% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #b2ff1a;
}
}
@-webkit-keyframes bs2-in {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@-moz-keyframes bs2-in {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@-o-keyframes bs2-in {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@keyframes bs2-in {
0% {
box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@-webkit-keyframes bs2 {
0% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
50% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@-moz-keyframes bs2 {
0% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
50% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@-o-keyframes bs2 {
0% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
50% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
@keyframes bs2 {
0% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
50% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;
}
100% {
box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;
}
}
</style>
<script src="js/prefixfree.min.js"></script>
</head>
<body>
<div style="text-align:center;clear:both;">
<script src="/gg_bd_ad_720x90.js" type="text/javascript"></script>
<script src="/follow.js" type="text/javascript"></script>
</div>
<div id='c'>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
<div class='s'></div>
</div>
<script src='http://codepen.io/assets/libs/fullpage/jquery.js'></script>
<script src="js/index.js"></script>
</body>
</html>
尽是远方
- 粉丝: 33
- 资源: 1万+
会员权益专享
最新资源
- 无感无刷电机驱动程序C源代码,代码编译正常通过且工作正确
- 权限设计模型(Shiro实现).rar
- 组织机构管理源码.rar
- STM32H743IIT6单片机 基于AT070TN83芯片的LTDC液晶驱动源码.zip
- STM32H743IIT6单片机 基于800x480分辨率LCD屏显示驱动触摸驱动 中文全字库例程源码.zip
- 5英寸寸RGB(800x480)液晶屏资料包括模块AD封装库+数据手册+硬件参考设计原理图.zip
- XCForStudyBin202303251715版本的工程
- 4.3寸RGB(800x480)液晶屏资料包括模块AD封装库+数据手册+硬件参考设计原理图.zip
- 4.3寸RGB(480x272)液晶屏资料包括模块AD封装库+数据手册+硬件参考设计原理图.zip
- 基于kotlin+tornadoFx的跨平台密码学工具箱.包含编解码,编码转换,加解密, 哈希,MAC,签名,大数运算,压缩,二
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



评论0