Implement scroll animations across multiple sections in HTML files. Update CSS to define animation styles and visibility transitions for elements with the class "animate-on-scroll".

This commit is contained in:
blake committed 2026-10-14 20:44:41 -05:00
1 parent 535600ab5c
commit 2aea656f0b
13 files changed
+201 -152

No files matched your search

+32 -1
View File
@@ -1115,6 +1115,32 @@ button:focus-visible {
box-shadow: 0 0 0 6px var(--color-yellow);
}
/* Animations */
.js .animate-on-scroll {
opacity: 0;
transform: translateY(3rem);
transition-property: opacity, transform;
transition-duration: 0.5s;
transition-timing-function: ease;
transition-delay: 0s;
}
.js .animate-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}
.js .btn.animate-on-scroll.visible:hover,
.js .btn.animate-on-scroll.visible:active {
transform: scale(1.05);
}
.js .link-card.animate-on-scroll.visible:hover,
.js .link-card.animate-on-scroll.visible:active {
transform: scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
@@ -1132,9 +1158,14 @@ button:focus-visible {
.nav-link:active,
.btn:hover,
.btn:active,
.link-card:hover {
.link-card:hover,
.js .animate-on-scroll {
transform: none;
}
.js .animate-on-scroll {
opacity: 1;
}
}
/* GET HELP PAGE */