Skip to content

Commit

Permalink
hide controls for animation on college homepage when reduced motion i…
Browse files Browse the repository at this point in the history
…s enabled
  • Loading branch information
poojagunturu96 committed Sep 25, 2024
1 parent d5c81ae commit f0c5f5f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/scss/components/_college-homepage-grid-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ $text-colors: (
4: #0d395f
);

// Accessible versions of the text colors listed above with right contrast ratios
$accessible-text-colors: (
1: #407AB0,
2: #737C13,
3: #B55F30
1: #407ab0,
2: #737c13,
3: #b55f30
);

@keyframes homepageFadeInOut {
Expand Down Expand Up @@ -339,6 +340,14 @@ $accessible-text-colors: (
}
}

@media (prefers-reduced-motion: reduce) {
.homepage-title--pause-button,
.homepage-title--play-button,
.homepage-title--replay-button {
display: none !important;
}
}

.pause-animation {
animation-play-state: paused !important;
}

0 comments on commit f0c5f5f

Please sign in to comment.