Commit 9952c7cb0c7c73bd5bca7cdc3ed586a65d1d18dc

Authored by Julien Verneuil
1 parent 2bbf13cc

added jquery easing type and function to format them to string

Showing 1 changed file with 146 additions and 0 deletions   Show diff stats
web/jQuery/CXM_jquery_easing.anubis 0 → 100644
  1 + Easing equations specify an animation behavior.
  2 +
  3 + See: http://api.jqueryui.com/easings/
  4 +
  5 + Author: Julien Verneuil
  6 +
  7 +public type JQueryEasing:
  8 + linear,
  9 + swing,
  10 +
  11 + // thoses are provided by jQuery UI
  12 +
  13 + easeInQuad,
  14 + easeOutQuad,
  15 + easeInOutQuad,
  16 + easeInCubic,
  17 + easeOutCubic,
  18 + easeInOutCubic,
  19 + easeInQuart,
  20 + easeOutQuart,
  21 + easeInOutQuart,
  22 + easeInQuint,
  23 + easeOutQuint,
  24 + easeInOutQuint,
  25 + easeInExpo,
  26 + easeOutExpo,
  27 + easeInOutExpo,
  28 + easeInSine,
  29 + easeOutSine,
  30 + easeInOutSine,
  31 + easeInCirc,
  32 + easeOutCirc,
  33 + easeInOutCirc,
  34 + easeInElastic,
  35 + easeOutElastic,
  36 + easeInOutElastic,
  37 + easeInBack,
  38 + easeOutBack,
  39 + easeInOutBack,
  40 + easeInBounce,
  41 + easeOutBounce,
  42 + easeInOutBounce.
  43 +
  44 +public define String
  45 + format_easing
  46 + (
  47 + JQueryEasing easing
  48 + ) =
  49 + if easing is
  50 + {
  51 + linear then
  52 + "linear",
  53 +
  54 + swing then
  55 + "swing",
  56 +
  57 + easeInQuad then
  58 + "easeInQuad",
  59 +
  60 + easeOutQuad then
  61 + "easeOutQuad",
  62 +
  63 + easeInOutQuad then
  64 + "easeInOutQuad",
  65 +
  66 + easeInCubic then
  67 + "easeInCubic",
  68 +
  69 + easeOutCubic then
  70 + "easeOutCubic",
  71 +
  72 + easeInOutCubic then
  73 + "easeInQuart",
  74 +
  75 + easeInQuart then
  76 + "easeInQuart",
  77 +
  78 + easeOutQuart then
  79 + "easeOutQuart",
  80 +
  81 + easeInOutQuart then
  82 + "easeInOutQuart",
  83 +
  84 + easeInQuint then
  85 + "easeInQuint",
  86 +
  87 + easeOutQuint then
  88 + "easeOutQuint",
  89 +
  90 + easeInOutQuint then
  91 + "easeInOutQuint",
  92 +
  93 + easeInExpo then
  94 + "easeInExpo",
  95 +
  96 + easeOutExpo then
  97 + "easeOutExpo",
  98 +
  99 + easeInOutExpo then
  100 + "easeInOutExpo",
  101 +
  102 + easeInSine then
  103 + "easeInSine",
  104 +
  105 + easeOutSine then
  106 + "easeOutSine",
  107 +
  108 + easeInOutSine then
  109 + "easeInOutSine",
  110 +
  111 + easeInCirc then
  112 + "easeInCirc",
  113 +
  114 + easeOutCirc then
  115 + "easeOutCirc",
  116 +
  117 + easeInOutCirc then
  118 + "easeInOutCirc",
  119 +
  120 + easeInElastic then
  121 + "easeInElastic",
  122 +
  123 + easeOutElastic then
  124 + "easeOutElastic",
  125 +
  126 + easeInOutElastic then
  127 + "easeInOutElastic",
  128 +
  129 + easeInBack then
  130 + "easeInBack",
  131 +
  132 + easeOutBack then
  133 + "easeOutBack",
  134 +
  135 + easeInOutBack then
  136 + "easeInOutBack",
  137 +
  138 + easeInBounce then
  139 + "easeInBounce",
  140 +
  141 + easeOutBounce then
  142 + "easeOutBounce",
  143 +
  144 + easeInOutBounce then
  145 + "easeInOutBounce"
  146 + }.