Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion spock-website/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import './style.css'
import './icons'
import AOS from 'aos'

const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const disableAosByQuery = new URLSearchParams(window.location.search).get('disableaos') !== null;

AOS.init({
duration: 800, // Animation duration
once: true, // Whether animation should happen only once - while scrolling down
offset: 50, // Offset (in px) from the original trigger point
disable: new URLSearchParams(window.location.search).get('disableaos') !== null,
disable: prefersReducedMotion || disableAosByQuery,
});
Loading