{"id":20691359,"url":"https://github.com/metafizzy/flickity-hash","last_synced_at":"2025-03-11T01:26:27.837Z","repository":{"id":30749616,"uuid":"125582896","full_name":"metafizzy/flickity-hash","owner":"metafizzy","description":"Select Flickity slides with links","archived":false,"fork":false,"pushed_at":"2023-07-19T11:04:37.000Z","size":45,"stargazers_count":11,"open_issues_count":5,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-17T02:11:12.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/metafizzy.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":"2018-03-17T00:16:45.000Z","updated_at":"2023-12-09T13:49:34.000Z","dependencies_parsed_at":"2024-06-18T18:45:39.525Z","dependency_job_id":"4e92153b-1856-4c5a-8e94-8b8a761a4f10","html_url":"https://github.com/metafizzy/flickity-hash","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":"0.19999999999999996","last_synced_commit":"f7d90e37c971fd6757d4bc7df456c30311558026"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fflickity-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fflickity-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fflickity-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fflickity-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metafizzy","download_url":"https://codeload.github.com/metafizzy/flickity-hash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242953444,"owners_count":20212022,"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":[],"created_at":"2024-11-16T23:16:24.212Z","updated_at":"2025-03-11T01:26:27.800Z","avatar_url":"https://github.com/metafizzy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flickity hash\n\n_Select Flickity slides with links_\n\n## Features\n\n+ Connect hash links to select Flickity slides. `\u003ca href=\"#cell2\"\u003eView cell 2\u003c/a\u003e`\n+ Use URLs for slides: `https://example.com/#cell2`\n+ Change page hash to match selected slide.\n\n## Install\n\nAdd `hash.js` to your scripts.\n\n### Download\n\n+ [hash.js](https://unpkg.com/flickity-hash@2/hash.js)\n\n### CDN\n\n``` html\n\u003cscript src=\"https://unpkg.com/flickity-hash@2/hash.js\"\u003e\u003c/script\u003e\n```\n\n### Package managers\n\nnpm: `npm install flickity-hash`\n\nYarn: `yarn add flickity-hash`\n\n## Usage\n\nEnable hash behavior by setting `hash: true` in Flickity options.\n\n``` js\n// jQuery\nlet $carousel = $('.carousel').flickity({\n  hash: true,\n});\n```\n\n``` js\n// vanilla JS\nlet flkty = new Flickity( '.carousel', {\n  hash: true,\n});\n```\n\n``` html\n\u003c!-- HTML --\u003e\n\u003cdiv class=\"carousel\" data-flickity='{ \"hash\": true }'\u003e\n  ...\n\u003c/div\u003e\n```\n\n### HTML\n\nAdd `id` attributes to cell elements.\n\n``` html\n\u003cdiv class=\"carousel\"\u003e\n  \u003cdiv class=\"carousel-cell\" id=\"carousel-cell1\"\u003e...\u003c/div\u003e\n  \u003cdiv class=\"carousel-cell\" id=\"carousel-cell2\"\u003e...\u003c/div\u003e\n  \u003cdiv class=\"carousel-cell\" id=\"carousel-cell3\"\u003e...\u003c/div\u003e\n\u003c/div\u003e\n```\n\nHash links will select slides on click.\n\n``` html\n\u003ca href=\"#carousel-cell2\"\u003eView cell 2\u003c/a\u003e\n```\n\n### Webpack\n\n``` js\nconst Flickity = require('flickity');\nrequire('flickity-hash');\n\nlet flkty = new Flickity( '.carousel', {\n  hash: true,\n});\n```\n\n---\n\nBy [Metafizzy](https://metafizzy.co) 🌈🐻\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafizzy%2Fflickity-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetafizzy%2Fflickity-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafizzy%2Fflickity-hash/lists"}