{"id":20561440,"url":"https://github.com/junkfix/photoswipe-slideshow","last_synced_at":"2025-10-10T15:06:48.598Z","repository":{"id":62380552,"uuid":"560128025","full_name":"junkfix/photoswipe-slideshow","owner":"junkfix","description":"PhotoSwipe Slideshow plugin","archived":false,"fork":false,"pushed_at":"2024-03-07T13:49:51.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T03:09:49.424Z","etag":null,"topics":["autoplay","photoswipe","photoswipe-library","plugin","slideshow"],"latest_commit_sha":null,"homepage":"","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/junkfix.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-31T19:48:27.000Z","updated_at":"2025-06-06T19:52:16.000Z","dependencies_parsed_at":"2024-11-16T03:58:06.547Z","dependency_job_id":"8b5187c7-404d-42c4-b139-07116a29997a","html_url":"https://github.com/junkfix/photoswipe-slideshow","commit_stats":null,"previous_names":["junkfix/photoswipe-slideshow","htmltiger/photoswipe-slideshow"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/junkfix/photoswipe-slideshow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fphotoswipe-slideshow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fphotoswipe-slideshow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fphotoswipe-slideshow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fphotoswipe-slideshow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junkfix","download_url":"https://codeload.github.com/junkfix/photoswipe-slideshow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fphotoswipe-slideshow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004564,"owners_count":26083734,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["autoplay","photoswipe","photoswipe-library","plugin","slideshow"],"created_at":"2024-11-16T03:58:07.045Z","updated_at":"2025-10-10T15:06:48.567Z","avatar_url":"https://github.com/junkfix.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/htmltiger"],"categories":[],"sub_categories":[],"readme":"# PhotoSwipe Slideshow plugin\n\nSlideshow plugin for [PhotoSwipe](https://photoswipe.com/) v5\n\n**[\u003e Plugin demo \u003c](https://codepen.io/dpet23/pen/dywPbGy)**\n\n## Initialization\n\nThe plugin has a single JS file that must be imported.\n\nIt can be initialized like this:\n\n```html\n\u003cscript type=\"module\"\u003e\nimport PhotoSwipeLightbox from 'photoswipe/dist/photoswipe-lightbox.esm.min.js';\nimport PhotoSwipeSlideshow from 'photoswipe-slideshow/photoswipe-slideshow.esm.min.js';\n\nconst lightbox = new PhotoSwipeLightbox({\n  gallerySelector: '#gallery',\n  childSelector: '.pswp-gallery__item',\n  pswpModule: () =\u003e import('photoswipe/dist/photoswipe.esm.js'),\n});\n\nconst _slideshowPlugin = new PhotoSwipeSlideshow(lightbox, {\n  // Plugin options, for example:\n  defaultDelayMs: 4000, // 4 sec\n});\n\nlightbox.init();\n\u003c/script\u003e\n```\n\n### Plugin options\n\n#### `defaultDelayMs: 4000`\n\nSlideshow delay in milliseconds.\n\nMust be a number between `1000` (1 second) and `2147483647` (approximately 24.85 days).\n\nIf using the [Video plugin](https://github.com/dimsemenov/photoswipe-video-plugin),\nnote that slides with playing video will use the video's remaining length as the slideshow delay.\n\n#### `playPauseButtonOrder: 6`\n\nWhere to place the slideshow toggle button, relative to other toolbar items.\n\nBy default, it's placed next to the slide counter.\nSee [PhotoSwipe's API](https://photoswipe.com/adding-ui-elements/#uiregisterelement-api) for the order of the default elements.\n\n#### `progressBarPosition: 'top'`\n\nPosition for the progress bar.\n\nMust be either `top` or `bottom`.\n\n#### `progressBarTransition: 'ease'`\n\nProgress bar animation.\n\nSee https://developer.mozilla.org/en-US/docs/Web/CSS/transition-timing-function for supported values.\nThe `ease` animation starts slowly, quickly speeds up until the middle, then slows down.\n\nSlides with image content will use this animation, while\nslides with video content will use a `linear` transition, to match a video player's seekbar.\n\n#### `restartOnSlideChange: true`\n\nWhether slide changes should restart the timer.\n\nThis is useful if manual slide changes are expected during a slideshow,\nespecially if mixing image and video content.\n\n#### `autoHideProgressBar: true`\n\nWhether the progress bar can be hidden by the [Auto Hide UI plugin](https://github.com/arnowelzel/photoswipe-auto-hide-ui).\n\n## Added HTML elements\n\nThe plugin adds elements with the following CSS attributes:\n\n* `.pswp__button--playpause-button`: A button for starting or stopping the slideshow\n\n* `.pswp__progress-bar`: The slideshow progress bar\n  * `.pswp__progress-bar.running`: The progress bar while the slideshow is running\n\n## Keyboard bindings\n\n* `Space`: Start or stop the slideshow\n\n* `+`/`-` or the Up/Down arrow keys: Change the slideshow playback speed by 1 second\n---\n\n\u003ca href=\"https://www.buymeacoffee.com/htmltiger\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/white_img.png\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunkfix%2Fphotoswipe-slideshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunkfix%2Fphotoswipe-slideshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunkfix%2Fphotoswipe-slideshow/lists"}