Skip to content

Commit

Permalink
Move style to CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Jan 31, 2024
1 parent db74bb5 commit e466876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flask_app/static/css/animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
}

.recent-load-in {
height: 0;
opacity: 0;
animation:
InitClear var(--delay, 0s) step-end 0s,
RecentLoadIn var(--duration, 0.5s) ease-out calc(var(--delay, 0s)),
Expand Down
2 changes: 1 addition & 1 deletion flask_app/templates/recent.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="row m-2">
{% endif %}
<div class="col-md-6">
<div class="card recent-load-in" style="--delay: {{ loop.index0 * 0.2 + 0.2}}s; height: 0; opacity: 0;">
<div class="card recent-load-in" style="--delay: {{ loop.index0 * 0.2 + 0.2}}s;">
<a href="{{ repo.url }}"><img src="/static/img/gh_cards/{{ current_datetime }}/card{{ loop.index0 }}.png" class="card-img-top"/></a>
<div class="card-body" style="background-color: white;">
{% if repo.languages.nodes|length == 0 %}
Expand Down

0 comments on commit e466876

Please sign in to comment.