{"id":14962756,"url":"https://github.com/razshare/svelte-liquid-swipe","last_synced_at":"2025-08-18T23:32:35.182Z","repository":{"id":55522443,"uuid":"312989733","full_name":"razshare/svelte-liquid-swipe","owner":"razshare","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-10T17:20:38.000Z","size":7520,"stargazers_count":64,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-15T01:33:29.066Z","etag":null,"topics":["animation","css","liquid","svelte","sveltejs","swipe"],"latest_commit_sha":null,"homepage":"https://razshare.github.io/svelte-liquid-swipe/","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/razshare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-15T08:37:05.000Z","updated_at":"2024-08-31T12:39:31.000Z","dependencies_parsed_at":"2024-05-28T13:28:43.230Z","dependency_job_id":"b3c6a822-00ee-4700-b5cb-10e0de084dde","html_url":"https://github.com/razshare/svelte-liquid-swipe","commit_stats":null,"previous_names":["razshare/svelte-liquid-swipe","tncrazvan/svelte-liquid-swipe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fsvelte-liquid-swipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fsvelte-liquid-swipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fsvelte-liquid-swipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fsvelte-liquid-swipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razshare","download_url":"https://codeload.github.com/razshare/svelte-liquid-swipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230292807,"owners_count":18203649,"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":["animation","css","liquid","svelte","sveltejs","swipe"],"created_at":"2024-09-24T13:30:28.108Z","updated_at":"2024-12-18T15:06:20.019Z","avatar_url":"https://github.com/razshare.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage\n\nInstall with\n\n```sh\nnpm i -D svelte-liquid-swipe\n```\n\nImport your `LiquidContainer` component\n\n```html\n\u003cscript\u003e\n  import { LiquidContainer } from 'svelte-liquid-swipe'\n\u003c/script\u003e\n\n\u003cLiquidContainer /\u003e\n```\n\nThe `LiquidContainer` component exposes a root element of `position:absolute`, meaning you'll have to wrap it inside your own `relative`, `fixed`, etc element in order to manage its size and position.\n\nSomething like this\n\n```html\n\u003cscript\u003e\n  import { LiquidContainer } from 'svelte-liquid-swipe'\n\u003c/script\u003e\n\n\u003cdiv style=\"position:relative;width:600px;height:800px;overflow:hidden\"\u003e\n  \u003cLiquidContainer /\u003e\n\u003c/div\u003e\n```\n\nThen add some components to your container\n\n```html\n\u003cscript\u003e\n  import { LiquidContainer } from 'svelte-liquid-swipe'\n  import Page1 from 'page1.svelte'\n  import Page2 from 'page2.svelte'\n  import Page3 from 'page3.svelte'\n  import Page4 from 'page4.svelte'\n\n  const pages = [Page1, Page2, Page3, Page4]\n\u003c/script\u003e\n\n\u003cdiv style=\"position:relative;width:600px;height:800px;overflow:hidden\"\u003e\n  \u003cLiquidContainer direction=\"right\" components=\"{pages}\" /\u003e\n\u003c/div\u003e\n```\n\nResult\n\n\u003cimg src=\"https://razshare.dev/svelte-liquid-swipe/preview.gif\" /\u003e\n\nMake sure you set `overflow:hidden` on your wrapper for the best results.\n\n# Notes\n\nLooking for full project example? Checkout the [example branch](https://github.com/tncrazvan/svelte-liquid-swipe/tree/example).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fsvelte-liquid-swipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazshare%2Fsvelte-liquid-swipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fsvelte-liquid-swipe/lists"}