天气 动图 接入
This commit is contained in:
23
src/components/Weather/WeatherCloudy.css
Normal file
23
src/components/Weather/WeatherCloudy.css
Normal file
@@ -0,0 +1,23 @@
|
||||
.cloud-group {
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.cloud {
|
||||
font-size: 45px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.cloud1 {
|
||||
left: 10px;
|
||||
animation: floatCloud 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.cloud2 {
|
||||
left: 60px;
|
||||
animation: floatCloud 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes floatCloud {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
50% { transform: translateX(10px); }
|
||||
}
|
||||
Reference in New Issue
Block a user