<!--
<img src="./bg.jpg" alt="QWeather" width="907" height="570"/>
<style>
img {
opacity: 0.9;
}
</style>
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Only CSS: Shooting Star</title>
<style>
body {
background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
height: 100vh;
overflow: hidden;
display: flex;
font-family: "Anton", sans-serif;
justify-content: center;
align-items: center;
}
.night {
position: relative;
width: 100%;
height: 100%;
transform: rotateZ(45deg);
}
.shooting_star {
position: absolute;
left: 50%;
top: 50%;
height: 2px;
background: linear-gradient(-45deg, #5f91ff, rgba(0, 0, 255, 0));
border-radius: 999px;
filter: drop-shadow(0 0 6px #699bff);
-webkit-animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
}
.shooting_star::before {
content: "";
position: absolute;
top: calc(50% - 1px);
right: 0;
height: 2px;
background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
transform: translateX(50%) rotateZ(45deg);
border-radius: 100%;
-webkit-animation: shining 3000ms ease-in-out infinite;
animation: shining 3000ms ease-in-out infinite;
}
.shooting_star::after {
content: "";
position: absolute;
top: calc(50% - 1px);
right: 0;
height: 2px;
background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
transform: translateX(50%) rotateZ(45deg);
border-radius: 100%;
-webkit-animation: shining 3000ms ease-in-out infinite;
animation: shining 3000ms ease-in-out infinite;
transform: translateX(50%) rotateZ(-45deg);
}
.shooting_star:nth-child(1) {
top: calc(50% - -4px);
left: calc(50% - 248px);
-webkit-animation-delay: 3060ms;
animation-delay: 3060ms;
}
.shooting_star:nth-child(1)::before, .shooting_star:nth-child(1)::after {
-webkit-animation-delay: 3060ms;
animation-delay: 3060ms;
}
.shooting_star:nth-child(2) {
top: calc(50% - 180px);
left: calc(50% - 166px);
-webkit-animation-delay: 4693ms;
animation-delay: 4693ms;
}
.shooting_star:nth-child(2)::before, .shooting_star:nth-child(2)::after {
-webkit-animation-delay: 4693ms;
animation-delay: 4693ms;
}
.shooting_star:nth-child(3) {
top: calc(50% - -88px);
left: calc(50% - 136px);
-webkit-animation-delay: 1178ms;
animation-delay: 1178ms;
}
.shooting_star:nth-child(3)::before, .shooting_star:nth-child(3)::after {
-webkit-animation-delay: 1178ms;
animation-delay: 1178ms;
}
.shooting_star:nth-child(4) {
top: calc(50% - 92px);
left: calc(50% - 92px);
-webkit-animation-delay: 9285ms;
animation-delay: 9285ms;
}
.shooting_star:nth-child(4)::before, .shooting_star:nth-child(4)::after {
-webkit-animation-delay: 9285ms;
animation-delay: 9285ms;
}
.shooting_star:nth-child(5) {
top: calc(50% - 89px);
left: calc(50% - 92px);
-webkit-animation-delay: 5475ms;
animation-delay: 5475ms;
}
.shooting_star:nth-child(5)::before, .shooting_star:nth-child(5)::after {
-webkit-animation-delay: 5475ms;
animation-delay: 5475ms;
}
.shooting_star:nth-child(6) {
top: calc(50% - -164px);
left: calc(50% - 27px);
-webkit-animation-delay: 9220ms;
animation-delay: 9220ms;
}
.shooting_star:nth-child(6)::before, .shooting_star:nth-child(6)::after {
-webkit-animation-delay: 9220ms;
animation-delay: 9220ms;
}
.shooting_star:nth-child(7) {
top: calc(50% - -136px);
left: calc(50% - 243px);
-webkit-animation-delay: 7942ms;
animation-delay: 7942ms;
}
.shooting_star:nth-child(7)::before, .shooting_star:nth-child(7)::after {
-webkit-animation-delay: 7942ms;
animation-delay: 7942ms;
}
.shooting_star:nth-child(8) {
top: calc(50% - 174px);
left: calc(50% - 75px);
-webkit-animation-delay: 8312ms;
animation-delay: 8312ms;
}
.shooting_star:nth-child(8)::before, .shooting_star:nth-child(8)::after {
-webkit-animation-delay: 8312ms;
animation-delay: 8312ms;
}
.shooting_star:nth-child(9) {
top: calc(50% - 138px);
left: calc(50% - 281px);
-webkit-animation-delay: 6475ms;
animation-delay: 6475ms;
}
.shooting_star:nth-child(9)::before, .shooting_star:nth-child(9)::after {
-webkit-animation-delay: 6475ms;
animation-delay: 6475ms;
}
.shooting_star:nth-child(10) {
top: calc(50% - 25px);
left: calc(50% - 25px);
-webkit-animation-delay: 7118ms;
animation-delay: 7118ms;
}
.shooting_star:nth-child(10)::before, .shooting_star:nth-child(10)::after {
-webkit-animation-delay: 7118ms;
animation-delay: 7118ms;
}
.shooting_star:nth-child(11) {
top: calc(50% - 184px);
left: calc(50% - 198px);
-webkit-animation-delay: 8570ms;
animation-delay: 8570ms;
}
.shooting_star:nth-child(11)::before, .shooting_star:nth-child(11)::after {
-webkit-animation-delay: 8570ms;
animation-delay: 8570ms;
}
.shooting_star:nth-child(12) {
top: calc(50% - -194px);
left: calc(50% - 283px);
-webkit-animation-delay: 1026ms;
animation-delay: 1026ms;
}
.shooting_star:nth-child(12)::before, .shooting_star:nth-child(12)::after {
-webkit-animation-delay: 1026ms;
animation-delay: 1026ms;
}
.shooting_star:nth-child(13) {
top: calc(50% - 169px);
left: calc(50% - 42px);
-webkit-animation-delay: 4957ms;
animation-delay: 4957ms;
}
.shooting_star:nth-child(13)::before, .shooting_star:nth-child(13)::after {
-webkit-animation-delay: 4957ms;
animation-delay: 4957ms;
}
.shooting_star:nth-child(14) {
top: calc(50% - -114px);
left: calc(50% - 139px);
-webkit-animation-delay: 5748ms;
animation-delay: 5748ms;
}
.shooting_star:nth-child(14)::before, .shooting_star:nth-child(14)::after {
-webkit-animation-delay: 5748ms;
animation-delay: 5748ms;
}
.shooting_star:nth-child(15) {
top: calc(50% - 140px);
left: calc(50% - 283px);
-webkit-animation-delay: 2809ms;
animation-delay: 2809ms;
}
.shooting_star:nth-child(15)::before, .shooting_star:nth-child(15)::after {
-webkit-animation-delay: 2809ms;
animation-delay: 2809ms;
}
.shooting_star:nth-child(16) {
top: calc(50% - 72px);
left: calc(50% - 88px);
-webkit-animation-delay: 8661ms;
animation-delay: 8661ms;
}
.shooting_star:nth-child(16)::before, .shooting_star:nth-child(16)::after {
-webkit-animation-delay: 8661ms;
animation-delay: 8661ms;
}
.shooting_star:nth-child(17) {
top: calc(50% - 40px);
left: calc(50% - 273px);
-webkit-animation-delay: 8037ms;
animation-delay: 8037ms;
}
.shooting_star:nth-child(17)::before, .shooting_star:nth-child(17)::after {
-webkit-animation-delay: 8037ms;
animation-delay: 8037ms;
}
.shooting_star:nth-child(18) {
top: calc(50% - 176px);
left: calc(50% - 27px);
-webkit-animation-delay: 826ms;
animation-delay: 826ms;
}
.shooting_star:nth-child(18)::before, .shooting_star:nth-child(18)::after {
-webkit-animation-delay: 826ms;
animation-delay: 826ms;
}
.shooting_star:nth-child(19) {
top: calc(50% - -164px);
left: calc(50% - 229px);
-webkit-animation-delay: 1822ms;
animation-delay: 1822ms;
}
.shooting_star:nth-child(19)::before, .shooting_star:nth-child(19)::after {
-webkit-animation-delay: 1822ms;
animation-delay: 1822ms;
}
.shooting_star:nth-child(20) {
top: calc(50% - 85px);
left: calc(50% - 161px);
-webkit-animation-delay: 5305ms;
animation-delay: 5305ms;
}
.shooting_star:nth-child(20)::before, .shooting_star:nth-child(20)::after {
-webkit-animation-delay: 5305ms;
animation-delay: 5305ms;
}
@-webkit-keyframes tail {
0% {
width: 0;
}
30% {
width: 100px;
}
100% {
width: 0;
}
}
@keyframes tail {
0% {
width: 0;
}
30% {
width: 100px;
}
100% {
widt
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Matlab课程设计大作业_基于和风天气API开发天气管理查询系统+项目说明.7z Matlab 天气查询软件 Matlab课程设计大作业 使用APP Designer设计 由于天气查询过程中使用了和风天气API(和风天气开发服务 ~ 强大、丰富的天气数据服务 (qweather.com)),web请求过程中需要用到和风天气个人账号的key,我在代码中将其设为空值,具体是46行app的properities设置部分
资源推荐
资源详情
资源评论
收起资源包目录
Matlab课程设计大作业_基于和风天气API开发天气管理查询系统+项目说明.7z (8个子文件)
Matlab课程设计大作业_基于和风天气API开发天气管理查询系统+项目说明
clock.html 1KB
main.mlapp 189KB
title.html 326B
text.html 65B
border_small.html 551B
img.html 9KB
border.html 552B
项目说明.md 1KB
共 8 条
- 1
资源评论
Make程序设计
- 粉丝: 6798
- 资源: 3575
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功