{"id":17584692,"url":"https://github.com/thieryw/image-slider","last_synced_at":"2025-03-29T17:24:09.414Z","repository":{"id":113714675,"uuid":"271875520","full_name":"thieryw/image-slider","owner":"thieryw","description":"image slider with fade animation and autoplay","archived":false,"fork":false,"pushed_at":"2020-06-13T19:34:33.000Z","size":1396,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T18:31:32.809Z","etag":null,"topics":[],"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/thieryw.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":"2020-06-12T19:31:22.000Z","updated_at":"2020-06-13T19:34:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea678c32-37f3-44fa-912f-716da14ffe07","html_url":"https://github.com/thieryw/image-slider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thieryw%2Fimage-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thieryw%2Fimage-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thieryw%2Fimage-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thieryw%2Fimage-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thieryw","download_url":"https://codeload.github.com/thieryw/image-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246217134,"owners_count":20742143,"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-10-22T02:07:48.886Z","updated_at":"2025-03-29T17:24:09.394Z","avatar_url":"https://github.com/thieryw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-slider\nA verry simple and easy to use image slider.\n\n## Features\n\n1) fade and slide animations.\n\n2) autoplay option.\n\n\n\n## Usage\n\n1) include the \"slider.js\" file at the bottom of your html file.\n\n2) initialize slider object:\n\n```javascript\n\n\n\nlet slider = new slider(document.getElementsByClassName(\"imageClassName\"),\n                        document.getElementById(\"prevArrow\"),                       document.getElementById(\"nextArrow\"));\n\n```\n\nPrevious and next arrows are optional. you can have the slider runing automaticaly\nwith Autoplay.\n\n3) Call the playSlider function:\n\n```javascript\n\nslider.playSlider(true, 3000, \"slide\");\n\n```\n\nfirst argument is for autoplay;\n\nsecond argument is time between slides. set to null if autoplay is false;\n\nthird argument is the animation. you can choose beetween \"fade\" and \"slide\";\n\n\n## html file example:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eslider\u003c/title\u003e\n        \u003clink rel=\"stylesheet\" href=\"./main.css\"\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n        \u003ch1\u003eA verry simple image slider with autoplay\u003c/h1\u003e\n        \u003cdiv class=\"sliderWrapper\"\u003e\n            \u003cp id=\"prev\"\u003e\u0026lt\u003c/p\u003e\n            \u003cp id=\"next\"\u003e\u0026gt\u003c/p\u003e\n\n            \u003cdiv class=\"flex\"\u003e\n\n                \u003cdiv class=\"imageWrapper\" id=\"wrapper\"\u003e\n                    \u003cimg class=\"sliderImage\" src=\"./media/1.jpg\" alt=\"img\"\u003e\n                    \u003cimg class=\"sliderImage\" src=\"./media/2.jpg\" alt=\"img\"\u003e\n                    \u003cimg class=\"sliderImage\" src=\"./media/3.jpg\" alt=\"img\"\u003e\n                    \u003cimg class=\"sliderImage\" src=\"./media/4.jpg\" alt=\"img\"\u003e\n                    \u003cimg class=\"sliderImage\" src=\"./media/5.jpg\" alt=\"img\"\u003e\n                \u003c/div\u003e\n\n            \u003c/div\u003e\n\n        \u003c/div\u003e\n\n\n\n\n        \u003cscript src=\"./slider.js\"\u003e\u003c/script\u003e\n\n        \u003cscript\u003e\n            let slider = new Slider(document.getElementsByClassName(\"sliderImage\"),\n            document.getElementById(\"prev\"), document.getElementById(\"next\"));\n\n                    \n            slider.playSlider(true, 3000, \"slide\");\n                    \n        \u003c/script\u003e\n        \n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthieryw%2Fimage-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthieryw%2Fimage-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthieryw%2Fimage-slider/lists"}