From 9952c7cb0c7c73bd5bca7cdc3ed586a65d1d18dc Mon Sep 17 00:00:00 2001 From: Verneuil Julien Date: Tue, 28 Apr 2015 01:32:04 +0200 Subject: [PATCH] added jquery easing type and function to format them to string --- web/jQuery/CXM_jquery_easing.anubis | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+), 0 deletions(-) create mode 100644 web/jQuery/CXM_jquery_easing.anubis diff --git a/web/jQuery/CXM_jquery_easing.anubis b/web/jQuery/CXM_jquery_easing.anubis new file mode 100644 index 0000000..cb41cd7 --- /dev/null +++ b/web/jQuery/CXM_jquery_easing.anubis @@ -0,0 +1,146 @@ + 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" + }. -- libgit2 0.21.4