PageSourceSearch

https://biotexcom.com/wp-content/themes/medicenter/js/jquery.easing.1.4.1.js?ver=7.1.2

js biotexcom.com collected 2026-09-25 00:19:07 UTC 4,047 bytes, 166 lines download raw bytes

vendor: 4,047 bytes, lines 1-166
1/*
2 * jQuery Easing v1.4.1 - http://gsgd.co.uk/sandbox/jquery/easing/
3 * Open source under the BSD License.
4 * Copyright © 2008 George McGinley Smith
5 * All rights reserved.
6 * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
7*/
8
9(function (factory) {
10	if (typeof define === "function" && define.amd) {
11		define(['jquery'], function ($) {
12			return factory($);
13		});
14	} else if (typeof module === "object" && typeof module.exports === "object") {
15		exports = factory(require('jquery'));
16	} else {
17		factory(jQuery);
18	}
19})(function($){
20
21// Preserve the original jQuery "swing" easing as "jswing"
22$.easing.jswing = $.easing.swing;
23
24var pow = Math.pow,
25	sqrt = Math.sqrt,
26	sin = Math.sin,
27	cos = Math.cos,
28	PI = Math.PI,
29	c1 = 1.70158,
30	c2 = c1 * 1.525,
31	c3 = c1 + 1,
32	c4 = ( 2 * PI ) / 3,
33	c5 = ( 2 * PI ) / 4.5;
34
35// x is the fraction of animation progress, in the range 0..1
36function bounceOut(x) {
37	var n1 = 7.5625,
38		d1 = 2.75;
39	if ( x < 1/d1 ) {
40		return n1*x*x;
41	} else if ( x < 2/d1 ) {
42		return n1*(x-=(1.5/d1))*x + 0.75;
43	} else if ( x < 2.5/d1 ) {
44		return n1*(x-=(2.25/d1))*x + 0.9375;
45	} else {
46		return n1*(x-=(2.625/d1))*x + 0.984375;
47	}
48}
49
50$.extend( $.easing,
51{
52	def: 'easeOutQuad',
53	swing: function (x) {
54		return $.easing[$.easing.def](x);
55	},
56	easeInQuad: function (x) {
57		return x * x;
58	},
59	easeOutQuad: function (x) {
60		return 1 - ( 1 - x ) * ( 1 - x );
61	},
62	easeInOutQuad: function (x) {
63		return x < 0.5 ?
64			2 * x * x :
65			1 - pow( -2 * x + 2, 2 ) / 2;
66	},
67	easeInCubic: function (x) {
68		return x * x * x;
69	},
70	easeOutCubic: function (x) {
71		return 1 - pow( 1 - x, 3 );
72	},
73	easeInOutCubic: function (x) {
74		return x < 0.5 ?
75			4 * x * x * x :
76			1 - pow( -2 * x + 2, 3 ) / 2;
77	},
78	easeInQuart: function (x) {
79		return x * x * x * x;
80	},
81	easeOutQuart: function (x) {
82		return 1 - pow( 1 - x, 4 );
83	},
84	easeInOutQuart: function (x) {
85		return x < 0.5 ?
86			8 * x * x * x * x :
87			1 - pow( -2 * x + 2, 4 ) / 2;
88	},
89	easeInQuint: function (x) {
90		return x * x * x * x * x;
91	},
92	easeOutQuint: function (x) {
93		return 1 - pow( 1 - x, 5 );
94	},
95	easeInOutQuint: function (x) {
96		return x < 0.5 ?
97			16 * x * x * x * x * x :
98			1 - pow( -2 * x + 2, 5 ) / 2;
99	},
100	easeInSine: function (x) {
101		return 1 - cos( x * PI/2 );
102	},
103	easeOutSine: function (x) {
104		return sin( x * PI/2 );
105	},
106	easeInOutSine: function (x) {
107		return -( cos( PI * x ) - 1 ) / 2;
108	},
109	easeInExpo: function (x) {
110		return x === 0 ? 0 : pow( 2, 10 * x - 10 );
111	},
112	easeOutExpo: function (x) {
113		return x === 1 ? 1 : 1 - pow( 2, -10 * x );
114	},
115	easeInOutExpo: function (x) {
116		return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
117			pow( 2, 20 * x - 10 ) / 2 :
118			( 2 - pow( 2, -20 * x + 10 ) ) / 2;
119	},
120	easeInCirc: function (x) {
121		return 1 - sqrt( 1 - pow( x, 2 ) );
122	},
123	easeOutCirc: function (x) {
124		return sqrt( 1 - pow( x - 1, 2 ) );
125	},
126	easeInOutCirc: function (x) {
127		return x < 0.5 ?
128			( 1 - sqrt( 1 - pow( 2 * x, 2 ) ) ) / 2 :
129			( sqrt( 1 - pow( -2 * x + 2, 2 ) ) + 1 ) / 2;
130	},
131	easeInElastic: function (x) {
132		return x === 0 ? 0 : x === 1 ? 1 :
133			-pow( 2, 10 * x - 10 ) * sin( ( x * 10 - 10.75 ) * c4 );
134	},
135	easeOutElastic: function (x) {
136		return x === 0 ? 0 : x === 1 ? 1 :
137			pow( 2, -10 * x ) * sin( ( x * 10 - 0.75 ) * c4 ) + 1;
138	},
139	easeInOutElastic: function (x) {
140		return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
141			-( pow( 2, 20 * x - 10 ) * sin( ( 20 * x - 11.125 ) * c5 )) / 2 :
142			pow( 2, -20 * x + 10 ) * sin( ( 20 * x - 11.125 ) * c5 ) / 2 + 1;
143	},
144	easeInBack: function (x) {
145		return c3 * x * x * x - c1 * x * x;
146	},
147	easeOutBack: function (x) {
148		return 1 + c3 * pow( x - 1, 3 ) + c1 * pow( x - 1, 2 );
149	},
150	easeInOutBack: function (x) {
151		return x < 0.5 ?
152			( pow( 2 * x, 2 ) * ( ( c2 + 1 ) * 2 * x - c2 ) ) / 2 :
153			( pow( 2 * x - 2, 2 ) *( ( c2 + 1 ) * ( x * 2 - 2 ) + c2 ) + 2 ) / 2;
154	},
155	easeInBounce: function (x) {
156		return 1 - bounceOut( 1 - x );
157	},
158	easeOutBounce: bounceOut,
159	easeInOutBounce: function (x) {
160		return x < 0.5 ?
161			( 1 - bounceOut( 1 - 2 * x ) ) / 2 :
162			( 1 + bounceOut( 2 * x - 1 ) ) / 2;
163	}
164});
165
166});

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.