/
sweetebin
/
hackaton_26
Обзор
Документация
Войти
/
sweetebin
/
hackaton_26
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
web-form-project/node_modules/@emotion/react/src/keyframes.ts
27 строк
654 B
AKorostelev
web form project added
28 июл 2026, 10:57
28 июл 2026, 10:57
4339e77
Код
Авторство
О чём код?
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_` } } }