Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
0fuling0 committed Feb 9, 2025
1 parent 348000e commit 56a2d66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ html.dark-mode::-webkit-scrollbar-thumb:hover {
justify-content: center;
align-items: center;
position: relative;
height: 50px; /* 添加固定高度 */
}

/* 弹跳圆圈 */
Expand All @@ -1248,6 +1249,7 @@ html.dark-mode::-webkit-scrollbar-thumb:hover {
border-radius: 50%;
background: var(--primary-color);
animation: bounce 0.5s cubic-bezier(0.19, 0.57, 0.3, 0.98) infinite alternate;
position: relative; /* 修改为相对定位 */
}

/* 阴影效果 */
Expand All @@ -1259,10 +1261,20 @@ html.dark-mode::-webkit-scrollbar-thumb:hover {
margin: 0 10px;
position: absolute;
bottom: -10px;
transform: scale(0.7);
animation: shadow 0.5s cubic-bezier(0.19, 0.57, 0.3, 0.98) infinite alternate;
}

/* 调整阴影位置 */
.shadow:nth-child(4) {
left: 0; /* 第一个阴影 */
}
.shadow:nth-child(5) {
left: 40px; /* 第二个阴影 */
}
.shadow:nth-child(6) {
left: 80px; /* 第三个阴影 */
}

/* 延迟动画效果 */
.circle:nth-child(1), .shadow:nth-child(4) {
animation-delay: -0.2s;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js"></script>
<script defer src="https://cdn.bootcdn.net/ajax/libs/aplayer/1.10.1/APlayer.min.js"></script>
<script defer src="https://unpkg.com/meting@2/dist/Meting.min.js"></script>
<script async src="https://npm.elemecdn.com/[email protected]/bsz.js"></script>
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<meta name="color-scheme" content="light dark">
<script defer>
// 立即执行的深色模式初始化
Expand Down

0 comments on commit 56a2d66

Please sign in to comment.