Skip to content

Commit 5b5f514

Browse files
ka2jun8liqueflies
authored andcommitted
fix: an error occured on using keyframes before using styled
1 parent 2167985 commit 5b5f514

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/constructors/keyframes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default css => {
1717

1818
const animation = makeAnimation(name, css)
1919

20+
if (!StyleSheet.injected) StyleSheet.inject()
2021
StyleSheet.insert(animation)
2122

2223
return name

0 commit comments

Comments
 (0)