Scroll progress
Read and write percentages from 0–100 with v-model:x and v-model:y, measured against the scrollable range rather than total content size. Bind either axis independently; use @update:y for observation without two-way control. Map the value directly to translation, rotation, opacity, or a CSS variable without an animation dependency. For GSAP, divide by 100 and pass it to a paused timeline’s progress(); create the timeline once rather than on every scroll.
Values retain fractional precision, out-of-range inputs are clamped to 0–100, and non-finite inputs are ignored. An axis without overflow reports 0. Viewport or content resizing preserves the actual pixel position and recalculates the percentage; temporarily hidden viewports retain their last progress and restore it when visible. With noresize, call update() after content changes. Programmatic smooth scrolling continues to report actual progress; observing updates does not initiate another scroll.