Browse code

Initial commit

Benjamin Roth authored on22/05/2020 12:22:50
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,68 @@
1
+/*!
2
+ * ScrollMagic v2.0.7 (2019-05-07)
3
+ * The javascript library for magical scroll interactions.
4
+ * (c) 2019 Jan Paepke (@janpaepke)
5
+ * Project Website: http://scrollmagic.io
6
+ * 
7
+ * @version 2.0.7
8
+ * @license Dual licensed under MIT license and GPL.
9
+ * @author Jan Paepke - e-mail@janpaepke.de
10
+ *
11
+ * @file ScrollMagic jQuery plugin.
12
+ *
13
+ * requires: jQuery >=1.11
14
+ */
15
+/**
16
+ * This plugin is meant to be used in conjunction with jQuery.  
17
+ * It enables ScrollMagic to make use of jQuery's advanced selector engine (sizzle) for all elements supplied to ScrollMagic objects, like scroll containers or trigger elements.  
18
+ * ScrollMagic also accepts jQuery elements for all methods that expect references to DOM elements. Please note, that in most cases the first element of the matched set will be used.
19
+ * 
20
+ * Additionally it provides the ScrollMagic object within the jQuery namespace, so it can be accessed using `$.ScrollMagic`.
21
+ *
22
+ * In contrast to most other plugins it does not offer new API additions for ScrollMagic.
23
+ *
24
+ * To have access to this extension, please include `plugins/jquery.ScrollMagic.js`.
25
+ * @example
26
+ * // create a new scene making use of jQuery's advanced selector engine
27
+ * var scene = new $.ScrollMagic.Scene({
28
+ *   triggerElement: "#parent div.trigger[attr='thisone']:not(.notthisone)"
29
+ * });
30
+ * @requires {@link http://jquery.com/|jQuery >=1.11}
31
+ * @mixin framework.jQuery
32
+ */
33
+(function (root, factory) {
34
+	if (typeof define === 'function' && define.amd) {
35
+		// AMD. Register as an anonymous module.
36
+		define(['ScrollMagic', 'jquery'], factory);
37
+	} else if (typeof exports === 'object') {
38
+		// CommonJS
39
+		factory(require('scrollmagic'), require('jquery'));
40
+	} else {
41
+		// Browser global
42
+		factory(root.ScrollMagic, root.jQuery);
43
+	}
44
+}(this, function (ScrollMagic, $) {
45
+	"use strict";
46
+	var NAMESPACE = "jquery.ScrollMagic";
47
+
48
+	var
49
+		console = window.console || {},
50
+		err = Function.prototype.bind.call(console.error || console.log || function () {}, console);
51
+	if (!ScrollMagic) {
52
+		err("(" + NAMESPACE + ") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");
53
+	}
54
+	if (!$) {
55
+		err("(" + NAMESPACE + ") -> ERROR: jQuery could not be found. Please make sure it's loaded before ScrollMagic or use an asynchronous loader like requirejs.");
56
+	}
57
+
58
+	ScrollMagic._util.get.elements = function (selector) {
59
+		return $(selector).toArray();
60
+	};
61
+	ScrollMagic._util.addClass = function (elem, classname) {
62
+		$(elem).addClass(classname);
63
+	};
64
+	ScrollMagic._util.removeClass = function (elem, classname) {
65
+		$(elem).removeClass(classname);
66
+	};
67
+	$.ScrollMagic = ScrollMagic;
68
+}));
0 69
\ No newline at end of file