Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@emotion/react/src/keyframes.ts from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/react/src/keyframes.ts
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@emotion/react/src/keyframes.ts
-
curl -L -o keyframes.ts https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/react/src/keyframes.ts
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_` | |
| } | |
| } | |
| } | |