MCPcopy Index your code
hub / github.com/greensock/GSAP / _initCore

Function _initCore

esm/ScrollToPlugin.js:111–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 return !isNaN(value) && typeof value !== "object" ? parseFloat(value) - offset : _isString(value) && value.charAt(1) === "=" ? parseFloat(value.substr(2)) * (value.charAt(0) === "-" ? -1 : 1) + currentVal - offset : value === "max" ? _max(target, axis) - offset : Math.min(_max(target, axis), _getOffset(value, target)[axis] - offset);
110},
111 _initCore = function _initCore() {
112 gsap = _getGSAP();
113
114 if (_windowExists() && gsap && typeof document !== "undefined" && document.body) {
115 _window = window;
116 _body = document.body;
117 _docEl = document.documentElement;
118 _toArray = gsap.utils.toArray;
119 gsap.config({
120 autoKillThreshold: 7
121 });
122 _config = gsap.config();
123 _coreInitted = 1;
124 }
125};
126
127export var ScrollToPlugin = {
128 version: "3.15.0",

Callers 1

ScrollToPlugin.jsFile · 0.70

Calls 3

_getGSAPFunction · 0.70
_windowExistsFunction · 0.70
configMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…