Вход Регистрация
Файл: CloudBox-main/CloudBox/admin_assets/js/lib/jquery.easing.js
Строк: 231
<?php
/* ============================================================
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Open source under the BSD License.
 *
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * https://raw.github.com/danro/jquery-easing/master/LICENSE
 * ======================================================== */

jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend(jQuery.easing,
    {
        
// t: current time, b: begInnIng value, c: change In value, d: duration

        
def'easeOutQuad',
        
swing: function (xtbcd) {
            
//alert(jQuery.easing.default);
            
return jQuery.easing[jQuery.easing.def](xtbcd);
        },
        
easeInQuad: function (xtbcd) {
            return 
* (/= d) * b;
        },
        
easeOutQuad: function (xtbcd) {
            return -
* (/= d) * (2) + b;
        },
        
easeInOutQuad: function (xtbcd) {
            if ((
/= 2) < 1) return b;
            return -
* ((--t) * (2) - 1) + b;
        },
        
easeInCubic: function (xtbcd) {
            return 
* (/= d) * b;
        },
        
easeOutCubic: function (xtbcd) {
            return 
* ((1) * 1) + b;
        },
        
easeInOutCubic: function (xtbcd) {
            if ((
/= 2) < 1) return b;
            return 
* ((-= 2) * 2) + b;
        },
        
easeInQuart: function (xtbcd) {
            return 
* (/= d) * b;
        },
        
easeOutQuart: function (xtbcd) {
            return -
* ((1) * 1) + b;
        },
        
easeInOutQuart: function (xtbcd) {
            if ((
/= 2) < 1) return b;
            return -
* ((-= 2) * 2) + b;
        },
        
easeInQuint: function (xtbcd) {
            return 
* (/= d) * b;
        },
        
easeOutQuint: function (xtbcd) {
            return 
* ((1) * 1) + b;
        },
        
easeInOutQuint: function (xtbcd) {
            if ((
/= 2) < 1) return b;
            return 
* ((-= 2) * 2) + b;
        },
        
easeInSine: function (xtbcd) {
            return -
Math.cos(* (Math.PI 2)) + b;
        },
        
easeOutSine: function (xtbcd) {
            return 
Math.sin(* (Math.PI 2)) + b;
        },
        
easeInOutSine: function (xtbcd) {
            return -
* (Math.cos(Math.PI d) - 1) + b;
        },
        
easeInExpo: function (xtbcd) {
            return (
== 0) ? Math.pow(210 * (1)) + b;
        },
        
easeOutExpo: function (xtbcd) {
            return (
== d) ? * (-Math.pow(2, -10 d) + 1) + b;
        },
        
easeInOutExpo: function (xtbcd) {
            if (
== 0) return b;
            if (
== d) return c;
            if ((
/= 2) < 1) return Math.pow(210 * (1)) + b;
            return 
* (-Math.pow(2, -10 * --t) + 2) + b;
        },
        
easeInCirc: function (xtbcd) {
            return -
* (Math.sqrt(- (/= d) * t) - 1) + b;
        },
        
easeOutCirc: function (xtbcd) {
            return 
Math.sqrt(- (1) * t) + b;
        },
        
easeInOutCirc: function (xtbcd) {
            if ((
/= 2) < 1) return -* (Math.sqrt(t) - 1) + b;
            return 
* (Math.sqrt(- (-= 2) * t) + 1) + b;
        },
        
easeInElastic: function (xtbcd) {
            var 
1.70158;
            var 
0;
            var 
c;
            if (
== 0) return b;
            if ((
/= d) == 1) return c;
            if (!
p.3;
            if (
Math.abs(c)) {
                
c;
                var 
4;
            }
            else var 
/ (Math.PI) * Math.asin(a);
            return -(
Math.pow(210 * (-= 1)) * Math.sin((s) * (Math.PI) / p)) + b;
        },
        
easeOutElastic: function (xtbcd) {
            var 
1.70158;
            var 
0;
            var 
c;
            if (
== 0) return b;
            if ((
/= d) == 1) return c;
            if (!
p.3;
            if (
Math.abs(c)) {
                
c;
                var 
4;
            }
            else var 
/ (Math.PI) * Math.asin(a);
            return 
Math.pow(2, -10 t) * Math.sin((s) * (Math.PI) / p) + b;
        },
        
easeInOutElastic: function (xtbcd) {
            var 
1.70158;
            var 
0;
            var 
c;
            if (
== 0) return b;
            if ((
/= 2) == 2) return c;
            if (!
p* (.3 1.5);
            if (
Math.abs(c)) {
                
c;
                var 
4;
            }
            else var 
/ (Math.PI) * Math.asin(a);
            if (
1) return -.5 * (Math.pow(210 * (-= 1)) * Math.sin((s) * (Math.PI) / p)) + b;
            return 
Math.pow(2, -10 * (-= 1)) * Math.sin((s) * (Math.PI) / p) * .5 b;
        },
        
easeInBack: function (xtbcds) {
            if (
== undefined1.70158;
            return 
* (/= d) * * ((1) * s) + b;
        },
        
easeOutBack: function (xtbcds) {
            if (
== undefined1.70158;
            return 
* ((1) * * ((1) * s) + 1) + b;
        },
        
easeInOutBack: function (xtbcds) {
            if (
== undefined1.70158;
            if ((
/= 2) < 1) return * (* (((*= (1.525)) + 1) * s)) + b;
            return 
* ((-= 2) * * (((*= (1.525)) + 1) * s) + 2) + b;
        },
        
easeInBounce: function (xtbcd) {
            return 
jQuery.easing.easeOutBounce(xt0cd) + b;
        },
        
easeOutBounce: function (xtbcd) {
            if ((
/= d) < (2.75)) {
                return 
* (7.5625 t) + b;
            } else if (
< (2.75)) {
                return 
* (7.5625 * (-= (1.5 2.75)) * .75) + b;
            } else if (
< (2.5 2.75)) {
                return 
* (7.5625 * (-= (2.25 2.75)) * .9375) + b;
            } else {
                return 
* (7.5625 * (-= (2.625 2.75)) * .984375) + b;
            }
        },
        
easeInOutBounce: function (xtbcd) {
            if (
2) return jQuery.easing.easeInBounce(x20cd) * .5 b;
            return 
jQuery.easing.easeOutBounce(xd0cd) * .5 .5 b;
        }
    });

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */
?>
Онлайн: 0
Реклама