User:物灵/时钟样式.css:修订间差异
外观
< User:物灵
建立内容为“@keyframes spin { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } } #spin-wrapper, #spin-second…”的新页面 |
小无编辑摘要 |
||
| (未显示同一用户的2个中间版本) | |||
| 第7行: | 第7行: | ||
position: relative; | position: relative; | ||
display: inline-block; | display: inline-block; | ||
width: | width: 150px; | ||
height: | height: 150px; | ||
} | } | ||
#spin-second-wrapper, #spin-minute-wrapper, #spin-hour-wrapper { | #spin-second-wrapper, #spin-minute-wrapper, #spin-hour-wrapper { | ||
2022年11月19日 (六) 10:15的最新版本
@keyframes spin {
0% { transform: rotate(0deg); }
50% { transform: rotate(180deg); }
100% { transform: rotate(360deg); }
}
#spin-wrapper, #spin-second, #spin-minute, #spin-hour {
position: relative;
display: inline-block;
width: 150px;
height: 150px;
}
#spin-second-wrapper, #spin-minute-wrapper, #spin-hour-wrapper {
position: absolute;
}
#spin-second {
animation: spin 60s linear infinite;
background: red;
clip-path: polygon(48% 50%, 52% 50%, 52% 10%, 48% 10%);
}
#spin-minute {
animation: spin 3600s linear infinite;
background: black;
clip-path: polygon(48% 50%, 52% 50%, 52% 20%, 48% 20%);
}
#spin-hour {
animation: spin 216000s linear infinite;
background: black;
clip-path: polygon(48% 50%, 52% 50%, 52% 30%, 48% 30%);
}
#spin-wrapper {
background: yellow;
clip-path: circle(50%);
}