download
raw
654 Bytes
import { CSSInterpolation } from '@emotion/serialize'
import css from './css'
type Keyframes = {
name: string
styles: string
anim: 1
toString: () => string
} & string
export function keyframes(
template: TemplateStringsArray,
...args: CSSInterpolation[]
): Keyframes
export function keyframes(...args: CSSInterpolation[]): Keyframes
export function keyframes(...args: CSSInterpolation[]) {
let insertable = css(...args)
const name = `animation-${insertable.name}`
return {
name,
styles: `@keyframes ${name}{${insertable.styles}}`,
anim: 1,
toString() {
return `_EMO_${this.name}_${this.styles}_EMO_`
}
}
}

Xet Storage Details

Size:
654 Bytes
·
Xet hash:
fa672651ddac3c5e8484427c680f0123edc5e59d8b11fe4a6877bfbc61a01d96

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.