落日海鸥(Seagulls)
落日海鸥
- 示例
- HTML
- CSS
更多有趣示例 尽在 知屋安砖社区
示例
HTML
.world.sunset.sun.bg- for (i = 0; i < 6; i++).wave.sea.sky.horizon.line.-left.line.-right- for (i = 0; i < 20; i++).birdposition.bird.wing.-left.wing.-right
CSS
body {background: #fff;height: 100vh;overflow: hidden;display: flex;justify-content: center;align-items: center;
}div {transform-style: preserve-3d;
}.world {perspective: 600px;
}.sun {position: absolute;top: calc(50% + 40px);left: calc(50% - 50px);width: 100px;height: 55px;border-radius: 100px 100px 0 0;background: linear-gradient(0deg, rgba(white, 0.3) 0%, rgba(white, 1) 100%);z-index: 999;filter: blur(4px) contrast(2);
}.bg {position: absolute;top: calc(50% - 150px);left: calc(50% - 400px);width: 800px;height: 300px;background: yellow;filter: blur(5px) contrast(100);
}.wave {position: absolute;top: calc(50% + 87px);left: calc(50% - 60px);width: 120px;height: 12px;background: #fff;border-radius: 100%;&:not(:first-child) {animation: wave 2000ms infinite linear; }&:nth-child(2) {animation-delay: -500ms;}&:nth-child(3) {animation-delay: -1000ms;}&:nth-child(4) {animation-delay: -1500ms;}&:nth-child(5) {animation-delay: -1500ms;}&:nth-child(6) {animation-delay: -2000ms;}
}@keyframes wave {0% {transform: translateY(0) sclae(1) rotateZ(0);}50% {transform: translateY(40px) scale(0.5) rotateZ(5deg);}100% {transform: translateY(30px) scale(0) rotateZ(-40deg);}
}.sea {position: absolute;top: calc(50% + 80px);left: calc(50% - 400px);width: 800px;height: 70px;background: rgba(blue, 0.5);background: radial-gradient(ellipse at top, rgba(white, 1) 0%, rgba(gold, 0.1) 10%, rgba(chocolate, 1) 100%);
}.sky {position: absolute;top: calc(50% - 150px);left: calc(50% - 400px);width: 800px;height: 240px;background: rgba(blue, 0.5);background: radial-gradient(ellipse at bottom, rgba(yellow, 1) 0%, rgba(khaki, 1) 15%, rgba(orange, 1) 100%);
}.horizon {position: absolute;top: 50%;width: 800px;height: 200px;border-radius: 100%;background: radial-gradient(ellipse at center, rgba(white, 0.4) 0%, rgba(white, 0) 70%);filter: blur(10px);
}.sunset {position: relative;width: 800px;height: 300px;overflow: hidden;border-radius: 7px;
}.line {position: absolute;top: calc(50%);left: calc(50% - 7px);width: 14px;height: calc(300px * 0.5);background: white;&.-left {transform: translateZ(300px) translateX(-70px) translateY(-50%);}&.-right {transform: translateZ(300px) translateX(70px) translateY(-50%);}
}.birdposition {position: absolute;top: calc(50% + 60px);left: calc(50% - 40px);@for $i from 0 through 100 {&:nth-of-type(#{$i}) {transform: translate(random(600) - 300px, random(200) - 150px) rotateZ(random(40) - 20deg);.bird {animation-duration: random(10000) + 5000ms;animation-delay: random(20000) * -1ms;$wingDelay: random(20000) * -1ms;.wing {animation-delay: $wingDelay;}}}}
}.bird {position: absolute;width: 80px;animation: fly 8s linear infinite;.wing {position: absolute;width: 50%;height: 20px;border-top: 4px solid black;border-radius: 100%;&.-left {transform-origin: 100% 50%;animation: wingLeft 0.8s cubic-bezier(0.445, 0.050, 0.550, 0.950) infinite alternate;}&.-right {right: 0;transform-origin: 0 50%;animation: wingRight 0.8s cubic-bezier(0.445, 0.050, 0.550, 0.950) infinite alternate;}}
}@keyframes fly {0% {opacity: 0;transform: translateZ(500px);}20% {opacity: 1;transform: translateZ(400px);}100% {transform: translateZ(0px) scale(0);}
}@keyframes wingLeft {0% {transform: rotateZ(30deg);}100% {transform: rotateZ(-20deg);}
}@keyframes wingRight {0% {transform: rotateZ(-30deg);}100% {transform: rotateZ(20deg);}
}
落日海鸥(Seagulls)相关推荐
- 电磁场与电磁波_您的大脑在电磁场上
电磁场与电磁波 We all simultaneously occupy the space above a giant celestial generator. In its outer core, ...
- 【运筹优化】SOA海鸥优化算法求解无约束多元函数最值(Java代码实现)
文章目录 前言 优化目标 求解结果 搜索过程可视化 Java算法代码 可视化代码 前言 本文以求解二元函数最小值为例,如果需要求解多元函数,只需要修改以下变量即可: varNum:变量维度数 ub和l ...
- F1.4大光圈专业相机-海鸥CF100
海鸥作为大家熟知的国内光学品牌,最为人津京乐道的应该就是胶片时代的双反相机以及单反相机.而重新回归到数码时代的海鸥,就给我们带来CF100这款注重性能的紧凑型便携相机,的确让我们眼前一亮. 有人说是松 ...
- 远去的背影与落日以及一对蒙古年轻夫妻
辉腾锡勒.早晨.阳光穿过栅栏,送走一个远去的背影. 骑马而去的背影使我的相机无法捕捉她真实的影象,那个地平线后面是什么? 鄂尔多斯.远去的背影,逐渐模糊,只有如往事的沙痕凝固且越来越清晰.我知道,在这 ...
- 上海鸥新:基于大数据的商场实时客流分析系统
公司介绍 上海鸥新软件有限公司专注于室内定位技术和客流统计与分析的研发,如室内定位引擎.客流统计与分析系统.在用户导入客流系统的同时,为商业零售实体店提供了网络覆盖.微信上网,定时定地点向客户进行精准 ...
- 智能优化算法:海鸥算法原理及Matlab代码
智能优化算法:海鸥算法原理及Matlab代码 文章导航 1. 算法原理 2. SOA算法流程 2.1 迁徙行为(exploration ability) 2.2 攻击行为(exploitation a ...
- 【智能优化算法】基于融合改进 Logistics 混沌和正弦余弦算子的自适应 t 分布海鸥算法求解单目标优化问题附matlab代码
1 简介 针对基本海鸥算法存在的缺陷,提出一种融合改进Logistics混沌和正弦余弦算子的自适应t分布海鸥算法(ISOA).首先,采用改进Logistics混沌映射初始化种群,使海鸥更加均匀地分布于 ...
- Gym 101350E Competitive Seagulls
题目大意: 两只海鸥轮流将白方格涂黑,每次能图连续的P个方格,谁涂最后一个就赢.P应满足: (1),L为当前最长的连续白色方格个数. (2)若P能去素数,则P只能取素数:否则取1. 现在输入开 ...
- GYM 101350E. Competitive Seagulls (博弈
E. Competitive Seagulls 题目描述 There are two seagulls playing a very peculiar game. First they line up ...
最新文章
- 启动Spark Shell,在Spark Shell中编写WordCount程序,在IDEA中编写WordCount的Maven程序,spark-submit使用spark的jar来做单词统计
- python的learn_Python_learn_1day
- hibernate注解方式来处理映射关系
- 数据统计告诉你,程序员是不是35岁就退休
- SpringMVC当中的 @Transactional(readOnly = true) 的作用
- 6004.ubuntu18.04移植qgroundcontrol地面站
- 菜鸟裹裹升级退换货:全程可见让商家物流纠纷率降半
- 树状数组相关应用之多叉树子树问题
- 深入解析Mysql 主从同步延迟原理及解决方案
- pcie inbound、outbound及EP、RC间的互相訪问
- ios笔试题算法_【2018年最新】iOS面试题之常见算法
- 全网首发:There is an incompatible JNA native library installed on this system/6.1.2/4.0.1
- centos7.0 配置mysql_Centos7.0配置MySQL主从服务器
- 深入浅出设计模式---6、装饰者模式
- 图书馆管理系统——借书操作
- 华中师范大学计算机考研论坛,2020年华中师范大学计算机考研经验分享
- office2018自动图文集_怎么才算工作里要求的“熟练使用office办公软件”?
- 渗透测试神器Burp Suite v1.6.12破解版
- 大数据环境下数据仓库的实践(四)—— 主题域的划分及任务和工作流的组织方式
- 通信协议-GMSL(千兆多媒体串行链路)
热门文章
- windows 快捷键关闭屏幕
- amigo3.1 android版本,金立F103B GN3003官方原厂固件rom系统刷机包升级包3.1.15
- 第三章 java集合
- 最新emoji表情代码大全_中老年表情包:微信朋友圈早晨问候语带图片 最新早上好问候语动态图片大全...
- 10个值得珍藏的4K高清壁纸网站推荐
- Pitest内存泄露分析 (工具使用IDEA、Jprofiler)
- linux搭建声纹识别,声纹识别SDK-FreeSR
- html给页面整体添加左右边距_左右边距相对于页面宽度过大
- ai文字后面出现特殊符号
- php 鼠标 移动 手型,css各种手型集合(css禁止手型)