-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Defining and manipulating css easing strings. -- -- A package to define css easing strings. These can be used in Julius, -- JSON, etc. templates to limit the easings to valid ones. @package css-easings @version 0.2.0.0 -- | A module to define css easing strings. These can be used in Julius, -- JSON, etc. templates to limit the easings to valid ones. module Css.Easing -- | A type that describes the different types of css-easings (also known -- as "transition timing functions"). There are basically two modes: -- Steps and CubicBeziers. data Easing -- | Displays the transition along n stops along the transition, displaying -- each stop for equal lengths of time. For example, if n is 5, there are -- 5 steps. Whether the transition holds temporarily at 0%, 20%, 40%, 60% -- and 80%, on the 20%, 40%, 60%, 80% and 100%, or makes 5 stops between -- the 0% and 100% along the transition, or makes 5 stops including the -- 0% and 100% marks (on the 0%, 25%, 50%, 75%, and 100%) depends on -- which of the JumpTerm is used. Steps :: Int -> JumpTerm -> Easing -- | An author defined cubic-Bezier curve, where the p1 and p3 values must -- be in the range of 0 to 1. CubicBezier :: Scientific -> Scientific -> Scientific -> Scientific -> Easing -- | Constructs a Steps given the first item is strictly greater -- than zero. If that is the case, it returns the Easing wrapped -- in a Just, otherwise a Nothing is returned. steps :: Int -> JumpTerm -> Maybe Easing -- | Construct a Steps given the first item is strictly greater than -- ero. If that is the case, it returns the Easing object, -- otherwise it will raise an error. steps' :: Int -> JumpTerm -> Easing -- | Constructs a CubicBezier given that the first and third value -- are between 0.0 and 1.0. If that is the case, it -- returns a Just that wraps the Easing. Otherwise -- Nothing is returned. cubicBezier :: Scientific -> Scientific -> Scientific -> Scientific -> Maybe Easing -- | Constructs a CubicBezier given the first and third value are -- between 0.0 and 1.0. If this is the case, it returns -- that Easing, otherwise it will raise an error. cubicBezier' :: Scientific -> Scientific -> Scientific -> Scientific -> Easing -- | Convert an Easing to its css counterpart. The css aliases like -- "steps-start" are not checked. Therefore, only strings -- like "steps(..)" and cubic-bezier(..)@ are returned. easingToCss :: Easing -> Text -- | Convert an Easing to its css counterpart. The css aliases like -- "steps-start" are checked, and if they match, the alias is -- returned. easingToCssWithCssAliasses :: Easing -> Text -- | Convert a JumpTerm to its css counterpart. So JumpStart -- is for example converted to "jump-start". jumpTermToCss :: JumpTerm -> Text -- | A type that is used to describe how the jumps are done in a -- Steps construction. data JumpTerm -- | In css this is denoted as jump-start. This denotes a -- left-continuous function, so that the first jump happens when the -- transition begins. JumpStart :: JumpTerm -- | In css this is denoted as jump-end. Denotes a -- right-continuous function, so that the last jump happens when the -- animation ends. JumpEnd :: JumpTerm -- | In css this is denoted as jump-none. There is no jump on -- either end. Instead, holding at both the 0% mark and the 100% mark, -- each for 1/n of the duration. JumpNone :: JumpTerm -- | In css this is denoted as jump-both. Includes pauses at both -- the 0% and 100% marks, effectively adding a step during the transition -- time. JumpBoth :: JumpTerm -- | A pattern that defines the css alias start that is equal to -- jump-start. pattern Start :: JumpTerm -- | A pattern that defines the css alias end that is equal to -- jump-end. pattern End :: JumpTerm -- | A pattern that defines the css alias steps-start that is -- equal to steps(1, jump-start). pattern StepsStart :: Easing -- | A pattern that defines the css alias steps-end that is equal -- to steps(1, jump-end). pattern StepsEnd :: Easing -- | A pattern that defines the css alias ease that is equal to -- cubic-bezier(0.25, 0.1, 0.25, 1). pattern Ease :: Easing -- | A pattern that defines the css alias linear that is equal to -- cubic-bezier(0, 0, 1, 1). pattern Linear :: Easing -- | A pattern that defines the css alias ease-in that is equal to -- cubic-bezier(0.42, 0, 1, 1). pattern EaseIn :: Easing -- | A pattern that defines the css alias ease-out that is equal -- to cubic-bezier(0, 0, 0.58, 1). pattern EaseOut :: Easing -- | A pattern that defines the css alias ease-in-out that is -- equal to cubic-bezier(0.42, 0, 0.58, 1). pattern EaseInOut :: Easing -- | A pattern that defines the PostCSS easing pattern easeInSine. pattern EaseInSine :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutSine. pattern EaseOutSine :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutSine. pattern EaseInOutSine :: Easing -- | A pattern that defines the PostCSS easing pattern easeInQuad. pattern EaseInQuad :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutQuad. pattern EaseOutQuad :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutQuad. pattern EaseInOutQuad :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInCubic. pattern EaseInCubic :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutCubic. pattern EaseOutCubic :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutCubic. pattern EaseInOutCubic :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInQuart. pattern EaseInQuart :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutQuart. pattern EaseOutQuart :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutQuart. pattern EaseInOutQuart :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInQuint. pattern EaseInQuint :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutQuint. pattern EaseOutQuint :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutQuint. pattern EaseInOutQuint :: Easing -- | A pattern that defines the PostCSS easing pattern easeInExpo. pattern EaseInExpo :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutExpo. pattern EaseOutExpo :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutExpo. pattern EaseInOutExpo :: Easing -- | A pattern that defines the PostCSS easing pattern easeInCirc. pattern EaseInCirc :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutCirc. pattern EaseOutCirc :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutCirc. pattern EaseInOutCirc :: Easing -- | A pattern that defines the PostCSS easing pattern easeInBack. pattern EaseInBack :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeOutBack. pattern EaseOutBack :: Easing -- | A pattern that defines the PostCSS easing pattern -- easeInOutBack. pattern EaseInOutBack :: Easing instance GHC.Show.Show Css.Easing.Easing instance GHC.Classes.Ord Css.Easing.Easing instance GHC.Classes.Eq Css.Easing.Easing instance GHC.Show.Show Css.Easing.JumpTerm instance GHC.Read.Read Css.Easing.JumpTerm instance GHC.Classes.Ord Css.Easing.JumpTerm instance GHC.Classes.Eq Css.Easing.JumpTerm instance GHC.Enum.Enum Css.Easing.JumpTerm instance GHC.Enum.Bounded Css.Easing.JumpTerm instance Data.Default.Class.Default Css.Easing.Easing instance Test.QuickCheck.Arbitrary.Arbitrary Css.Easing.Easing instance Text.Blaze.ToMarkup Css.Easing.Easing instance Text.Julius.ToJavascript Css.Easing.Easing instance Data.Aeson.Types.ToJSON.ToJSON Css.Easing.Easing instance Data.Default.Class.Default Css.Easing.JumpTerm instance Test.QuickCheck.Arbitrary.Arbitrary Css.Easing.JumpTerm instance Text.Blaze.ToMarkup Css.Easing.JumpTerm instance Text.Julius.ToJavascript Css.Easing.JumpTerm instance Data.Aeson.Types.ToJSON.ToJSON Css.Easing.JumpTerm