UNPKG

bigger-picture

Version:

Javascript photo / video / iframe / html lightbox gallery

22 lines (21 loc) 695 B
/** Svelte store to track if gallery is in the process of closing * ```js * closing.subscribe((bool) => { * console.log('is closing', bool) * }) * ``` */ export const closing: import('svelte/store').Writable<number> /** If user prefers reduced motion */ export const prefersReducedMotion: boolean export function defaultTweenOptions(duration: number): { easing: typeof cubicOut duration: number } export function getThumbBackground(activeItem: any): string | true /** Adds attributes to the given node based on the provided object */ export function addAttributes( node: HTMLElement, obj: Record<string, string | boolean> | string ): void import { cubicOut } from 'svelte/easing'