{"id":19076197,"url":"https://github.com/htmlelements/smart-carousel","last_synced_at":"2025-04-30T01:46:25.551Z","repository":{"id":57161038,"uuid":"159316623","full_name":"HTMLElements/smart-carousel","owner":"HTMLElements","description":"Carousel Custom Element","archived":false,"fork":false,"pushed_at":"2020-01-10T06:49:39.000Z","size":1895,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-17T01:15:17.187Z","etag":null,"topics":["carousel","carousel-3d","carousel-component","carousel-js","carousel-plugin","carousels","custom-elements","custom-elements-v1","html-elements","html5","javascript","web-components"],"latest_commit_sha":null,"homepage":"https://www.htmlelements.com/demos/carousel/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HTMLElements.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}},"created_at":"2018-11-27T10:19:31.000Z","updated_at":"2023-07-29T02:17:31.000Z","dependencies_parsed_at":"2022-08-29T10:01:23.146Z","dependency_job_id":null,"html_url":"https://github.com/HTMLElements/smart-carousel","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HTMLElements","download_url":"https://codeload.github.com/HTMLElements/smart-carousel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223775951,"owners_count":17200629,"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":["carousel","carousel-3d","carousel-component","carousel-js","carousel-plugin","carousels","custom-elements","custom-elements-v1","html-elements","html5","javascript","web-components"],"created_at":"2024-11-09T01:57:27.359Z","updated_at":"2024-11-09T01:57:28.426Z","avatar_url":"https://github.com/HTMLElements.png","language":"CSS","readme":"# [Smart Carousel Element](https://www.htmlelements.com) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Get%20over%2020%20free%20custom%20elements%20based%20on%20SmartHTMLElements%20\u0026url=https://www.htmlelements.com/\u0026via=htmlelements\u0026hashtags=bootstrap,design,templates,blocks,developers,webcomponents,customelements,polymer,material)\r\n\r\n[![Slack](https://smarthtmlelements-slack.herokuapp.com/badge.svg)](https://smarthtmlelements.slack.com/)\r\n[![Price](https://img.shields.io/badge/price-FREE-0098f7.svg)](https://github.com/HTMLElements/smart-carousel/blob/master/LICENSE)\r\n[![npm](https://img.shields.io/npm/v/froala-design-blocks.svg?colorB=brightgreen)](https://www.npmjs.com/package/@smarthtmlelements/smart-carousel)\r\n[![GitHub package version](https://img.shields.io/github/package-json/v/HTMLElements/smart-carousel.svg)](https://github.com/HTMLElements/smart-carousel)\r\n[![License: APACHE](https://img.shields.io/badge/license-APACHE-blue.svg)](https://github.com/HTMLElements/smart-carousel/blob/master/LICENSE)\r\n[![](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=www.htmlelements.com)](https://www.htmlelements.com)\r\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/htmlelements/smart-carousel)\r\n\r\n# \u0026lt;smart-carousel\u0026gt;\r\n\r\n[Live Demo ↗](https://htmlelements.com/demos/carousel/)\r\n|\r\n[Documentation ↗](https://www.htmlelements.com/docs/)\r\n|\r\n[Installation ↗](https://www.npmjs.com/package/@smarthtmlelements/smarthtmlelements-core)\r\n\r\n[\u0026lt;smart-carousel\u0026gt;](https://htmlelements.com/demos/carousel/) is a Custom HTML Element providing slide show/banner rotator](https://htmlelements.com/).\r\n\r\n\u003c!--\r\n```\r\n\u003ccustom-element-demo\u003e\r\n  \u003ctemplate\u003e\r\n    \u003cscript src=\"../webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\r\n    \u003cscript src=\"../smart-core/source/smart.core.js\"\u003e\u003c/script\u003e\r\n    \u003clink rel=\"stylesheet\" href=\"../smart-core/source/styles/smart.default.css\" type=\"text/css\" /\u003e\r\n \u003cscript\u003e\r\n   window.onload = function () {\r\n    var basePath = '/images/',\r\n        carouselSquare = document.getElementById('carouselSquare');\r\n \r\n    carouselSquare.dataSource = generateDataSource(7);\r\n \r\n    function generateDataSource(items) {\r\n        let dataSource = Array(items).fill({});\r\n\r\n        dataSource.forEach((element, index) =\u003e dataSource[index] = { image: `${basePath}carousel-square-${index + 1}.jpg` });\r\n        return dataSource;\r\n    }\r\n}\r\n   \u003c/script\u003e\r\n     \u003cnext-code-block\u003e\u003c/next-code-block\u003e\r\n  \u003c/template\u003e\r\n\u003c/custom-element-demo\u003e\r\n```\r\n--\u003e\r\n```html\r\n\u003csmart-carousel id=\"carouselSquare\" auto-play slide-show loop hide-indicators keyboard display-mode=\"3d\" interval=\"10000\"\u003e\u003c/smart-carousel\u003e\r\n```\r\n\r\n[\u003cimg src=\"https://raw.githubusercontent.com/htmlelements/smart-carousel/master/smart-carousel.png\" alt=\"Screenshot of smart-carousel\"\u003e](https://htmlelements.com/demos/carousel)\r\n\r\n## Getting Started\r\n\r\nSmart HTML Elements components documentation includes getting started, customization and api documentation topics.\r\n\r\n[Getting Started Documentation](https://www.htmlelements.com/docs/)\r\n\r\n\r\n## The file structure for Smart HTML Elements\r\n\r\n- `source/`\r\n\r\n  Javascript files.\r\n\r\n- `source/styles/`\r\n\r\n  Component CSS Files.\r\n\r\n- `demos/`\r\n\r\n  Demo files\r\n\r\n## Running demos in browser\r\n\r\n1. Fork the `Smart-HTML-Elements-Core` repository and clone it locally.\r\n\r\n1. Make sure you have [npm](https://www.npmjs.com/) installed.\r\n\r\n1. When in the `Smart-HTML-Elements-Core` directory, run `npm install` and then `bower install` to install dependencies.\r\n\r\n1. Run a localhost or upload the demo on a web server. Then run:\r\n\r\n  - /demos/smart-carousel/smart-carousel-overview.htm\r\n\r\n\r\n## Following the coding style\r\n\r\nWe are using [ESLint](http://eslint.org/) for linting JavaScript code. \r\n\r\n## Creating a pull request\r\n\r\n  - Make sure your code is compliant with ESLint\r\n  - [Submit a pull request](https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github) with detailed title and description\r\n  - Wait for response from one of our team members\r\n\r\n\r\n## License\r\n\r\nApache License 2.0\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlelements%2Fsmart-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlelements%2Fsmart-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlelements%2Fsmart-carousel/lists"}