Repository navigation
Snapping, components for every major framework, and their examples - #10
Merged
Merged
Conversation
- snap: a scroller with scroll-snap-type glides to the snap points its CSS sets and rests where the browser itself would. - Components for Vue, Svelte, Solid, Angular and Astro beside the React one, each tested on the oldest framework version it supports. - Examples for Vue, Nuxt, SvelteKit, Solid, Angular and Astro, built with their own tools and driven in a browser on each change. Signed-off-by: Amit Narwal <amit@arcwright.studio>
amitnarwalofficial
previously approved these changes
Oct 22, 2026
… workflow - The Angular example renders on the server with Angular's own build, and each server-rendered example must arrive rendered. - The package is "type": "commonjs", and each framework entry imports the core from the file beside it, linked installs included. - CodeQL runs from a workflow on the pinned runner, and Angular's server renderer leaves the development tools. Signed-off-by: Amit Narwal <amit@arcwright.studio>
amitnarwalofficial
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snapping, and a ready-made component for every major framework.
snap: a scroller withscroll-snap-typeglides to the snap points its CSS sets. The wheel moves as far as it would and the glide rests on the nearest point; withmandatory, one notch or one trackpad swipe moves one point.scrollToand same-page links rest on the nearest point.scroll-padding,scroll-margin,scroll-snap-stop, areas longer than the visible area and snap points inside components are honoured, and every rest is where the browser itself would let the scroller rest./vue), Svelte and SvelteKit (/svelte), Solid (/solid), Angular (/angular) and Astro (/astro, view transitions included). Each renders on a server and is tested on the oldest version of its framework it supports.examples), and runs each component on its oldest supported framework (oldest frameworks)."type": "commonjs",dist/package.jsonmarks the built ES modules, every file keeps its name, and each framework entry imports the core from the file beside it..github/workflows/codeql.yml), on the same pinned runner as CI.SmoothScrollgoes back to its default.Closes #3, closes #4, closes #5.