src/classes/ParallaxController.js
function _updateAllElements({ updateCache } = {}) {
        elements.forEach(element => {
            _updateElementPosition(element);
            if (updateCache) {
                element.setCachedAttributes(view, scroll);
            }
        });
        // reset ticking so more animations can be called
        ticking = false;
    }
function _updateAllElements({ updateCache } = {}) {
        elements.forEach(element => {
            _updateElementPosition(element);
            if (updateCache) {
                element.setCachedAttributes(view, scroll);
            }
        });
        // reset ticking so more animations can be called
        ticking = false;
    }
function _updateAllElements ( { updateCache } = { } ) { elements . forEach ( element => { _updateElementPosition ( element ) ; if ( updateCache ) { element . setCachedAttributes ( view , scroll ) ; } } ) ; // reset ticking so more animations can be called ticking = false ; }
Update element positions.
Determines if the element is in view based on the cached
attributes, if so set the elements parallax styles.
Update element positions . Determines if the element is in view based on the cached attributes if so set the elements parallax styles .