{"id":24375980,"url":"https://github.com/betaweb/slidr","last_synced_at":"2026-04-18T02:32:54.567Z","repository":{"id":66350178,"uuid":"226701437","full_name":"betaWeb/slidr","owner":"betaWeb","description":"A simple JS library to handle HTML sliders","archived":false,"fork":false,"pushed_at":"2020-07-13T22:45:32.000Z","size":63,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T00:42:43.728Z","etag":null,"topics":["carousel","carousel-js","carousel-slider","javascript","js","js-library","simple","slider","slider-animation","slides","slideshow","slidr","typescript"],"latest_commit_sha":null,"homepage":null,"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/betaWeb.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":"2019-12-08T17:01:04.000Z","updated_at":"2020-12-23T23:25:53.000Z","dependencies_parsed_at":"2023-02-21T16:00:18.917Z","dependency_job_id":null,"html_url":"https://github.com/betaWeb/slidr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/betaWeb/slidr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2Fslidr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2Fslidr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2Fslidr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2Fslidr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betaWeb","download_url":"https://codeload.github.com/betaWeb/slidr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2Fslidr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268801968,"owners_count":24309643,"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-08-04T02:00:09.867Z","response_time":79,"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":["carousel","carousel-js","carousel-slider","javascript","js","js-library","simple","slider","slider-animation","slides","slideshow","slidr","typescript"],"created_at":"2025-01-19T05:58:57.450Z","updated_at":"2026-04-18T02:32:54.538Z","avatar_url":"https://github.com/betaWeb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SlidR\n\nA simple JS library to handle HTML sliders.\n\nHere is a [live demo](https://codepen.io/betaweb/pen/GRgoKbN).\n\n\u003cbr\u003e\u003cbr\u003e\n\n\n## Getting started\n### Installation\nTo install SlidR, you just have to download `Slidr.min.js` in the `dist` folder and add a script into your HTML page :\n```HTML\n\u003cscript src=\"path/to/Slidr.min.js\"\u003e\u003c/script\u003e\n```\n\n\n### Basic usage\n\nHere a basic HTML form with a `.slider` element contains 2 slides :\n```HTML\n\u003cdiv class=\"slider\"\u003e\n    \u003cdiv data-slide=\"slide1\" class=\"slide\"\u003eSlide #1\u003c/div\u003e\n    \u003cdiv data-slide=\"slide2\" class=\"slide\"\u003eSlide #2\u003c/div\u003e\n\u003c/div\u003e\n```\n\n\u003e The slides **MUST HAVE** a `data-slide` attribute.\n\n\u003cbr\u003e\n\nAnd you just have to instanciate SlidR, add your slides and run it :\n```JS\ndocument.addEventListener('DOMContentLoaded', () =\u003e {\n    const slider = new Slidr()\n    slider\n        .add({name: 'slide1', timeout: 20 * 1000})\n        .add({name: 'slide2', timeout: 10 * 1000})\n        .run()\n})\n```\n\nAnd.. voilà ! You have a fully functional slider ! :)\n\n\u003cbr\u003e\n\n### Options \u0026 Events\n\nComing soon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetaweb%2Fslidr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetaweb%2Fslidr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetaweb%2Fslidr/lists"}