UNPKG

vira

Version:

A simple and highly versatile design system using element-vir.

36 lines (34 loc) 983 B
import { css, html } from 'element-vir'; import { viraAnimationDurations } from '../../styles/durations.js'; import { defineIcon } from '../icon-svg.js'; import { Loader24Icon } from './loader-24.icon.js'; const animatedLoaderStyles = css ` @keyframes loader-animated-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } svg { animation: ${viraAnimationDurations['vira-extended-animation-duration'].value} linear loader-animated-spin infinite; } `; /** * A variation of {@link Loader24Icon} that spins on its own. * * @category Icon * @category SVG * @see https://electrovir.github.io/element-vir/vira/book/icons/loaderanimated24icon */ export const LoaderAnimated24Icon = defineIcon({ name: 'LoaderAnimated24Icon', svgTemplate: html ` <style> ${animatedLoaderStyles} </style> ${Loader24Icon.svgTemplate} `, });