Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var object = {
el : element,
virtual : virtual,
ease : ease,
update : update,
targetY: yStart || 0,
currentY: yStart || 0,
sectionHeight : element.getBoundingClientRect().height,
paused : false
};
this.elements.push(object);
if (this.elements.length > 0 && !this.isRunning) {
this.isRunning = true;
RAF.add(this.run);
}
}