流星效果
来源:互联网 发布:惠州狼雨seo 编辑:程序博客网 时间:2024/04/29 23:49
流星划过的效果
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title></title> <style> html,body { width: 100%; height: 100%; margin: 0; background:#444444; } .space { width: 235px; height: 280px; margin:150px; background: #121212; float:left; overflow: hidden; } .space:hover .star { display: block; width: 0px; height: 0px; border-radius: 50%; background: #fff; top: -50px; left:200px; position: relative; transform-origin: 100% 0; animation: star-ani 6s infinite ease-out; box-shadow: 0 0 0px 0px rgba(255, 255, 255, .3); opacity: 0; z-index: 2; } .space:hover .star:after { content: ''; display: block; top: -10px; left: 200px; border: 0px solid #fff; border-width: 0px 90px 3px 90px; border-color: transparent transparent transparent #fff; transform: rotate(-45deg) translate3d(1px, 3px, 0); box-shadow: 0 0 1px 0 rgba(255, 255, 255, .1); transform-origin: 0% 100%; animation: shooting-ani 1s infinite ease-out; } .space:hover .star1 { top: -10px; left: 300px; background: #fff; animation-delay: 0.5s; -webkit-animation-delay:0.5s; -moz-animation-delay: 0.5s; } .space:hover .star1:after { border-color: transparent transparent transparent #fff; animation-delay: 0.5s; -webkit-animation-delay:0.5s; -moz-animation-delay: 0.5s; } .space:hover .star2 { top: 100px; left: 200px; background: #fff; animation-delay: 0s; -webkit-animation-delay:0s; -moz-animation-delay: 0s; } .space:hover .star2:after { border-color: transparent transparent transparent #fff; animation-delay: 0; -webkit-animation-delay:0s; -moz-animation-delay: 0s; } .space:hover .star3 { top: -10px; left: 100px; background: #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; } .space:hover .star3:after { border-color: transparent transparent transparent #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay:1.5s; } .space:hover .star4 { top: 100px; left: 250px; background: #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; } .space:hover .star4:after { border-color: transparent transparent transparent #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay:1.5s; } .space:hover .star5 { top: 200px; left: 250px; background: #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; } .space:hover .star5:after { border-color: transparent transparent transparent #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; } .space:hover .star6 { top: -10px; left: 100px; background: #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; } .space:hover .star6:after { border-color: transparent transparent transparent #fff; animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; } .space:hover .star7 { top: 100px; left: 200px; background: #fff; animation-delay: 3s; -webkit-animation-delay:3s; -moz-animation-delay: 3s; } .space:hover .star7:after { border-color: transparent transparent transparent #fff; animation-delay: 3s; -webkit-animation-delay:3s; -moz-animation-delay: 3s; } .space:hover .star13 { top: -10px; left: 210px; background: #fff; animation-delay: 3s; -webkit-animation-delay:3s; -moz-animation-delay: 3s; } .space:hover .star13:after { border-color: transparent transparent transparent #fff; animation-delay: 3s; -webkit-animation-delay:3s; -moz-animation-delay: 3s; } .space:hover .star14 { top: -100px; left: 150px; background: #fff; animation-delay: 2s; -webkit-animation-delay:2s; -moz-animation-delay: 2s; } .space:hover .star14:after { border-color: transparent transparent transparent #fff; animation-delay: 2s; -webkit-animation-delay:2s; -moz-animation-delay: 2s; } .space:hover .star15 { top: 200px; left: 250px; background: #fff; animation-delay: 2.5s; -webkit-animation-delay:2.5s; -moz-animation-delay: 2.5s; } .space:hover .star15:after { border-color: transparent transparent transparent #fff; animation-delay: 2.5s; -webkit-animation-delay:2.5s; -moz-animation-delay: 2.5s; } .space:hover .star8 { top: -10px; left: 100px; background: #fff; animation-delay: 3s; -webkit-animation-delay: 3s; -moz-animation-delay: 3s; } .space:hover .star8:after { border-color: transparent transparent transparent #fff; animation-delay: 3s; -webkit-animation-delay: 3s; -moz-animation-delay:3s; } .space:hover .star9 { top: 100px; left: 250px; background: #fff; animation-delay: 4s; -webkit-animation-delay: 4s; -moz-animation-delay: 4s; } .space:hover .star9:after { border-color: transparent transparent transparent #fff; animation-delay: 4s; -webkit-animation-delay: 4s; -moz-animation-delay:4s; } .space:hover .star10 { top: 200px; left: 250px; background: #fff; animation-delay: 5s; -webkit-animation-delay: 5s; -moz-animation-delay: 5s; } .space:hover .star10:after { border-color: transparent transparent transparent #fff; animation-delay: 5s; -webkit-animation-delay: 5s; -moz-animation-delay: 5s; } .space:hover .star11 { top: -10px; left: 100px; background: #fff; animation-delay: 5s; -webkit-animation-delay: 5s; -moz-animation-delay: 5s; } .space:hover .star11:after { border-color: transparent transparent transparent #fff; animation-delay: 5s; -webkit-animation-delay: 5s; -moz-animation-delay: 5s; } .space:hover .star12 { top: -10px; left: 100px; background: #fff; animation-delay: 6s; -webkit-animation-delay: 6s; -moz-animation-delay: 6s; } .space:hover .star12:after { border-color: transparent transparent transparent #fff; animation-delay: 6s; -webkit-animation-delay: 6s; -moz-animation-delay: 6s; } @keyframes star-ani { 0% { opacity: 0; transform: scale(0) rotate(0) translate3d(0, 0, 0); -webkit-transform: scale(0) rotate(0) translate3d(0, 0, 0); -moz-transform: scale(0) rotate(0) translate3d(0, 0, 0); } 50% { opacity: 1; transform: scale(1) rotate(0) translate3d(-300px, 300px, 0); -webkit-transform: scale(1) rotate(0) translate3d(-300px, 300px, 0); -moz-transform: scale(1) rotate(0) translate3d(-300px, 300px, 0); } 100% { opacity: 0; transform: scale(1) rotate(0) translate3d(-400px, 300px, 0); -webkit-transform: scale(1) rotate(0) translate3d(-400px, 400px, 0); -moz-transform: scale(1) rotate(0) translate3d(-400px, 400px, 0); } } </style></head><body> <div class="space"> <div class="star"></div> <div class="star star1"></div> <div class="star star2"></div> <div class="star star3"></div> <div class="star star4"></div> <div class="star star5"></div> <div class="star star6"></div> <div class="star star7"></div> <div class="star star8"></div> <div class="star star9"></div> <div class="star star10"></div> <div class="star star11"></div> <div class="star star12"></div> <div class="star star13"></div> <div class="star star14"></div> <div class="star star15"></div> </div></body></html>
阅读全文
0 0
- 流星效果
- Cocos2dx 流星效果实现
- cocos2dx流星效果
- Android 流星效果的实现
- 弧形流星拖尾效果实现
- 流星寄语
- 流星人生
- LA3905流星
- 流星语
- 郑钧-流星
- 6 cocos2dx粒子效果,类图关系,系统原生粒子和自定义粒子效果,粒子编译器软件,爆炸粒子效果,烟花效果,火焰效果,流星效果,漩涡粒子效果,雪花效果,烟雾效果,太阳效果,下雨效果
- 爱似流星
- 爱似流星-杨紫琼
- 我心里的流星...
- 流星陨落,蔷薇花开
- 流星与恒星
- 女人与流星
- 流星的秘密
- [Chrome] Google Chrome 浏览器快捷键
- Python使用spark时出現版本不同的错误
- socket通讯工具类
- ORACLE的char、nchar、varchar、varchar2、nvarchar2的区别
- redis安装配置
- 流星效果
- Android开源框架GreenDao3.0使用纪要
- 断点续传下载原理实现
- (转)在Fragment中OnActivityResult方法中接收Activity中返回的值
- Unity3D工程优化(2017版)
- java中有三种移位运算符
- 商城项目--全选,反选 vue2.x+JQ代码(俩种实现方式)
- Linux中Nginx的安装
- js校验身份证