aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design/Animation/Keyframes.hs
blob: 3ea55753815789bd0981202b4e76f152a826090e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
      )
    ]