PageSourceSearch

https://pava.pro/bitrix/templates/dresscodeV2/js/jquery.easing.1.3.js

js pava.pro collected 2026-09-26 05:44:22 UTC 5,206 bytes, 159 lines download raw bytes

1jQuery.easing["jswing"] = jQuery.easing["swing"];
2jQuery.extend(jQuery.easing, {
3	def: "easeOutQuad",
4	swing: function (x, t, b, c, d) {
5		//alert(jQuery.easing.default);
6		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
7	},
8	easeInQuad: function (x, t, b, c, d) {
9		return c * (t /= d) * t + b;
10	},
11	easeOutQuad: function (x, t, b, c, d) {
12		return -c * (t /= d) * (t - 2) + b;
13	},
14	easeInOutQuad: function (x, t, b, c, d) {
15		if ((t /= d / 2) < 1) return (c / 2) * t * t + b;
16		return (-c / 2) * (--t * (t - 2) - 1) + b;
17	},
18	easeInCubic: function (x, t, b, c, d) {
19		return c * (t /= d) * t * t + b;
20	},
21	easeOutCubic: function (x, t, b, c, d) {
22		return c * ((t = t / d - 1) * t * t + 1) + b;
23	},
24	easeInOutCubic: function (x, t, b, c, d) {
25		if ((t /= d / 2) < 1) return (c / 2) * t * t * t + b;
26		return (c / 2) * ((t -= 2) * t * t + 2) + b;
27	},
28	easeInQuart: function (x, t, b, c, d) {
29		return c * (t /= d) * t * t * t + b;
30	},
31	easeOutQuart: function (x, t, b, c, d) {
32		return -c * ((t = t / d - 1) * t * t * t - 1) + b;
33	},
34	easeInOutQuart: function (x, t, b, c, d) {
35		if ((t /= d / 2) < 1) return (c / 2) * t * t * t * t + b;
36		return (-c / 2) * ((t -= 2) * t * t * t - 2) + b;
37	},
38	easeInQuint: function (x, t, b, c, d) {
39		return c * (t /= d) * t * t * t * t + b;
40	},
41	easeOutQuint: function (x, t, b, c, d) {
42		return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
43	},
44	easeInOutQuint: function (x, t, b, c, d) {
45		if ((t /= d / 2) < 1) return (c / 2) * t * t * t * t * t + b;
46		return (c / 2) * ((t -= 2) * t * t * t * t + 2) + b;
47	},
48	easeInSine: function (x, t, b, c, d) {
49		return -c * Math.cos((t / d) * (Math.PI / 2)) + c + b;
50	},
51	easeOutSine: function (x, t, b, c, d) {
52		return c * Math.sin((t / d) * (Math.PI / 2)) + b;
53	},
54	easeInOutSine: function (x, t, b, c, d) {
55		return (-c / 2) * (Math.cos((Math.PI * t) / d) - 1) + b;
56	},
57	easeInExpo: function (x, t, b, c, d) {
58		return t == 0 ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
59	},
60	easeOutExpo: function (x, t, b, c, d) {
61		return t == d ? b + c : c * (-Math.pow(2, (-10 * t) / d) + 1) + b;
62	},
63	easeInOutExpo: function (x, t, b, c, d) {
64		if (t == 0) return b;
65		if (t == d) return b + c;
66		if ((t /= d / 2) < 1) return (c / 2) * Math.pow(2, 10 * (t - 1)) + b;
67		return (c / 2) * (-Math.pow(2, -10 * --t) + 2) + b;
68	},
69	easeInCirc: function (x, t, b, c, d) {
70		return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
71	},
72	easeOutCirc: function (x, t, b, c, d) {
73		return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
74	},
75	easeInOutCirc: function (x, t, b, c, d) {
76		if ((t /= d / 2) < 1) return (-c / 2) * (Math.sqrt(1 - t * t) - 1) + b;
77		return (c / 2) * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
78	},
79	easeInElastic: function (x, t, b, c, d) {
80		var s = 1.70158;
81		var p = 0;
82		var a = c;
83		if (t == 0) return b;
84		if ((t /= d) == 1) return b + c;
85		if (!p) p = d * 0.3;
86		if (a < Math.abs(c)) {
87			a = c;
88			var s = p / 4;
89		} else var s = (p / (2 * Math.PI)) * Math.asin(c / a);
90		return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin(((t * d - s) * (2 * Math.PI)) / p)) + b;
91	},
92	easeOutElastic: function (x, t, b, c, d) {
93		var s = 1.70158;
94		var p = 0;
95		var a = c;
96		if (t == 0) return b;
97		if ((t /= d) == 1) return b + c;
98		if (!p) p = d * 0.3;
99		if (a < Math.abs(c)) {
100			a = c;
101			var s = p / 4;
102		} else var s = (p / (2 * Math.PI)) * Math.asin(c / a);
103		return a * Math.pow(2, -10 * t) * Math.sin(((t * d - s) * (2 * Math.PI)) / p) + c + b;
104	},
105	easeInOutElastic: function (x, t, b, c, d) {
106		var s = 1.70158;
107		var p = 0;
108		var a = c;
109		if (t == 0) return b;
110		if ((t /= d / 2) == 2) return b + c;
111		if (!p) p = d * (0.3 * 1.5);
112		if (a < Math.abs(c)) {
113			a = c;
114			var s = p / 4;
115		} else var s = (p / (2 * Math.PI)) * Math.asin(c / a);
116		if (t < 1)
117			return (
118				-0.5 *
119					(a * Math.pow(2, 10 * (t -= 1)) * Math.sin(((t * d - s) * (2 * Math.PI)) / p)) +
120				b
121			);
122		return (
123			a * Math.pow(2, -10 * (t -= 1)) * Math.sin(((t * d - s) * (2 * Math.PI)) / p) * 0.5 +
124			c +
125			b
126		);
127	},
128	easeInBack: function (x, t, b, c, d, s) {
129		if (s == undefined) s = 1.70158;
130		return c * (t /= d) * t * ((s + 1) * t - s) + b;
131	},
132	easeOutBack: function (x, t, b, c, d, s) {
133		if (s == undefined) s = 1.70158;
134		return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
135	},
136	easeInOutBack: function (x, t, b, c, d, s) {
137		if (s == undefined) s = 1.70158;
138		if ((t /= d / 2) < 1) return (c / 2) * (t * t * (((s *= 1.525) + 1) * t - s)) + b;
139		return (c / 2) * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;
140	},
141	easeInBounce: function (x, t, b, c, d) {
142		return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b;
143	},
144	easeOutBounce: function (x, t, b, c, d) {
145		if ((t /= d) < 1 / 2.75) {
146			return c * (7.5625 * t * t) + b;
147		} else if (t < 2 / 2.75) {
148			return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b;
149		} else if (t < 2.5 / 2.75) {
150			return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b;
151		} else {
152			return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b;
153		}
154	},
155	easeInOutBounce: function (x, t, b, c, d) {
156		if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * 0.5 + b;
157		return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;
158	}
159});

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.