File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,8 @@ blue2 = rgb 238 238 255
65
65
backgroundGradient :: forall a . Angle a -> Css
66
66
backgroundGradient a = backgroundImage $ linearGradient a (ColorPoint white (pct 0 )) [] (ColorPoint blue2 (pct 100 ))
67
67
68
- shakeLeft :: Css
69
- shakeLeft = transforms [translate (px (-3 )) nil, rotate (deg (-2 ))]
70
-
71
- shakeRight :: Css
72
- shakeRight = transforms [translate (px 3 ) nil, rotate (deg 2 )]
68
+ shake :: (Number -> Number ) -> Css
69
+ shake f = transforms [translate (px (f 3 )) nil, rotate (deg (f 2 ))]
73
70
74
71
style :: Css
75
72
style = do
@@ -81,7 +78,7 @@ style = do
81
78
, FontFaceSrcUrl " http://fonts.gstatic.com/s/lato/v11/EsvMC5un3kjyUhB9ZEPPwg.woff2" (Just WOFF2 )
82
79
]
83
80
84
- keyframes " buzz-button" $ tuple2 50 shakeRight NEL .:| [tuple2 100 shakeLeft ]
81
+ keyframes " buzz-button" $ tuple2 50 (shake id) NEL .:| [tuple2 100 (shake negate ) ]
85
82
86
83
html ? height (pct 100 )
87
84
body ? do
You can’t perform that action at this time.
0 commit comments