PageSourceSearch

https://globaltopgroup.com/wp-content/themes/globaltopgroup/scripts/jquery.easing.min.js?ver=1.3

js globaltopgroup.com collected 2026-10-08 08:12:21 UTC 8,642 bytes, 248 lines download raw bytes

vendor: 8,642 bytes, lines 1-248
1/*
2 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3 *
4 * Uses the built in easing capabilities added In jQuery 1.1
5 * to offer multiple easing options
6 *
7 * TERMS OF USE - EASING EQUATIONS
8 * 
9 * Open source under the BSD License. 
10 * 
11 * Copyright © 2001 Robert Penner
12 * All rights reserved.
13 *
14 * TERMS OF USE - jQuery Easing
15 * 
16 * Open source under the BSD License. 
17 * 
18 * Copyright © 2008 George McGinley Smith
19 * All rights reserved.
20 *
21 * Redistribution and use in source and binary forms, with or without modification, 
22 * are permitted provided that the following conditions are met:
23 * 
24 * Redistributions of source code must retain the above copyright notice, this list of 
25 * conditions and the following disclaimer.
26 * Redistributions in binary form must reproduce the above copyright notice, this list 
27 * of conditions and the following disclaimer in the documentation and/or other materials 
28 * provided with the distribution.
29 * 
30 * Neither the name of the author nor the names of contributors may be used to endorse 
31 * or promote products derived from this software without specific prior written permission.
32 * 
33 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
34 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
35 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
36 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
37 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
38 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
39 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
40 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
41 * OF THE POSSIBILITY OF SUCH DAMAGE. 
42 *
43*/
44jQuery.easing.jswing = jQuery.easing.swing;
45jQuery.extend(jQuery.easing, {
46    def: "easeOutQuad",
47    swing: function(e, f, a, h, g) {
48        return jQuery.easing[jQuery.easing.def](e, f, a, h, g)
49    },
50    easeInQuad: function(e, f, a, h, g) {
51        return h * (f /= g) * f + a
52    },
53    easeOutQuad: function(e, f, a, h, g) {
54        return -h * (f /= g) * (f - 2) + a
55    },
56    easeInOutQuad: function(e, f, a, h, g) {
57        if ((f /= g / 2) < 1) {
58            return h / 2 * f * f + a
59        }
60        return -h / 2 * ((--f) * (f - 2) - 1) + a
61    },
62    easeInCubic: function(e, f, a, h, g) {
63        return h * (f /= g) * f * f + a
64    },
65    easeOutCubic: function(e, f, a, h, g) {
66        return h * ((f = f / g - 1) * f * f + 1) + a
67    },
68    easeInOutCubic: function(e, f, a, h, g) {
69        if ((f /= g / 2) < 1) {
70            return h / 2 * f * f * f + a
71        }
72        return h / 2 * ((f -= 2) * f * f + 2) + a
73    },
74    easeInQuart: function(e, f, a, h, g) {
75        return h * (f /= g) * f * f * f + a
76    },
77    easeOutQuart: function(e, f, a, h, g) {
78        return -h * ((f = f / g - 1) * f * f * f - 1) + a
79    },
80    easeInOutQuart: function(e, f, a, h, g) {
81        if ((f /= g / 2) < 1) {
82            return h / 2 * f * f * f * f + a
83        }
84        return -h / 2 * ((f -= 2) * f * f * f - 2) + a
85    },
86    easeInQuint: function(e, f, a, h, g) {
87        return h * (f /= g) * f * f * f * f + a
88    },
89    easeOutQuint: function(e, f, a, h, g) {
90        return h * ((f = f / g - 1) * f * f * f * f + 1) + a
91    },
92    easeInOutQuint: function(e, f, a, h, g) {
93        if ((f /= g / 2) < 1) {
94            return h / 2 * f * f * f * f * f + a
95        }
96        return h / 2 * ((f -= 2) * f * f * f * f + 2) + a
97    },
98    easeInSine: function(e, f, a, h, g) {
99        return -h * Math.cos(f / g * (Math.PI / 2)) + h + a
100    },
101    easeOutSine: function(e, f, a, h, g) {
102        return h * Math.sin(f / g * (Math.PI / 2)) + a
103    },
104    easeInOutSine: function(e, f, a, h, g) {
105        return -h / 2 * (Math.cos(Math.PI * f / g) - 1) + a
106    },
107    easeInExpo: function(e, f, a, h, g) {
108        return (f == 0) ? a : h * Math.pow(2, 10 * (f / g - 1)) + a
109    },
110    easeOutExpo: function(e, f, a, h, g) {
111        return (f == g) ? a + h : h * (-Math.pow(2, -10 * f / g) + 1) + a
112    },
113    easeInOutExpo: function(e, f, a, h, g) {
114        if (f == 0) {
115            return a
116        }
117        if (f == g) {
118            return a + h
119        }
120        if ((f /= g / 2) < 1) {
121            return h / 2 * Math.pow(2, 10 * (f - 1)) + a
122        }
123        return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a
124    },
125    easeInCirc: function(e, f, a, h, g) {
126        return -h * (Math.sqrt(1 - (f /= g) * f) - 1) + a
127    },
128    easeOutCirc: function(e, f, a, h, g) {
129        return h * Math.sqrt(1 - (f = f / g - 1) * f) + a
130    },
131    easeInOutCirc: function(e, f, a, h, g) {
132        if ((f /= g / 2) < 1) {
133            return -h / 2 * (Math.sqrt(1 - f * f) - 1) + a
134        }
135        return h / 2 * (Math.sqrt(1 - (f -= 2) * f) + 1) + a
136    },
137    easeInElastic: function(f, h, e, l, k) {
138        var i = 1.70158;
139        var j = 0;
140        var g = l;
141        if (h == 0) {
142            return e
143        }
144        if ((h /= k) == 1) {
145            return e + l
146        }
147        if (!j) {
148            j = k * 0.3
149        }
150        if (g < Math.abs(l)) {
151            g = l;
152            var i = j / 4
153        } else {
154            var i = j / (2 * Math.PI) * Math.asin(l / g)
155        }
156        return -(g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e
157    },
158    easeOutElastic: function(f, h, e, l, k) {
159        var i = 1.70158;
160        var j = 0;
161        var g = l;
162        if (h == 0) {
163            return e
164        }
165        if ((h /= k) == 1) {
166            return e + l
167        }
168        if (!j) {
169            j = k * 0.3
170        }
171        if (g < Math.abs(l)) {
172            g = l;
173            var i = j / 4
174        } else {
175            var i = j / (2 * Math.PI) * Math.asin(l / g)
176        }
177        return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e
178    },
179    easeInOutElastic: function(f, h, e, l, k) {
180        var i = 1.70158;
181        var j = 0;
182        var g = l;
183        if (h == 0) {
184            return e
185        }
186        if ((h /= k / 2) == 2) {
187            return e + l
188        }
189        if (!j) {
190            j = k * (0.3 * 1.5)
191        }
192        if (g < Math.abs(l)) {
193            g = l;
194            var i = j / 4
195        } else {
196            var i = j / (2 * Math.PI) * Math.asin(l / g)
197        }
198        if (h < 1) {
199            return -0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e
200        }
201        return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e
202    },
203    easeInBack: function(e, f, a, i, h, g) {
204        if (g == undefined) {
205            g = 1.70158
206        }
207        return i * (f /= h) * f * ((g + 1) * f - g) + a
208    },
209    easeOutBack: function(e, f, a, i, h, g) {
210        if (g == undefined) {
211            g = 1.70158
212        }
213        return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a
214    },
215    easeInOutBack: function(e, f, a, i, h, g) {
216        if (g == undefined) {
217            g = 1.70158
218        }
219        if ((f /= h / 2) < 1) {
220            return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a
221        }
222        return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a
223    },
224    easeInBounce: function(e, f, a, h, g) {
225        return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a
226    },
227    easeOutBounce: function(e, f, a, h, g) {
228        if ((f /= g) < (1 / 2.75)) {
229            return h * (7.5625 * f * f) + a
230        } else {
231            if (f < (2 / 2.75)) {
232                return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a
233            } else {
234                if (f < (2.5 / 2.75)) {
235                    return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a
236                } else {
237                    return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a
238                }
239            }
240        }
241    },
242    easeInOutBounce: function(e, f, a, h, g) {
243        if (f < g / 2) {
244            return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a
245        }
246        return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a
247    }
248});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.