jq_easing.anubis 2.86 KB
 Easing equations specify an animation behavior.

 See: http://api.jqueryui.com/easings/

 Author: Julien Verneuil

public type JQueryEasing:
    linear,
    swing,

    // thoses are provided by jQuery UI

    easeInQuad,
    easeOutQuad,
    easeInOutQuad,
    easeInCubic,
    easeOutCubic,
    easeInOutCubic,
    easeInQuart,
    easeOutQuart,
    easeInOutQuart,
    easeInQuint,
    easeOutQuint,
    easeInOutQuint,
    easeInExpo,
    easeOutExpo,
    easeInOutExpo,
    easeInSine,
    easeOutSine,
    easeInOutSine,
    easeInCirc,
    easeOutCirc,
    easeInOutCirc,
    easeInElastic,
    easeOutElastic,
    easeInOutElastic,
    easeInBack,
    easeOutBack,
    easeInOutBack,
    easeInBounce,
    easeOutBounce,
    easeInOutBounce.

public define String
    format_easing
    (
        JQueryEasing easing
    ) =
        if easing is
        {
            linear  then
                "linear",

            swing  then
                "swing",

            easeInQuad  then 
                "easeInQuad",

            easeOutQuad  then 
                "easeOutQuad",

            easeInOutQuad  then 
                "easeInOutQuad",

            easeInCubic  then 
                "easeInCubic",

            easeOutCubic  then 
                "easeOutCubic",

            easeInOutCubic  then 
                "easeInQuart",

            easeInQuart  then 
                "easeInQuart",

            easeOutQuart  then 
                "easeOutQuart",

            easeInOutQuart  then 
                "easeInOutQuart",

            easeInQuint  then 
                "easeInQuint",

            easeOutQuint  then 
                "easeOutQuint",

            easeInOutQuint  then 
                "easeInOutQuint",

            easeInExpo  then 
                "easeInExpo",

            easeOutExpo  then 
                "easeOutExpo",

            easeInOutExpo  then 
                "easeInOutExpo",

            easeInSine  then 
                "easeInSine",

            easeOutSine  then
                "easeOutSine",

            easeInOutSine  then 
                "easeInOutSine",

            easeInCirc  then 
                "easeInCirc",

            easeOutCirc  then 
                "easeOutCirc",

            easeInOutCirc  then 
                "easeInOutCirc",

            easeInElastic  then 
                "easeInElastic",

            easeOutElastic  then 
                "easeOutElastic",

            easeInOutElastic  then 
                "easeInOutElastic",

            easeInBack  then 
                "easeInBack",

            easeOutBack  then 
                "easeOutBack",

            easeInOutBack  then 
                "easeInOutBack",

            easeInBounce  then 
                "easeInBounce",

            easeOutBounce  then 
                "easeOutBounce",

            easeInOutBounce  then  
                "easeInOutBounce"
        }.