From cfe44aa9258cd28df3558e41b60c97887cb926d8 Mon Sep 17 00:00:00 2001 From: Ryan Feigenbaum Date: Mon, 10 Jul 2023 14:46:55 -0400 Subject: [PATCH] tweak city --- assets/css/components/card.css | 4 ++-- assets/js/app/app.js | 7 +++---- partials/card.hbs | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/assets/css/components/card.css b/assets/css/components/card.css index f0f9c520..a58daa53 100644 --- a/assets/css/components/card.css +++ b/assets/css/components/card.css @@ -119,13 +119,13 @@ object-fit: cover; } -.sm-tag-card a { +.sm-tag-card-body > p { position: relative; font-size: var(--h4); font-weight: 900; } -.sm-tag-card p { +.sm-card-tag-meta p { font-size: var(--x-small); text-transform: uppercase; letter-spacing: var(--letter-spacing); diff --git a/assets/js/app/app.js b/assets/js/app/app.js index 7ded17b8..0ddaf972 100644 --- a/assets/js/app/app.js +++ b/assets/js/app/app.js @@ -34,9 +34,8 @@ function animateOnScroll() { const el = entry.target; const ratio = entry.intersectionRatio; - if (ratio > 0.4) { - // remove from observation - + // remove from observation + if (ratio >= 0.6) { el.style.opacity = 1; observer.unobserve(el); return; @@ -47,7 +46,7 @@ function animateOnScroll() { return 0; } - if (num >= 0.4) { + if (num >= 0.6) { return 1; } diff --git a/partials/card.hbs b/partials/card.hbs index a40bd982..08c33441 100644 --- a/partials/card.hbs +++ b/partials/card.hbs @@ -57,7 +57,7 @@
{{#if primary_tag}}

{{primary_tag.name}}

{{/if}}
-

{{^if access}}{{/if}}{{title}}

+

{{^if access}}{{/if}}{{title}}

{{^if feature_image}} {{^if featured}}