div+css实现手机天气预报app ui设计代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现手机天气预报app ui设计代码
代码标签: div css 手机 天气 预报 app ui 设计 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css">
<script src="https://cdn.tailwindcss.com"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/particles-min.js"></script>
<style>
body, html {
font-family: 'Inter', system-ui, sans-serif;
background: #000;
margin: 0;
padding: 0;
min-height: 100vh;
overflow: hidden;
}
#shader-canvas {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}
.hero-gradient {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 197, 253, 0.8) 100%);
}
.feature-icon {
animation: feature-float 3s ease-in-out infinite;
}
@keyframes feature-float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-3px); }
}
.feature-icon:nth-child(2) { animation-delay: 0.5s; }
.feature-icon:nth-child(3) { animation-delay: 1s; }
.slide-up {
animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.pulse-button {
animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }
}
.weather-preview {
background: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
position: relative;
overflow: hidden;
}
.weather-preview::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at 70% 30%, rgba(148, 163, 184, 0.2) 0%, transparent 50%);
}
.weather-card {
backdrop-filter: blur(20px);
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.2);
position: relative;
overflow: hidden;
}
.temp-display {
animation: temp-pulse 3s ease-in-out infinite;
}
@keyframes temp-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.phone-shadow {
filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5)) drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}
.weather-icon {
animation: weather-bounce 2s ease-in-out infinite;
}
@keyframes weather-bounce {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-8px) rotate(5deg); }
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 1;
}
.weather-card-content {
position: relative;
z-index: 2;
}
</style>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Serif:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap" rel="stylesheet&qu.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0