MCPcopy
hub / github.com/greensock/GSAP / _getClosestLabel

Function _getClosestLabel

esm/ScrollTrigger.js:213–217  ·  view source on GitHub ↗
(animation)

Source from the content-addressed store, hash-verified

211 return a;
212},
213 _getClosestLabel = function _getClosestLabel(animation) {
214 return function (value) {
215 return gsap.utils.snap(_getLabelRatioArray(animation), value);
216 };
217},
218 _snapDirectional = function _snapDirectional(snapIncrementOrArray) {
219 var snap = gsap.utils.snap(snapIncrementOrArray),
220 a = Array.isArray(snapIncrementOrArray) && snapIncrementOrArray.slice(0).sort(function (a, b) {

Callers 1

ScrollTrigger.jsFile · 0.70

Calls 1

_getLabelRatioArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…