MVp
This commit is contained in:
10
lib/scroll.ts
Normal file
10
lib/scroll.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export function supportsScrollTimeline(): boolean {
|
||||
// @ts-ignore
|
||||
return typeof (CSS as any)?.scrollTimeline !== 'undefined'
|
||||
}
|
||||
export function initScrollFallback() {
|
||||
if (typeof window === 'undefined') return
|
||||
const prefersReduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||
if (prefersReduced) return
|
||||
}
|
||||
export function disableAnimations() { }
|
||||
Reference in New Issue
Block a user