{"id":22468126,"url":"https://github.com/patternslib/slides","last_synced_at":"2025-10-29T00:44:42.288Z","repository":{"id":8949696,"uuid":"10685964","full_name":"Patternslib/slides","owner":"Patternslib","description":"Simple HTML/CSS slideshows","archived":false,"fork":false,"pushed_at":"2015-04-30T12:44:11.000Z","size":9691,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-01T19:28:19.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Patternslib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-14T09:29:22.000Z","updated_at":"2015-04-30T12:44:11.000Z","dependencies_parsed_at":"2022-09-06T01:10:27.090Z","dependency_job_id":null,"html_url":"https://github.com/Patternslib/slides","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/Patternslib%2Fslides","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fslides/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fslides/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fslides/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Patternslib","download_url":"https://codeload.github.com/Patternslib/slides/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245873805,"owners_count":20686654,"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-06T11:15:16.790Z","updated_at":"2025-10-29T00:44:37.239Z","avatar_url":"https://github.com/Patternslib.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple HTML/CSS slideshows\n\n[Patternslib/slides](https://github.com/Patternslib/slides) is a minimal\nslideshows library. It is minimal for several reasons:\n\n* no dependencies on other javascript libraries\n* no hardcoded styling: everything is handled through CSS\n\nEven with its minimal design a number of interesting features are available:\n\n* navigating between slides using swipe gestures\n* multiple slideshows on a page\n* separate window with timer and presenter notes for the current clise\n* fullscreen mode\n\n# Markup structure\n\nA slideshow has a basic structure: a top level element which contains the\nslideshow, which contains one or more slides. Each slide can optionally contain\npresenter notes.\n\n```html\n\u003cdiv class=\"slideshow\"\u003e\n  \u003cdiv class=\"slide cover\"\u003e\n    \u003cdiv class=\"slide-content\"\u003e\n      \u003csection\u003e\n        \u003chgroup\u003e\n          \u003ch1\u003ePatternslib/slides\u003c/h1\u003e\n          \u003ch2\u003eCreate slideshows in HTML 5\u003c/h2\u003e\n        \u003c/hgroup\u003e\n      \u003c/section\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\n  \u003cdiv class=\"slide\"\u003e\n    \u003cdiv class=\"slide-content\"\u003e\n      \u003csection\u003e\n        \u003ch1\u003eSlide title\u003e\n        ...\n      \u003c/section\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nIn presentation mode a number of class changes are made:\n\n* The currently shown slide will get a ``active`` class.\n* The slideshows container will get a ``mode-full`` class.\n* The slideshow container will ``transform: scale(XX)`` style to make it fill the entire window\n\nWhen not in presentation page the slideshow container will get a\n``mode-list`` class.\n\n# Controls\n\nYou can start a presentation by clicking on a slide. This will start the\npresentation at the given slide. In presentation mode a number of keyboard\nand swipe controls are available:\n\n* `Esc` key: exit presentation\n* `PageUp`, `Up`, and `Left` keys: go to previous slide\n* `PageDown`, `Down`, `Right` and `Space` keys: go to next slide\n* `Home` key: jump to the first slide\n* `End` key: jump to the last slide\n* `F` key: toggle fullscreen\n* `N` key: toggle presenter notes window\n* Swipe left: go to the previous slide\n* Swipe right: go to the next slide\n* Swipe down: exit presentation\n\n\n# JavaScript events\n\nPatternslib/slides sends [custom\nevents](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-CustomEvent)\nwhen something happens in the slideshow. These events have a `detail` property\nwith data specific for the event.\n\n## SlideshowStart\n\nThe `SlideshowStart` event is fired when a slideshow is started.\n\nThis event is dispatched from the slideshow container. The `detail` property of\nthis event contains the following items:\n\n| Property    | Description                                                    |\n| ----------- | -------------------------------------------------------------- |\n| `slideshow` | Instance of the slideshow object                               |\n\nThis event is dispatched from the slideshow container.\n\nImmediately after this event is send a `SlideDisplay` event is send with\ninformation on the first slide that will be shown.\n\n\n## SlideshowStop\n\nThe `SlideshowStop` event is fired when the slideshow is stopped and the\nthe page has switched back to list mode.\n\nThis event is dispatched from the slideshow container. The `detail` property of\nthis event contains the following items:\n\n\n| Property    | Description                                                    |\n| ----------- | -------------------------------------------------------------- |\n| `slideshow` | Instance of the slideshow object                               |\n\nBefore this event is dispatched a separate `SlideHide` event is fired for the\nslide that was last displayed.\n\n\n## SlideDisplay\n\nThe `SlideDisplay` event is fired when a new slide is displayed, or immediately\nafter `SlideshowStart` has been send for the initial slide shown when a\npresentation starts.\n\nThis event is dispatched from the slide element. The `detail` property of this\nevent contains the following items:\n\n| Property    | Description                                                    |\n| ----------- | -------------------------------------------------------------- |\n| `slideshow` | Instance of the slideshow object                               |\n| `slide`     | Instance of the slide object for the slide that will be shown. |\n| `number`    | The number for the slide that is now displayed.                |\n\n\n## SlideHide\n\nThe `SlideHide` event is fired when a slide is replaced with another slide,\nor when a presentation is stopped and before the `SlideshowStop` event is\ndispatched.\n\nThis event is dispatched from the slide element. The `detail` property of this\nevent contains the following items:\n\n| Property    | Description                                                    |\n| ----------- | -------------------------------------------------------------- |\n| `slideshow` | Instance of the slideshow object                               |\n| `slide`     | Instance of the slide object for the slide that was shown last.|\n| `number`    | The number for the slide that is was displayed.                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternslib%2Fslides","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatternslib%2Fslides","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternslib%2Fslides/lists"}