EaseCation Wiki:EaseCation/styles.css
来自EaseCation Wiki
更多操作
/* ===== EaseCation 方块掉落背景动画 ===== */
/* 慢速、低透明度、均匀分布,作为纯装饰背景不遮挡文字 */
@keyframes ec-fall {
0% { opacity: 0; transform: translateY(-10vh) rotate(0deg); }
5% { opacity: 0.18; }
50% { opacity: 0.15; }
92% { opacity: 0.06; }
100% { opacity: 0; transform: translateY(110vh) rotate(8deg); }
}
/* 1. EC币 */
h2:first-of-type::before {
content: "";
position: fixed;
top: 0;
left: 3%;
width: 22px;
height: 22px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/2/24/EC%E5%B8%81.png);
opacity: 0;
animation: ec-fall 35s linear 0s infinite;
}
/* 2. EC钻石 */
h2:first-of-type::after {
content: "";
position: fixed;
top: 0;
left: 9%;
width: 18px;
height: 18px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/2/28/EC%E9%92%BB%E7%9F%B3.png);
opacity: 0;
animation: ec-fall 40s linear 8s infinite;
}
/* 3. 点券 */
h2:nth-of-type(2)::before {
content: "";
position: fixed;
top: 0;
left: 15%;
width: 24px;
height: 24px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/e/e8/%E7%82%B9%E5%88%B8.png);
opacity: 0;
animation: ec-fall 38s linear 16s infinite;
}
/* 4. 大厅经验 */
h2:nth-of-type(2)::after {
content: "";
position: fixed;
top: 0;
left: 21%;
width: 20px;
height: 20px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/b/bc/%E5%A4%A7%E5%8E%85%E7%BB%8F%E9%AA%8C.png);
opacity: 0;
animation: ec-fall 42s linear 5s infinite;
}
/* 5. 圣符点数 */
h2:nth-of-type(3)::before {
content: "";
position: fixed;
top: 0;
left: 27%;
width: 26px;
height: 26px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/4/49/%E5%9C%A3%E7%AC%A6%E7%82%B9%E6%95%B0.png);
opacity: 0;
animation: ec-fall 36s linear 12s infinite;
}
/* 6. 生命苹果 */
h2:nth-of-type(3)::after {
content: "";
position: fixed;
top: 0;
left: 33%;
width: 18px;
height: 18px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/6/69/%E7%94%9F%E5%91%BD%E8%8B%B9%E6%9E%9C.png);
opacity: 0;
animation: ec-fall 44s linear 20s infinite;
}
/* 7. 复活币 */
h2:nth-of-type(4)::before {
content: "";
position: fixed;
top: 0;
left: 39%;
width: 22px;
height: 22px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/e/e8/%E5%A4%8D%E6%B4%BB%E5%B8%81.png);
opacity: 0;
animation: ec-fall 38s linear 3s infinite;
}
/* 8. 宝石 */
h2:nth-of-type(4)::after {
content: "";
position: fixed;
top: 0;
left: 44%;
width: 20px;
height: 20px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/7/7c/%E5%AE%9D%E7%9F%B3.png);
opacity: 0;
animation: ec-fall 42s linear 10s infinite;
}
/* 9. 失落结晶 */
h2:nth-of-type(5)::before {
content: "";
position: fixed;
top: 0;
left: 50%;
width: 24px;
height: 24px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/5/5b/%E5%A4%B1%E8%90%BD%E7%BB%93%E6%99%B6.png);
opacity: 0;
animation: ec-fall 36s linear 18s infinite;
}
/* 10. 鬼魅结晶 */
h2:nth-of-type(5)::after {
content: "";
position: fixed;
top: 0;
left: 56%;
width: 18px;
height: 18px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/4/43/%E9%AC%BC%E9%AD%85%E7%BB%93%E6%99%B6.png);
opacity: 0;
animation: ec-fall 40s linear 7s infinite;
}
/* 11. 密室杀手硬币 */
p:first-of-type::before {
content: "";
position: fixed;
top: 0;
left: 62%;
width: 20px;
height: 20px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/c/c6/%E5%AF%86%E5%AE%A4%E6%9D%80%E6%89%8B%E7%A1%AC%E5%B8%81.png);
opacity: 0;
animation: ec-fall 45s linear 25s infinite;
}
/* 12. 起床战争硬币 */
p:first-of-type::after {
content: "";
position: fixed;
top: 0;
left: 68%;
width: 18px;
height: 18px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/4/4b/%E8%B5%B7%E5%BA%8A%E6%88%98%E4%BA%89%E7%A1%AC%E5%B8%81.png);
opacity: 0;
animation: ec-fall 48s linear 14s infinite;
}
/* 13. 跳关卡 */
p:nth-of-type(2)::before {
content: "";
position: fixed;
top: 0;
left: 74%;
width: 22px;
height: 22px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/1/1b/%E8%B7%B3%E5%85%B3%E5%8D%A1.png);
opacity: 0;
animation: ec-fall 37s linear 22s infinite;
}
/* 14. BigE squishy */
p:nth-of-type(2)::after {
content: "";
position: fixed;
top: 0;
left: 80%;
width: 20px;
height: 20px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/e/ee/BigE_squishy.gif);
opacity: 0;
animation: ec-fall 43s linear 11s infinite;
}
/* 15. 空岛硬币 */
p:nth-of-type(3)::before {
content: "";
position: fixed;
top: 0;
left: 85%;
width: 18px;
height: 18px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/c/cb/%E7%A9%BA%E5%B2%9B%E7%A1%AC%E5%B8%81.png);
opacity: 0;
animation: ec-fall 39s linear 28s infinite;
}
/* 16. 华丽的奖励箱 */
p:nth-of-type(3)::after {
content: "";
position: fixed;
top: 0;
left: 91%;
width: 24px;
height: 24px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/f/ff/%E5%8D%8E%E4%B8%BD%E7%9A%84%E5%A5%96%E5%8A%B1%E7%AE%B1.png);
opacity: 0;
animation: ec-fall 41s linear 4s infinite;
}
/* 17. 巴比伦遗藏宝箱 */
p:nth-of-type(4)::before {
content: "";
position: fixed;
top: 0;
left: 96%;
width: 20px;
height: 20px;
z-index: 0;
pointer-events: none;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-image: url(https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/2/21/%E5%B7%B4%E6%AF%94%E4%BC%A6%E9%81%97%E8%97%8F%E5%AE%9D%E7%AE%B1.png);
opacity: 0;
animation: ec-fall 46s linear 17s infinite;
}
@media (prefers-reduced-motion: reduce) {
h2:first-of-type::before {
animation-name: none;
opacity: 0;
}
h2:first-of-type::after {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(2)::before {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(2)::after {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(3)::before {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(3)::after {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(4)::before {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(4)::after {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(5)::before {
animation-name: none;
opacity: 0;
}
h2:nth-of-type(5)::after {
animation-name: none;
opacity: 0;
}
p:first-of-type::before {
animation-name: none;
opacity: 0;
}
p:first-of-type::after {
animation-name: none;
opacity: 0;
}
p:nth-of-type(2)::before {
animation-name: none;
opacity: 0;
}
p:nth-of-type(2)::after {
animation-name: none;
opacity: 0;
}
p:nth-of-type(3)::before {
animation-name: none;
opacity: 0;
}
p:nth-of-type(3)::after {
animation-name: none;
opacity: 0;
}
p:nth-of-type(4)::before {
animation-name: none;
opacity: 0;
}
}