diff options
Diffstat (limited to 'src/server/Design/Animation/Keyframes.hs')
-rw-r--r-- | src/server/Design/Animation/Keyframes.hs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/server/Design/Animation/Keyframes.hs b/src/server/Design/Animation/Keyframes.hs new file mode 100644 index 0000000..3ea5575 --- /dev/null +++ b/src/server/Design/Animation/Keyframes.hs @@ -0,0 +1,26 @@ +{-# LANGUAGE OverloadedStrings #-} + +module Design.Animation.Keyframes + ( Keyframes(..) + , allKeyframes + ) where + +import Data.String (fromString) + +import Clay + +data Keyframes = + OpacityKeyframes + deriving (Eq, Show) + +allKeyframes :: Css +allKeyframes = + keyframes + (fromString . show $ OpacityKeyframes) + [ ( 0 + , opacity 0 + ) + , ( 100 + , opacity 1 + ) + ] |