最新下载
24小时阅读排行榜
- 1 Go测试如何防止全局变量影响_测试隔离思路讲解
- 2 XSLT如何根据条件改变输出 xsl:if和xsl:choose
- 3 css 布局中 footer 无法贴底怎么办_使用 css 布局实现底部固定
- 4 php二维转一维保留首次键_php二维转一维首键优先法【步骤】
- 5 C# 日期时间格式化方法 C#如何格式化DateTime
- 6 html5能直接播放rtsp吗_html5不能直接播rtsp原因【原理】
- 7 javascript函数如何定义_它们怎样提升代码复用性【教程】
- 8 C++ socket编程怎么做 C++网络编程TCP通信代码实现【网络】
- 9 GraphQL如何处理文件上传 与XML数据结合的最佳实践
- 10 css 外链样式表路径写错怎么排查_排查 css 引入失败方法
- 11 php页面渐变能配合表单高亮吗_php页面表单渐变高亮法【教程】
- 12 ebXML电子商务XML标准介绍
- 13 CircleCI/Travis CI如何配置XML测试报告的上传
- 14 c++中如何判断一个数是否为奇数_c++按位与运算判断奇偶性【详解】
- 15 C++ 智能指针shared_ptr C++引用计数与自动内存管理【C++11】
最新教程
-
- Node.js 教程
- 16115 2025-08-28
-
- CSS3 教程
- 1546538 2025-08-27
-
- Rust 教程
- 23247 2025-08-27
-
- Vue 教程
- 25720 2025-08-22
-
- PostgreSQL 教程
- 22200 2025-08-21
-
- Git 教程
- 9188 2025-08-21
<head>
<meta charset="utf-8">
<title>css3模拟3D效果城市夜间行走动画特效</title>
<style>
body {
position: relative;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: radial-gradient(circle at center, #1f1925, #2c2334);
overflow: hidden;
}
body:before, body:after {
content: '';
position: absolute;
width: 200%;
height: 50%;
left: -50%;
top: calc(50% + 10px);
background: #644350;
}
body:after {
z-index: -1;
height: calc(50% + 500px);
top: -250px;
background: linear-gradient(to top, #1f1925, rgba(255, 255, 255, 0)), radial-gradient(circle at center, #fcb3a4, #fcb3a4 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 20px), radial-gradient(circle at center, #fcb3a4, #fcb3a4 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 20px);
background-size: 100%, 100px 100px, 100px 100px;
background-position: 50%, 40px 40px, 0px 90px;
opacity: 0.75;
transform-style: preserve-3d;
animation: starwipe 10s linear infinite;
}
这是一款很酷炫的纯css3实现的模拟3D效果城市夜间行走动画特效,css3立体建筑物动画效果。
