Open moritzebeling opened 4 years ago
After page load, the parallax offset is calculated. But when you first start scrolling, parallax elements do a jump and then continue to move smoothly.
This means, that the first initial parallax position must be incorrect.
As a first hack, I caused a redraw immediately after setting up all elements:
setTimeout(() => { context.onScroll(); }, 1);
After page load, the parallax offset is calculated. But when you first start scrolling, parallax elements do a jump and then continue to move smoothly.
This means, that the first initial parallax position must be incorrect.