{"id":23461049,"url":"https://github.com/jsilvermist/sl-gallery","last_synced_at":"2025-04-14T05:52:05.274Z","repository":{"id":57160263,"uuid":"114559494","full_name":"jsilvermist/sl-gallery","owner":"jsilvermist","description":"A web-component based hash-route photo gallery.","archived":false,"fork":false,"pushed_at":"2019-08-06T22:21:13.000Z","size":109,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T19:49:36.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://silverlinkz.net/projects/gallery","language":"JavaScript","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/jsilvermist.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":"2017-12-17T18:35:04.000Z","updated_at":"2024-05-17T22:29:53.000Z","dependencies_parsed_at":"2022-09-09T10:21:11.381Z","dependency_job_id":null,"html_url":"https://github.com/jsilvermist/sl-gallery","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Fsl-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Fsl-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Fsl-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2Fsl-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsilvermist","download_url":"https://codeload.github.com/jsilvermist/sl-gallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830389,"owners_count":21168272,"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-12-24T07:28:41.669Z","updated_at":"2025-04-14T05:52:05.246Z","avatar_url":"https://github.com/jsilvermist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Silverlinkz Photo Gallery\n=========================\n\n[![Build Status](https://travis-ci.org/jsilvermist/sl-gallery.svg?branch=master)](https://travis-ci.org/jsilvermist/sl-gallery)\n[![Published on npm](https://img.shields.io/npm/v/@silverlinkz/sl-gallery.svg)](https://www.npmjs.com/package/@silverlinkz/sl-gallery)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@silverlinkz/sl-gallery)\n\nA web-component based hash-route photo gallery.\n\nThe gallery will load all `small` images for thumbnails in the grid.\n\nWhen you open the fullscreen slideshow, it will display the small image\nas a placeholder while loading the larger full-sized `src` image.\n\nAfter the current image in the slideshow is loaded, the next and previous images\nwill be lazy-loaded so that they are immediately ready upon changing image.\n\nNote: Fullscreen won't work in the demo at `webcomponents.org`\ndue to being inside of a fullscreen restricted iframe.\n\n## Installation (Polymer 3)\n\n```sh\nnpm install --save @silverlinkz/sl-gallery\n```\n\n### Legacy Installation (Polymer 2 / Bower)\n\n```sh\nbower install --save jsilvermist/sl-gallery#^1.0.0\n```\n\n## Usage\n\nImport the gallery (Polymer 3):\n\n```javascript\nimport '@silverlinkz/sl-gallery';\n```\n\nLegacy import (Polymer 2 / Bower):\n\n```html\n\u003clink rel=\"import\" href=\"bower_components/sl-gallery/sl-gallery.html\"\u003e\n```\n\nCreate an `sl-gallery` element, and add `sl-gallery-image` elements for each image:\n\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003clink rel=\"import\" href=\"sl-gallery.html\"\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n\n```html\n\u003csl-gallery\u003e\n  \u003csl-gallery-image\n      src=\"https://unsplash.it/800/500/?image=257\"\n      small=\"https://unsplash.it/400/250/?image=257\"\n      title=\"Example Title 01\"\u003e\n  \u003c/sl-gallery-image\u003e\n  \u003csl-gallery-image\n      src=\"https://unsplash.it/800/500/?image=250\"\n      small=\"https://unsplash.it/400/250/?image=250\"\n      title=\"Another Title 02\"\u003e\n  \u003c/sl-gallery-image\u003e\n  \u003csl-gallery-image\n      src=\"https://unsplash.it/800/500/?image=399\"\n      small=\"https://unsplash.it/400/250/?image=399\"\n      title=\"Photo Title 03\"\n      caption=\"Ipsa ut distinctio aperiam quia delectus, illum voluptates non.\"\u003e\n  \u003c/sl-gallery-image\u003e\n  \u003csl-gallery-image\n      src=\"https://unsplash.it/800/500/?image=146\"\n      small=\"https://unsplash.it/400/250/?image=146\"\n      title=\"Photo Title 04\"\n      caption=\"Necessitatibus tempora ea eius placeat. Sed culpa numquam voluptatibus possimus, eaque vel!\"\u003e\n  \u003c/sl-gallery-image\u003e\n\u003c/sl-gallery\u003e\n```\n\nThe `small` attribute is used for the thumbnail image and preloading the gallery slideshow image.\nIf the `small` attribute is missing, the gallery will use the `src` for the thumbnail image.\n\nThe `title`, `caption`, and `small` attributes are optional, and you can also set the `src` attribute dynamically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvermist%2Fsl-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsilvermist%2Fsl-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvermist%2Fsl-gallery/lists"}