├── README.md ├── bower.json ├── LICENSE └── js ├── jquery.easing.compatibility.js ├── jquery.easing.min.js └── jquery.easing.js /README.md: -------------------------------------------------------------------------------- 1 | jQuery Easing Bower Package 2 | ================= 3 | 4 | This is a Bower component for [jQuery easing](http://gsgd.co.uk/sandbox/jquery/easing/) plugin (v1.3). 5 | 6 | # Installation 7 | 8 | `bower install jquery.easing --save` 9 | 10 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery.easing", 3 | "version": "1.3.1", 4 | "description": "jQuery Easing plugin", 5 | "homepage": "http://gsgd.co.uk/sandbox/jquery/easing/", 6 | "main": "js/jquery.easing.js", 7 | "keywords": [ 8 | "jquery", 9 | "jquery plugin", 10 | "easing" 11 | ], 12 | "dependencies": { 13 | "jquery": ">= 1.2.1" 14 | }, 15 | "authors": [ 16 | "Source code: George McGinley Smith", 17 | "Package: Jozef Izso" 18 | ], 19 | "licenses": "NewBSD", 20 | "ignore": [ 21 | "**/.*", 22 | "node_modules", 23 | "bower_components", 24 | "test", 25 | "tests" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013, Jozef Izso 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of the nor the 12 | names of its contributors may be used to endorse or promote products 13 | derived from this software without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /js/jquery.easing.compatibility.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Easing Compatibility v1 - http://gsgd.co.uk/sandbox/jquery.easing.php 3 | * 4 | * Adds compatibility for applications that use the pre 1.2 easing names 5 | * 6 | * Copyright (c) 2007 George Smith 7 | * Licensed under the MIT License: 8 | * http://www.opensource.org/licenses/mit-license.php 9 | */ 10 | 11 | jQuery.extend( jQuery.easing, 12 | { 13 | easeIn: function (x, t, b, c, d) { 14 | return jQuery.easing.easeInQuad(x, t, b, c, d); 15 | }, 16 | easeOut: function (x, t, b, c, d) { 17 | return jQuery.easing.easeOutQuad(x, t, b, c, d); 18 | }, 19 | easeInOut: function (x, t, b, c, d) { 20 | return jQuery.easing.easeInOutQuad(x, t, b, c, d); 21 | }, 22 | expoin: function(x, t, b, c, d) { 23 | return jQuery.easing.easeInExpo(x, t, b, c, d); 24 | }, 25 | expoout: function(x, t, b, c, d) { 26 | return jQuery.easing.easeOutExpo(x, t, b, c, d); 27 | }, 28 | expoinout: function(x, t, b, c, d) { 29 | return jQuery.easing.easeInOutExpo(x, t, b, c, d); 30 | }, 31 | bouncein: function(x, t, b, c, d) { 32 | return jQuery.easing.easeInBounce(x, t, b, c, d); 33 | }, 34 | bounceout: function(x, t, b, c, d) { 35 | return jQuery.easing.easeOutBounce(x, t, b, c, d); 36 | }, 37 | bounceinout: function(x, t, b, c, d) { 38 | return jQuery.easing.easeInOutBounce(x, t, b, c, d); 39 | }, 40 | elasin: function(x, t, b, c, d) { 41 | return jQuery.easing.easeInElastic(x, t, b, c, d); 42 | }, 43 | elasout: function(x, t, b, c, d) { 44 | return jQuery.easing.easeOutElastic(x, t, b, c, d); 45 | }, 46 | elasinout: function(x, t, b, c, d) { 47 | return jQuery.easing.easeInOutElastic(x, t, b, c, d); 48 | }, 49 | backin: function(x, t, b, c, d) { 50 | return jQuery.easing.easeInBack(x, t, b, c, d); 51 | }, 52 | backout: function(x, t, b, c, d) { 53 | return jQuery.easing.easeOutBack(x, t, b, c, d); 54 | }, 55 | backinout: function(x, t, b, c, d) { 56 | return jQuery.easing.easeInOutBack(x, t, b, c, d); 57 | } 58 | }); -------------------------------------------------------------------------------- /js/jquery.easing.min.js: -------------------------------------------------------------------------------- 1 | jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a