Skip to content

Commit 9bc481d

Browse files
committed
better animation
1 parent 2fed9c2 commit 9bc481d

2 files changed

Lines changed: 33 additions & 47 deletions

File tree

docs/index.html

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -178,27 +178,23 @@
178178
position: relative;
179179
overflow: hidden;
180180
background:
181-
linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 251, 250, 0.92)),
182-
rgba(255, 253, 248, 0.9);
181+
linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 251, 250, 0.92)) padding-box,
182+
linear-gradient(
183+
120deg,
184+
rgba(201, 111, 45, 0.18),
185+
rgba(15, 118, 110, 0.18),
186+
rgba(255, 255, 255, 0.9),
187+
rgba(201, 111, 45, 0.2),
188+
rgba(15, 118, 110, 0.18)
189+
) border-box;
190+
border: 1px solid transparent;
191+
background-size: 100% 100%, 220% 220%;
192+
background-position: 0 0, 0% 50%;
183193
box-shadow:
184194
0 0 0 1px rgba(201, 111, 45, 0.14),
185195
0 10px 28px rgba(22, 35, 31, 0.08),
186196
0 0 24px rgba(201, 111, 45, 0.12);
187-
animation: cta-glow-pulse 2.8s ease-in-out infinite;
188-
}
189-
190-
.stat-link--cta::before {
191-
content: "";
192-
position: absolute;
193-
top: -35%;
194-
bottom: -35%;
195-
left: -40%;
196-
width: 38%;
197-
border-radius: 24px;
198-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
199-
transform: translateX(-180%) rotate(18deg);
200-
animation: cta-sheen 3.4s ease-in-out infinite;
201-
pointer-events: none;
197+
animation: cta-border-shimmer 2.6s linear infinite, cta-glow-pulse 2.8s ease-in-out infinite;
202198
}
203199

204200
.stat-link--cta strong,
@@ -226,15 +222,12 @@
226222
line-height: 1;
227223
}
228224

229-
@keyframes cta-sheen {
225+
@keyframes cta-border-shimmer {
230226
0% {
231-
transform: translateX(-180%) rotate(18deg);
232-
}
233-
55% {
234-
transform: translateX(430%) rotate(18deg);
227+
background-position: 0 0, 0% 50%;
235228
}
236229
100% {
237-
transform: translateX(430%) rotate(18deg);
230+
background-position: 0 0, 200% 50%;
238231
}
239232
}
240233

@@ -8196,7 +8189,7 @@ <h3 class="section-title">Config Options</h3>
81968189

81978190
<footer class="page-footer">
81988191
<span>Generated from <a href="https://github.com/ArchiveBox/abx-plugins" target="_blank" rel="noreferrer">ArchiveBox/abx-plugins</a> at ref <code>main</code>.</span>
8199-
<span>Updated 2026-03-15 08:21 UTC</span>
8192+
<span>Updated 2026-03-15 08:22 UTC</span>
82008193
</footer>
82018194
</div>
82028195

docs/index.html.j2

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -178,27 +178,23 @@
178178
position: relative;
179179
overflow: hidden;
180180
background:
181-
linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 251, 250, 0.92)),
182-
rgba(255, 253, 248, 0.9);
181+
linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 251, 250, 0.92)) padding-box,
182+
linear-gradient(
183+
120deg,
184+
rgba(201, 111, 45, 0.18),
185+
rgba(15, 118, 110, 0.18),
186+
rgba(255, 255, 255, 0.9),
187+
rgba(201, 111, 45, 0.2),
188+
rgba(15, 118, 110, 0.18)
189+
) border-box;
190+
border: 1px solid transparent;
191+
background-size: 100% 100%, 220% 220%;
192+
background-position: 0 0, 0% 50%;
183193
box-shadow:
184194
0 0 0 1px rgba(201, 111, 45, 0.14),
185195
0 10px 28px rgba(22, 35, 31, 0.08),
186196
0 0 24px rgba(201, 111, 45, 0.12);
187-
animation: cta-glow-pulse 2.8s ease-in-out infinite;
188-
}
189-
190-
.stat-link--cta::before {
191-
content: "";
192-
position: absolute;
193-
top: -35%;
194-
bottom: -35%;
195-
left: -40%;
196-
width: 38%;
197-
border-radius: 24px;
198-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
199-
transform: translateX(-180%) rotate(18deg);
200-
animation: cta-sheen 3.4s ease-in-out infinite;
201-
pointer-events: none;
197+
animation: cta-border-shimmer 2.6s linear infinite, cta-glow-pulse 2.8s ease-in-out infinite;
202198
}
203199
204200
.stat-link--cta strong,
@@ -226,15 +222,12 @@
226222
line-height: 1;
227223
}
228224
229-
@keyframes cta-sheen {
225+
@keyframes cta-border-shimmer {
230226
0% {
231-
transform: translateX(-180%) rotate(18deg);
232-
}
233-
55% {
234-
transform: translateX(430%) rotate(18deg);
227+
background-position: 0 0, 0% 50%;
235228
}
236229
100% {
237-
transform: translateX(430%) rotate(18deg);
230+
background-position: 0 0, 200% 50%;
238231
}
239232
}
240233

0 commit comments

Comments
 (0)