{"id":42830329,"url":"https://github.com/wide/modulus-slider","last_synced_at":"2026-01-30T11:26:51.662Z","repository":{"id":44921741,"uuid":"267886683","full_name":"wide/modulus-slider","owner":"wide","description":"Slider component for Modulus","archived":false,"fork":false,"pushed_at":"2022-01-18T11:43:37.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-08-11T08:52:05.471Z","etag":null,"topics":["modulus"],"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/wide.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-29T15:05:33.000Z","updated_at":"2022-01-04T15:34:44.000Z","dependencies_parsed_at":"2022-09-16T12:41:15.447Z","dependency_job_id":null,"html_url":"https://github.com/wide/modulus-slider","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/wide/modulus-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wide%2Fmodulus-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wide%2Fmodulus-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wide%2Fmodulus-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wide%2Fmodulus-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wide","download_url":"https://codeload.github.com/wide/modulus-slider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wide%2Fmodulus-slider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28911821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["modulus"],"created_at":"2026-01-30T11:26:50.930Z","updated_at":"2026-01-30T11:26:51.656Z","avatar_url":"https://github.com/wide.png","language":"JavaScript","readme":"# Modulus Slider\n\nEnhanced slider component, based on `Swiper`, to be used with `@wide/modulus`.\n\n\n## Install\n\n```\nnpm install @wide/modulus-slider --save\n```\n\n\n## Usage\n\nRegister this component using `Modulus`:\n```js\nimport modulus from '@wide/modulus'\nimport Slider from '@wide/modulus-slider'\n\nmodulus.component('slider', Slider)\n```\n\nImport base `scss` styles (contains `Swiper` styles):\n```scss\n@use '@wide/modulus-slider';\n/**\n * Add pagination module for this example\n * @tutorial https://swiperjs.com/swiper-api#modules\n */\n@use 'node_modules/swiper/modules/pagination/pagination.scss';\n```\n\nAnd use the provided `twig` template:\n```html\n{% include '@wide::modulus-slider' with {\n  webcomponent: true,\n  slides: [\n    'Some HTML',\n    'Some HTML again'\n  ],\n  pagination: true,\n  dataset: {\n    sync: '#slider2'\n  }\n} %}\n```\n\nOr build your own `html`:\n```html\n\u003cdiv class=\"slider swiper\" is=\"slider\" data-sync=\"#slider2\"\u003e\n    \u003cdiv class=\"swiper-wrapper\"\u003e\n        \u003cdiv class=\"slider_slide swiper-slide\"\u003e\n            Some HTML\n        \u003c/div\u003e\n        \u003cdiv class=\"slider_slide swiper-slide\"\u003e\n            Some HTML again\n        \u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"slider_pagination swiper-pagination\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n\n## Advanced usage\n\nExtend the `Slider` class and change the configuration (see [Swiper API](https://swiperjs.com/swiper-api)):\n```js\nimport modulus from '@wide/modulus'\nimport Slider from '@wide/modulus-slider'\n/**\n * Add pagination module for this example\n * @tutorial https://swiperjs.com/swiper-api#modules\n */\nimport { Pagination } from 'swiper'\n\nmodulus.component('slider', class extends Slider {\n    run() {\n        const config = {\n          slidesPerView: 1,\n          modules: [ Pagination ]\n        }\n        super.run({ config })\n    }\n}\n```\n\n\n## Libraries\n\nThis package uses :\n- [`hotkeys-js`](https://github.com/jaywcjlove/hotkeys)\n- [`swiper`](https://github.com/nolimits4web/swiper)\n\n\n## Authors\n\n- **Aymeric Assier** - [github.com/myeti](https://github.com/myeti)\n- **Julien Martins Da Costa** - [github.com/jdacosta](https://github.com/jdacosta)\n- **Sébastien Robillard** - [github.com/robiseb](https://github.com/robiseb)\n\n\n## License\n\nThis project is licensed under the MIT License - see the [licence](licence) file for details","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwide%2Fmodulus-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwide%2Fmodulus-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwide%2Fmodulus-slider/lists"}