Skip to content

Commit 498a1da

Browse files
committed
Hide cards until animation starts
1 parent a71c713 commit 498a1da

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

flask_app/static/css/animations.css

+16-3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@
3636
InitClear calc(var(--duration, 1s) + var(--delay, 0s)) ease-out var(--delay, 0s) 1;
3737
}
3838

39+
@keyframes Reveal {
40+
0% {
41+
height: 0;
42+
opacity: 0;
43+
}
44+
45+
100% {
46+
height: auto;
47+
opacity: 1;
48+
}
49+
}
50+
3951
@keyframes RecentLoadIn {
4052
0% {
4153
transform: rotate(-15deg) scale(0.5);
@@ -48,9 +60,10 @@
4860

4961
.recent-load-in {
5062
animation:
51-
InitClear var(--delay, 0s) step-end 0s 1,
52-
RecentLoadIn var(--duration, 0.5s) ease-out calc(var(--delay, 0s));
53-
}
63+
InitClear var(--delay, 0s) step-end 0s,
64+
RecentLoadIn var(--duration, 0.5s) ease-out calc(var(--delay, 0s)),
65+
Reveal 0s step-start 0s forwards;
66+
}
5467

5568
@keyframes LandingImageGlow {
5669
0% {

flask_app/templates/recent.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div class="row m-2">
2727
{% endif %}
2828
<div class="col-md-6">
29-
<div class="card recent-load-in" style="--delay: {{ loop.index0 * 0.2 + 0.2}}s">
29+
<div class="card recent-load-in" style="--delay: {{ loop.index0 * 0.2 + 0.2}}s; height: 0; opacity: 0;">
3030
<a href="{{ repo.url }}"><img src="/static/img/gh_cards/{{ current_datetime }}/card{{ loop.index0 }}.png" class="card-img-top"/></a>
3131
<div class="card-body" style="background-color: white;">
3232
{% if repo.languages.nodes|length == 0 %}

0 commit comments

Comments
 (0)