{"id":15047068,"url":"https://github.com/joseluisq/slendr","last_synced_at":"2025-10-04T05:31:49.880Z","repository":{"id":57362983,"uuid":"54866292","full_name":"joseluisq/slendr","owner":"joseluisq","description":"A responsive \u0026 lightweight (2KB gzipped) slider for modern browsers. [UNMAINTAINED]","archived":true,"fork":false,"pushed_at":"2019-12-17T07:54:07.000Z","size":1330,"stargazers_count":39,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-12T01:27:40.857Z","etag":null,"topics":["component","javascript","modern-browsers","slide","slider","slideshow","typescript"],"latest_commit_sha":null,"homepage":"http://codepen.io/joseluisq/full/wGXaKx/","language":"TypeScript","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/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-28T04:51:50.000Z","updated_at":"2024-12-04T02:41:43.000Z","dependencies_parsed_at":"2022-08-30T20:00:52.313Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/slendr","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/joseluisq/slendr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fslendr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fslendr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fslendr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fslendr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/slendr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fslendr/sbom","scorecard":{"id":533374,"data":{"date":"2025-08-11","repo":{"name":"github.com/joseluisq/slendr","commit":"22f28f2678d9fe5798e7b7175b95a5dea9b66568"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"120 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-9v62-24cr-58cx","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-r3x4-wr4h-pw33","Warn: Project is vulnerable to: GHSA-876r-hj45-fw7g","Warn: Project is vulnerable to: GHSA-v63x-xc9j-hhvq","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-w5q7-3pr9-x44w","Warn: Project is vulnerable to: GHSA-3fjq-93xj-3f3f","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-mgfv-m47x-4wqp","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T06:17:10.174Z","repository_id":57362983,"created_at":"2025-08-20T06:17:10.174Z","updated_at":"2025-08-20T06:17:10.174Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278267513,"owners_count":25958881,"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-04T02:00:05.491Z","response_time":63,"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":["component","javascript","modern-browsers","slide","slider","slideshow","typescript"],"created_at":"2024-09-24T20:54:08.797Z","updated_at":"2025-10-04T05:31:49.545Z","avatar_url":"https://github.com/joseluisq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slendr [![npm](https://img.shields.io/npm/v/slendr.svg)](https://www.npmjs.com/package/slendr) [![npm](https://img.shields.io/npm/dt/slendr.svg)](https://www.npmjs.com/package/slendr) [![Build Status](https://travis-ci.org/joseluisq/slendr.svg?branch=master)](https://travis-ci.org/joseluisq/slendr) [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n\u003e A responsive \u0026 lightweight slider for modern browsers.\n\n## Features\n\n- Written and tested entirely using [Typescript](http://www.typescriptlang.org/).\n- Lightweight (just 2KB gzipped UMD)\n- Responsive (desktop and mobile) by default.\n- Modern browsers only. No more legacy browsers like IE10 or IE11 (but you can find it on v1.3 release).\n- High performance by [Lighthouse](https://github.com/GoogleChrome/lighthouse) audit.\n- [CSS3 Hardware Acceleration](http://www.html5rocks.com/en/tutorials/speed/high-performance-animations/)\n- 60fps animation.\n- Progressive images loading.\n- Highly customizable.\n- SASS support.\n\n:tada: View demo on [Codepen](http://codepen.io/joseluisq/full/wGXaKx/).\n\n## Install\n\n[Yarn](https://github.com/yarnpkg/)\n\n```sh\nyarn add slendr\n```\n\n[NPM](https://www.npmjs.com/)\n\n```sh\nnpm install slendr --save\n```\n\nThe [UMD](https://github.com/umdjs/umd) and style builds are also available on [unpkg](https://unpkg.com).\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/slendr/dist/slendr.min.css\"\u003e\n\u003cscript src=\"https://unpkg.com/slendr/dist/slendr.min.js\"\u003e\u003c/script\u003e\n```\n\nYou can use the component via `window.slendr`\n\n## Usage\n\nInclude the base styles:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/slendr/dist/slendr.min.css\"\u003e\n```\n\n__Styles:__ It can customize the bases styles via the SCSS file at [`slendr/dist/slendr.scss`](https://unpkg.com/slendr/dist/slendr.scss).\n\nDefine the markup:\n\n```html\n\u003cdiv class=\"slendr\"\u003e\n  \u003cnav class=\"slendr-direction\"\u003e\n    \u003ca href=\"#\" class=\"slendr-prev\"\u003e\u003ci class=\"fa fa-angle-left\"\u003e\u003c/i\u003e\u003c/a\u003e\n    \u003ca href=\"#\" class=\"slendr-next\"\u003e\u003ci class=\"fa fa-angle-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n  \u003c/nav\u003e\n\n  \u003cnav class=\"slendr-control\"\u003e\u003c/nav\u003e\n\n  \u003cdiv class=\"slendr-slides\"\u003e\n    \u003csection class=\"slendr-slide\" data-slide-src=\"slide1.jpg\"\u003e\u003c/section\u003e\n    \u003csection class=\"slendr-slide\" data-slide-src=\"slide2.jpg\"\u003e\u003c/section\u003e\n    \u003csection class=\"slendr-slide\" data-slide-src=\"slide3.jpg\"\u003e\u003c/section\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nCreate the slider:\n\n```js\nimport { Slendr } from 'slendr'\n\nconst myslider = new Slendr({\n  slideshow: true\n})\n\nmyslider.on('move', (direction, index, element) =\u003e console.log(direction))\n```\n\n## API\n\n### Options\n\nName | Type | Default | Description\n--- | --- | --- | ---\n__container__ | String | `.slendr` | The container supports string query selector or HTMLElement.\n__selector__ | String | `.slendr-slides \u003e .slendr-slide` | Query selector for slides.\n__animationClass__ | String | `.slendr-animate` | Class name for animation used in slider translation.\n__directionNavs__ | Boolean | `true` | Display the direction navs (arrow buttons).\n__directionNavPrev__ | String | `.slendr-prev` | Class name for previous arrow button.\n__directionNavNext__ | String | `.slendr-next` | Class name for next arrow button.\n__slideVisibleClass__ | String | `.slendr-visible` | Class name used for show the current slide.\n__slideActiveClass__ | String | `.slendr-active` | Class name used when some slide is active.\n__slideshow__ | Boolean | `true` | If slider should work like a slideshow.\n__slideshowSpeed__ | Int | `4000` | The slideshow speed (in milliseconds).\n__keyboard__ | Boolean | `false` | Activate the keyboard arrow navigation.\n__controlNavs__ | Boolean | `true` | Display the control navigation.\n__controlNavClass__ | Boolean | `.slendr-control` | Class name of control navigation.\n__controlNavClassActive__ | Boolean | `.slendr-control-active` | Class name for active control navigation.\n\n__Animation speed:__ It's defined via the animation class at `style.scss`. Feel free to use your own [CSS timing function](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function).\n\n### Methods\n\nName | Usage | Description\n--- | --- | ---\n__prev__ | `slendr.prev()` | Move to previous slide.\n__next__ | `slendr.next()` | Move to next slide.\n__move__ | `slendr.move(index)` | Move the slider by index.\n__play__ | `slendr.play()` | Play the slideshow.\n__pause__ | `slendr.pause()` | Pause the slideshow.\n\n### Events\n\nName | Usage | Description\n--- | --- | ---\n__move__ | `slendr.on('move', (direction, index, element) =\u003e {})` | Trigger when slider moves to previous or next slide.\n__prev__ | `slendr.on('prev', (index, element) =\u003e {})` | Trigger when slider moves to previous slide.\n__next__ | `slendr.on('next', (index, element) =\u003e {})` | Trigger when slider moves to next slide.\n__play__ | `slendr.on('play', (index) =\u003e {})` | Trigger when play the slideshow.\n__pause__ | `slendr.on('pause', (index) =\u003e {})` | Trigger when pause the slideshow.\n\n### Attributes\n\n#### On demand attributes\n\nThese attributes can be created manually.\n\n__`data-slide-src`__: Set the image source URL. After image loading, Slendr will place it as slide background via css `background-image`.\n\nSlender doesn't depend on images necessarily to working. It can omit this attribute in any case.\n\n```html\n\u003cdiv class=\"slendr-slides\"\u003e\n  \u003csection class=\"slendr-slide\" data-slide-src=\"image1.jpg\"\u003e\u003c/section\u003e\n  \u003csection class=\"slendr-slide\"\u003e\u003c/section\u003e\n  \u003csection class=\"slendr-slide\" data-slide-src=\"image2.jpg\"\u003e\u003c/section\u003e\n\u003c/div\u003e\n```\n\n#### Runtime attributes\n\nThese attributes are created by Slendr.\n\n__`data-slides-length`__: Contains the length of slides.\n\n```html\n\u003cdiv class=\"slendr\" data-slides-length=\"1000\"\u003e...\u003c/div\u003e\n```\n\n__`data-slide-index`__: Contains the slide index.\n\n```html\n\u003csection class=\"slendr-slide\" data-slide-index=\"0\" data-slide-src=\"image1.jpg\"\u003e...\u003c/section\u003e\n\u003csection class=\"slendr-slide\" data-slide-index=\"1\" data-slide-src=\"image2.jpg\"\u003e...\u003c/section\u003e\n```\n\n## Browser support\n\n- Firefox\n- Chrome\n- Edge\n- Safari, iOS Safari\n\n## Development\n\n```sh\nyarn start\n```\n\n## Contributions\n\n[Pull requests](https://github.com/joseluisq/slendr/pulls) or [issues](https://github.com/joseluisq/slendr/issues) are very appreciated.\n\n## License\nMIT license\n\n© 2018 [Jose Quintana](http://git.io/joseluisq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fslendr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fslendr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fslendr/lists"}