Repository navigation
Releases: nikhilswain/vidscroll
Releases · nikhilswain/vidscroll
Release list
v0.3.2
v0.3.1
- Fixed: easing presets moved the video backwards near the end of the scroll.
All presets now move forward only. easingandsmoothingTauMsapply immediately when they change; a new
fpsrebuilds the scroll mapping; a changedoptimizevalue reloads.vidscroll/core:update()now changes only the options you pass, and the
newsetOptions()replaces all of them.fullPreload={false}checks the URL too, and an invalidlengthgoes to
onErrorinstead of throwing.- The error message is shown even with a custom loader.
- CLI:
--fpsis a cap: slower sources keep their frame rate.
v0.3.0
- New:
vidscroll/core, the plain JavaScript controller behind the React
component (experimental). - New:
<vid-scroll>and<vid-scroll-section>custom elements for pages
without React, plus a standalone CDN build (experimental). reactis now an optional peer dependency, so non-React projects don't need
it.- Fixed: time-based sections briefly showed at load before the duration was
known. - Fixed: the video could freeze after two animation frames with the same
timestamp. - Fixed: an active section blocked clicks on content behind its empty area.
ScrollVideoApigainsaddSectionandremoveSection.
v0.2.2
easingaccepts preset names ("inOutSine","outCubic"and others), which
also works from Next.js server components.- Time- and frame-based sections stay on their frames when an easing curve is
used.
v0.2.1
- Scroll while optimizing: a raw video can be scrolled straight away while
it's re-encoded in the background, then the smooth copy takes over at the
same frame. A corner badge shows the progress;optimize={{ wait: true }}
keeps the old behaviour. loaderfunctions receive the built-in loader as a second argument.- After fast scrolling, the video glides to a stop instead of jumping.
- On Android, scrolling forward plays the video instead of seeking, which is
smoother there.
0.2.0 was tagged but never published; its changes are in 0.2.1.
v0.1.1
The first releases (0.1.0 and 0.1.1): ScrollVideo, Section and
ScrollFrames, in-browser re-encoding with caching, the vidscroll encode
CLI, the useScrollVideoState and useScrollVideoUpdate hooks, and the
--video-progress variable.