{"id":42942110,"url":"https://github.com/jonchretien/continuous-carousel","last_synced_at":"2026-01-30T20:10:04.468Z","repository":{"id":28529610,"uuid":"32046506","full_name":"jonchretien/continuous-carousel","owner":"jonchretien","description":"A timed continuous carousel that uses vanilla JavaScript \u0026 CSS animations.","archived":false,"fork":false,"pushed_at":"2025-11-18T20:41:25.000Z","size":1135,"stargazers_count":22,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-13T19:59:16.921Z","etag":null,"topics":["carousel","css","css-animations","javascript","vanilla-javascript"],"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/jonchretien.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-03-11T23:23:43.000Z","updated_at":"2025-11-18T20:41:27.000Z","dependencies_parsed_at":"2025-09-20T19:11:29.430Z","dependency_job_id":"738fb3e8-0d9e-40f3-bb87-e2751d5fbb04","html_url":"https://github.com/jonchretien/continuous-carousel","commit_stats":null,"previous_names":["jonchretien/infinite-carousel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jonchretien/continuous-carousel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonchretien%2Fcontinuous-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonchretien%2Fcontinuous-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonchretien%2Fcontinuous-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonchretien%2Fcontinuous-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonchretien","download_url":"https://codeload.github.com/jonchretien/continuous-carousel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonchretien%2Fcontinuous-carousel/sbom","scorecard":{"id":530684,"data":{"date":"2025-08-11","repo":{"name":"github.com/jonchretien/continuous-carousel","commit":"99c044a2142baaab900eb28a102016241d868864"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"Code-Review","score":-1,"reason":"Found no human activity in the last 15 changesets","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":"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":"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":"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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":"17 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-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","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-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-20T05:39:00.188Z","repository_id":28529610,"created_at":"2025-08-20T05:39:00.188Z","updated_at":"2025-08-20T05:39:00.188Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["carousel","css","css-animations","javascript","vanilla-javascript"],"created_at":"2026-01-30T20:10:03.887Z","updated_at":"2026-01-30T20:10:04.452Z","avatar_url":"https://github.com/jonchretien.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Continuous Carousel 🎠\n\n[![npm version](https://img.shields.io/npm/v/continuous-carousel.svg)](https://www.npmjs.com/package/continuous-carousel)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nA lightweight, performant carousel library using vanilla JavaScript and CSS animations. Features automatic continuous scrolling with support for both horizontal and vertical directions.\n\n**[View Live Demos](https://jonchretien.github.io/continuous-carousel/)**\n\n## Features\n\n- 🎯 **Lightweight** - ~8KB minified + gzipped\n- ⚡ **Performant** - 60fps animations using requestAnimationFrame\n- 📱 **Responsive** - Auto-adjusts on resize with ResizeObserver\n- 🔋 **Battery-friendly** - Pauses when off-screen using IntersectionObserver\n- ♿ **Accessible** - ARIA live regions for screen readers\n- 🎨 **Customizable** - CSS custom properties for easy styling\n- 📦 **Zero dependencies** - Pure vanilla JavaScript\n- 🔧 **Flexible API** - Programmatic control with play/pause/destroy\n\n## Installation\n\n**npm:**\n```bash\nnpm install continuous-carousel\n```\n\n**CDN:**\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/continuous-carousel/dist/continuous-carousel.min.css\"\u003e\n\u003cscript src=\"https://unpkg.com/continuous-carousel/dist/continuous-carousel.min.js\"\u003e\u003c/script\u003e\n```\n\n**ES Module:**\n```javascript\nimport ContinuousCarousel from 'continuous-carousel';\n```\n\n## Quick Start\n\n### 1. Add HTML markup\n\n```html\n\u003cdiv id=\"myCarousel\" class=\"c-carousel-container\" data-direction=\"horizontal\" data-num-visible=\"1\"\u003e\n  \u003cul class=\"c-carousel-group\"\u003e\n    \u003cli class=\"c-carousel-item\"\u003eSlide 1\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003eSlide 2\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003eSlide 3\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003eSlide 4\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n```\n\n### 2. Include CSS\n\n```html\n\u003clink rel=\"stylesheet\" href=\"dist/continuous-carousel.min.css\"\u003e\n```\n\n### 3. Initialize carousel\n\n```javascript\n// Simple usage\nconst carousel = ContinuousCarousel('myCarousel');\n\n// With options\nconst carousel = ContinuousCarousel('myCarousel', {\n  interval: 3000,\n  pauseOnHover: true,\n  onSlideChange: (index) =\u003e {\n    console.log('Current slide:', index);\n  }\n});\n```\n\n## Configuration Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `direction` | string | `'horizontal'` | Scroll direction: `'horizontal'` or `'vertical'` |\n| `numVisible` | number | `1` | Number of items visible at once |\n| `interval` | number | `2000` | Time between transitions (ms) |\n| `transitionDuration` | number | `1000` | Transition animation length (ms) |\n| `pauseOnHover` | boolean | `false` | Pause animation on mouse hover |\n| `pauseOnFocus` | boolean | `false` | Pause animation when element focused |\n| `autoplay` | boolean | `true` | Start animation automatically |\n| `observeVisibility` | boolean | `true` | Pause when off-screen (IntersectionObserver) |\n| `observeResize` | boolean | `true` | Recalculate on resize (ResizeObserver) |\n| `announceSlides` | boolean | `true` | Announce slide changes for screen readers |\n| `onSlideChange` | function | `null` | Callback fired on slide change: `(index) =\u003e {}` |\n| `onPause` | function | `null` | Callback fired when paused |\n| `onPlay` | function | `null` | Callback fired when played |\n| `onDestroy` | function | `null` | Callback fired when destroyed |\n\n## API Methods\n\nThe `ContinuousCarousel()` function returns an object with the following methods:\n\n```javascript\nconst carousel = ContinuousCarousel('myCarousel');\n\n// Control playback\ncarousel.play();        // Resume animation\ncarousel.pause();       // Pause animation\ncarousel.destroy();     // Stop and cleanup\n\n// Update configuration\ncarousel.updateConfig({ interval: 5000 });\n\n// Access properties\ncarousel.container;     // HTML element\ncarousel.config;        // Current configuration\n```\n\n## Examples\n\n### Horizontal Carousel (Single Item)\n\n```html\n\u003cdiv id=\"carousel1\" class=\"c-carousel-container\" data-direction=\"horizontal\" data-num-visible=\"1\"\u003e\n  \u003cul class=\"c-carousel-group\"\u003e\n    \u003cli class=\"c-carousel-item\"\u003e1\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e2\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e3\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n  ContinuousCarousel('carousel1');\n\u003c/script\u003e\n```\n\n### Horizontal Carousel (Multiple Items)\n\n```html\n\u003cdiv id=\"carousel2\" class=\"c-carousel-container\" data-direction=\"horizontal\" data-num-visible=\"3\"\u003e\n  \u003cul class=\"c-carousel-group\"\u003e\n    \u003cli class=\"c-carousel-item\"\u003e1\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e2\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e3\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e4\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e5\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e6\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n  ContinuousCarousel('carousel2');\n\u003c/script\u003e\n```\n\n### Vertical Carousel\n\n```html\n\u003cdiv id=\"carousel3\" class=\"c-carousel-container\" data-direction=\"vertical\" data-num-visible=\"1\"\u003e\n  \u003cul class=\"c-carousel-group\"\u003e\n    \u003cli class=\"c-carousel-item\"\u003eA\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003eB\u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003eC\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n  ContinuousCarousel('carousel3');\n\u003c/script\u003e\n```\n\n### With Custom Options\n\n```javascript\nconst carousel = ContinuousCarousel('myCarousel', {\n  interval: 4000,\n  transitionDuration: 800,\n  pauseOnHover: true,\n  onSlideChange: (index) =\u003e {\n    console.log(`Slide ${index} is now active`);\n  }\n});\n```\n\n### Image Gallery\n\n```html\n\u003cdiv id=\"gallery\" class=\"c-carousel-container\" data-direction=\"horizontal\" data-num-visible=\"1\"\u003e\n  \u003cul class=\"c-carousel-group\"\u003e\n    \u003cli class=\"c-carousel-item\"\u003e\n      \u003cimg src=\"image1.jpg\" alt=\"Image 1\"\u003e\n    \u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e\n      \u003cimg src=\"image2.jpg\" alt=\"Image 2\"\u003e\n    \u003c/li\u003e\n    \u003cli class=\"c-carousel-item\"\u003e\n      \u003cimg src=\"image3.jpg\" alt=\"Image 3\"\u003e\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n  ContinuousCarousel('gallery', {\n    interval: 5000,\n    pauseOnHover: true\n  });\n\u003c/script\u003e\n```\n\n## Styling\n\nThe carousel uses CSS custom properties for easy customization:\n\n```css\n.c-carousel-container {\n  /* Override defaults */\n  --carousel-item-width: 300px;\n  --carousel-item-height: 200px;\n  --carousel-transition-duration: 1000ms;\n}\n\n/* Custom item styles */\n.c-carousel-item {\n  background: #f0f0f0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n```\n\n## Browser Support\n\nModern browsers with ES6 module support:\n- Chrome/Edge 61+\n- Firefox 60+\n- Safari 11+\n- Opera 48+\n\nFor older browsers, use the transpiled UMD build (`continuous-carousel.min.js`).\n\n## Demos\n\nCheck out the [live demos](https://jonchretien.github.io/continuous-carousel/) for more examples:\n\n- Basic horizontal and vertical carousels\n- Image galleries with captions\n- Card showcases and testimonials\n- News tickers and text scrollers\n- Advanced features and API usage\n\n## Migration from v0.2.x\n\nSee [MIGRATION.md](./MIGRATION.md) for upgrade instructions from v0.2.x to v0.3.0.\n\n## Contributing\n\nContributions are welcome! Please read the [contribution guidelines](./CONTRIBUTING.md) first.\n\n## License\n\nContinuous Carousel is released under the [MIT license](https://github.com/jonchretien/continuous-carousel/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonchretien%2Fcontinuous-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonchretien%2Fcontinuous-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonchretien%2Fcontinuous-carousel/lists"}