PageSourceSearch

https://sbsexpedited.com/assets/frontarea/assets/js/tilt.jquery.min.js

js sbsexpedited.com collected 2026-10-04 19:39:50 UTC 10,231 bytes, 298 lines download raw bytes

1"use strict";
2var _typeof =
3  "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
4    ? function (t) {
5        return typeof t;
6      }
7    : function (t) {
8        return t &&
9          "function" == typeof Symbol &&
10          t.constructor === Symbol &&
11          t !== Symbol.prototype
12          ? "symbol"
13          : typeof t;
14      };
15!(function (t) {
16  "function" == typeof define && define.amd
17    ? define(["jquery"], t)
18    : "object" ===
19        ("undefined" == typeof module ? "undefined" : _typeof(module)) &&
20      module.exports
21    ? (module.exports = function (i, s) {
22        return (
23          void 0 === s &&
24            (s =
25              "undefined" != typeof window
26                ? require("jquery")
27                : require("jquery")(i)),
28          t(s),
29          s
30        );
31      })
32    : t(jQuery);
33})(function (t) {
34  return (
35    (t.fn.tilt = function (i) {
36      var s = function () {
37          this.ticking ||
38            (requestAnimationFrame(g.bind(this)), (this.ticking = !0));
39        },
40        e = function () {
41          var i = this;
42          t(this).on("mousemove", o),
43            t(this).on("mouseenter", a),
44            this.settings.reset && t(this).on("mouseleave", l),
45            this.settings.glare && t(window).on("resize", d.bind(i));
46        },
47        n = function () {
48          var i = this;
49          void 0 !== this.timeout && clearTimeout(this.timeout),
50            t(this).css({
51              transition: this.settings.speed + "ms " + this.settings.easing,
52            }),
53            this.settings.glare &&
54              this.glareElement.css({
55                transition:
56                  "opacity " +
57                  this.settings.speed +
58                  "ms " +
59                  this.settings.easing,
60              }),
61            (this.timeout = setTimeout(function () {
62              t(i).css({ transition: "" }),
63                i.settings.glare && i.glareElement.css({ transition: "" });
64            }, this.settings.speed));
65        },
66        a = function (i) {
67          (this.ticking = !1),
68            // t(this).css({ "will-change": "transform" }),
69            n.call(this),
70            t(this).trigger("tilt.mouseEnter");
71        },
72        r = function (i) {
73          return (
74            "undefined" == typeof i &&
75              (i = {
76                pageX: t(this).offset().left + t(this).outerWidth() / 2,
77                pageY: t(this).offset().top + t(this).outerHeight() / 2,
78              }),
79            { x: i.pageX, y: i.pageY }
80          );
81        },
82        o = function (t) {
83          (this.mousePositions = r(t)), s.call(this);
84        },
85        l = function () {
86          n.call(this),
87            (this.reset = !0),
88            s.call(this),
89            t(this).trigger("tilt.mouseLeave");
90        },
91        h = function () {
92          var i = t(this).outerWidth(),
93            s = t(this).outerHeight(),
94            e = t(this).offset().left,
95            n = t(this).offset().top,
96            a = (this.mousePositions.x - e) / i,
97            r = (this.mousePositions.y - n) / s,
98            o = (this.settings.maxTilt / 2 - a * this.settings.maxTilt).toFixed(
99              2
100            ),
101            l = (r * this.settings.maxTilt - this.settings.maxTilt / 2).toFixed(
102              2
103            ),
104            h =
105              Math.atan2(
106                this.mousePositions.x - (e + i / 2),
107                -(this.mousePositions.y - (n + s / 2))
108              ) *
109              (180 / Math.PI);
110          return {
111            tiltX: o,
112            tiltY: l,
113            percentageX: 100 * a,
114            percentageY: 100 * r,
115            angle: h,
116          };
117        },
118        g = function () {
119          return (
120            (this.transforms = h.call(this)),
121            this.reset
122              ? ((this.reset = !1),
123                t(this).css(
124                  "transform",
125                  "perspective(" +
126                    this.settings.perspective +
127                    "px) rotateX(0deg) rotateY(0deg)"
128                ),
129                void (
130                  this.settings.glare &&
131                  (this.glareElement.css(
132                    "transform",
133                    "rotate(180deg) translate(-50%, -50%)"
134                  ),
135                  this.glareElement.css("opacity", "0"))
136                ))
137              : (t(this).css(
138                  "transform",
139                  "perspective(" +
140                    this.settings.perspective +
141                    "px) rotateX(" +
142                    ("x" === this.settings.disableAxis
143                      ? 0
144                      : this.transforms.tiltY) +
145                    "deg) rotateY(" +
146                    ("y" === this.settings.disableAxis
147                      ? 0
148                      : this.transforms.tiltX) +
149                    "deg) scale3d(" +
150                    this.settings.scale +
151                    "," +
152                    this.settings.scale +
153                    "," +
154                    this.settings.scale +
155                    ")"
156                ),
157                this.settings.glare &&
158                  (this.glareElement.css(
159                    "transform",
160                    "rotate(" +
161                      this.transforms.angle +
162                      "deg) translate(-50%, -50%)"
163                  ),
164                  this.glareElement.css(
165                    "opacity",
166                    "" +
167                      (this.transforms.percentageY * this.settings.maxGlare) /
168                        100
169                  )),
170                t(this).trigger("change", [this.transforms]),
171                void (this.ticking = !1))
172          );
173        },
174        c = function () {
175          var i = this.settings.glarePrerender;
176          if (
177            (i ||
178              t(this).append(
179                '<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'
180              ),
181            (this.glareElementWrapper = t(this).find(".js-tilt-glare")),
182            (this.glareElement = t(this).find(".js-tilt-glare-inner")),
183            !i)
184          ) {
185            var s = {
186              position: "absolute",
187              top: "0",
188              left: "0",
189              width: "100%",
190              height: "100%",
191            };
192            this.glareElementWrapper
193              .css(s)
194              .css({ overflow: "hidden", "pointer-events": "none" }),
195              this.glareElement.css({
196                position: "absolute",
197                top: "50%",
198                left: "50%",
199                "background-image":
200                  "linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",
201                width: "" + 2 * t(this).outerWidth(),
202                height: "" + 2 * t(this).outerWidth(),
203                transform: "rotate(180deg) translate(-50%, -50%)",
204                "transform-origin": "0% 0%",
205                opacity: "0",
206              });
207          }
208        },
209        d = function () {
210          this.glareElement.css({
211            width: "" + 2 * t(this).outerWidth(),
212            height: "" + 2 * t(this).outerWidth(),
213          });
214        };
215      return (
216        (t.fn.tilt.destroy = function () {
217          t(this).each(function () {
218            t(this).find(".js-tilt-glare").remove(),
219              // t(this).css({ "will-change": "", transform: "" }),
220              t(this).off("mousemove mouseenter mouseleave");
221          });
222        }),
223        (t.fn.tilt.getValues = function () {
224          var i = [];
225          return (
226            t(this).each(function () {
227              (this.mousePositions = r.call(this)), i.push(h.call(this));
228            }),
229            i
230          );
231        }),
232        (t.fn.tilt.reset = function () {
233          t(this).each(function () {
234            var i = this;
235            (this.mousePositions = r.call(this)),
236              (this.settings = t(this).data("settings")),
237              l.call(this),
238              setTimeout(function () {
239                i.reset = !1;
240              }, this.settings.transition);
241          });
242        }),
243        this.each(function () {
244          var s = this;
245          (this.settings = t.extend(
246            {
247              maxTilt: t(this).is("[data-tilt-max]")
248                ? t(this).data("tilt-max")
249                : 20,
250              perspective: t(this).is("[data-tilt-perspective]")
251                ? t(this).data("tilt-perspective")
252                : 300,
253              easing: t(this).is("[data-tilt-easing]")
254                ? t(this).data("tilt-easing")
255                : "cubic-bezier(.03,.98,.52,.99)",
256              scale: t(this).is("[data-tilt-scale]")
257                ? t(this).data("tilt-scale")
258                : "1",
259              speed: t(this).is("[data-tilt-speed]")
260                ? t(this).data("tilt-speed")
261                : "400",
262              transition:
263                !t(this).is("[data-tilt-transition]") ||
264                t(this).data("tilt-transition"),
265              disableAxis: t(this).is("[data-tilt-disable-axis]")
266                ? t(this).data("tilt-disable-axis")
267                : null,
268              axis: t(this).is("[data-tilt-axis]")
269                ? t(this).data("tilt-axis")
270                : null,
271              reset:
272                !t(this).is("[data-tilt-reset]") || t(this).data("tilt-reset"),
273              glare:
274                !!t(this).is("[data-tilt-glare]") && t(this).data("tilt-glare"),
275              maxGlare: t(this).is("[data-tilt-maxglare]")
276                ? t(this).data("tilt-maxglare")
277                : 1,
278            },
279            i
280          )),
281            null !== this.settings.axis &&
282              (console.warn(
283                "Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information"
284              ),
285              (this.settings.disableAxis = this.settings.axis)),
286            (this.init = function () {
287              t(s).data("settings", s.settings),
288                s.settings.glare && c.call(s),
289                e.call(s);
290            }),
291            this.init();
292        })
293      );
294    }),
295    t("[data-tilt]").tilt(),
296    !0
297  );
298});

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.