Skip to content

Commit e8238e6

Browse files
authored
Merge pull request #8 from i-am-the-slime/add-keyframes
Add keyframes
2 parents 4e0fb00 + ec05f0a commit e8238e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/React/Basic/Emotion.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ exports.global = Emotion.Global;
3636
exports.css = _homogeneousDict => Emotion.css;
3737

3838
exports.important = prop => typeof prop === "string" ? prop + " !important" : prop;
39+
40+
exports.keyframes = _homogeneousDict => Emotion.keyframes;

src/React/Basic/Emotion.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ module React.Basic.Emotion
88
, element
99
, elementKeyed
1010
, css
11+
, global
1112
, important
13+
, keyframes
1214
, nested
1315
, merge
1416
, str
@@ -134,6 +136,8 @@ foreign import css :: forall r. Homogeneous r StyleProperty => { | r } -> Style
134136

135137
foreign import important :: StyleProperty -> StyleProperty
136138

139+
foreign import keyframes :: forall r. Homogeneous r StyleProperty => { | r } -> StyleProperty
140+
137141
nested :: Style -> StyleProperty
138142
nested = unsafeCoerce
139143

0 commit comments

Comments
 (0)