{"id":22353584,"url":"https://github.com/cedricss/elm-scroll-snap","last_synced_at":"2025-03-26T12:27:02.714Z","repository":{"id":57674915,"uuid":"404415413","full_name":"cedricss/elm-scroll-snap","owner":"cedricss","description":"Scrollable containers with snapping","archived":false,"fork":false,"pushed_at":"2021-09-12T16:43:36.000Z","size":273,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-31T13:35:10.971Z","etag":null,"topics":["elm","scroll-snap"],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/cedricss/elm-scroll-snap/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedricss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-08T16:16:55.000Z","updated_at":"2021-09-12T16:43:16.000Z","dependencies_parsed_at":"2022-09-02T15:01:45.799Z","dependency_job_id":null,"html_url":"https://github.com/cedricss/elm-scroll-snap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricss%2Felm-scroll-snap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricss%2Felm-scroll-snap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricss%2Felm-scroll-snap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricss%2Felm-scroll-snap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedricss","download_url":"https://codeload.github.com/cedricss/elm-scroll-snap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245652400,"owners_count":20650475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elm","scroll-snap"],"created_at":"2024-12-04T13:09:04.167Z","updated_at":"2025-03-26T12:27:02.688Z","avatar_url":"https://github.com/cedricss.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm Scroll Snap\n\nScrollable containers with snapping.\n\n```\nelm install cedricss/elm-scroll-snap\n```\n\nThis library is based on elm-css and accepts `Html.Styled.Html` items.\nIf you are not using elm-css, use `Html.Styled.fromUnstyled` and `Html.Styled.toUnstyled` to convert the items and the resulting container.\n\n## Containers\n\n### Horizontal\n\nCreate a container with horizontal scrolling. The most visible item is centered horizontally.\n\n```elm\n  div\n      [ css\n          [ border3 (px 1) solid (hex \"eee\")\n          , width (px 500)\n          ]\n      ]\n      [ ScrollSnap.horizontal\n          { itemWidth = px 280 }\n          [ item1, item2, item3, item4, item5 ]\n      ]\n```\n\n![Demo](https://github.com/cedricss/elm-scroll-snap/raw/main/img/horizontal.gif)\n\n### Vertical\n\nComing next.\n\n## Links\n\n- [package.elm-lang.org/packages/cedricsoulas/elm-scroll-snap/latest](https://package.elm-lang.org/packages/cedricss/elm-scroll-snap/latest)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedricss%2Felm-scroll-snap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedricss%2Felm-scroll-snap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedricss%2Felm-scroll-snap/lists"}