paradiego
This commit is contained in:
23
node_modules/@emotion/react/src/keyframes.js
generated
vendored
Normal file
23
node_modules/@emotion/react/src/keyframes.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import css from './css'
|
||||
|
||||
/*
|
||||
type Keyframes = {|
|
||||
name: string,
|
||||
styles: string,
|
||||
anim: 1,
|
||||
toString: () => string
|
||||
|} & string
|
||||
*/
|
||||
|
||||
export const keyframes = (...args) /*: Keyframes */ => {
|
||||
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_`
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user