UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

12 lines (11 loc) 505 B
import type { IconFunction } from './Icon'; export declare function transition(states: Record<string, IconFunction>): IconFunction; export declare namespace transition { var activate: (element: HTMLElement, state: string) => void; var isSupported: boolean; } /** * Runs a callback with all CSS transitions disabled on the element * and its SVG children, then restores them after a forced reflow. */ export declare function suppressTransitions(element: HTMLElement, callback: () => void): void;