Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1x 68x 68x 68x | /** * Copyright (c) Siemens 2016 - 2025 * SPDX-License-Identifier: MIT */ /** * @returns Returns whether animations are disabled via the CSS var. This is either set by * an application on low-end devices or in case the device is configured for reduced motion * (i.e. `@media (prefers-reduced-motion)` matches) */ export const areAnimationsDisabled = (): boolean => { const style = getComputedStyle(document.documentElement); const flag = style.getPropertyValue('--element-animations-enabled'); return parseInt(flag, 10) === 0; }; |