{"id":18814473,"url":"https://github.com/jsoon/concise-family","last_synced_at":"2026-01-13T04:30:20.954Z","repository":{"id":57205188,"uuid":"242925036","full_name":"JSoon/concise-family","owner":"JSoon","description":"Javascript components written in ES6 \u0026 CSS3 intended to provide concise libraries.","archived":false,"fork":false,"pushed_at":"2020-04-07T06:36:12.000Z","size":295,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T00:48:29.102Z","etag":null,"topics":["javascript-library","slider-component"],"latest_commit_sha":null,"homepage":"http://jsoon.fun/concise-family/demo/","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/JSoon.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":"2020-02-25T06:15:27.000Z","updated_at":"2020-04-07T06:36:15.000Z","dependencies_parsed_at":"2022-09-12T22:51:00.947Z","dependency_job_id":null,"html_url":"https://github.com/JSoon/concise-family","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/JSoon%2Fconcise-family","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2Fconcise-family/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2Fconcise-family/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2Fconcise-family/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSoon","download_url":"https://codeload.github.com/JSoon/concise-family/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239750271,"owners_count":19690605,"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":["javascript-library","slider-component"],"created_at":"2024-11-07T23:41:13.623Z","updated_at":"2026-01-13T04:30:20.917Z","avatar_url":"https://github.com/JSoon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eConcise-Family\u003c/h1\u003e\n\u003cp\u003e\nConcise-Family is a vanilla Javascript library consisting of Javascript components written in ES6 \u0026 CSS3 intended to provide concise libraries.\n\u003c/p\u003e\n\n# Table of contents\n- [Table of contents](#table-of-contents)\n- [Install](#install)\n- [Build](#build)\n- [Concise-Slider](#concise-slider)\n  - [Usage](#usage)\n  - [Options](#options)\n\n# Install\n```js\nnpm i concise-family -D\n```\n\n# Build\nThere's nothing more to say about the building work which is bundled with Webpack.\n\nYou can either use the resources in the public directory or build them via `npm run prod` by yourself.\n\nNote that all the concise components are registered under global namespace `ConciseFamily`. You can check that in the `webpack.common.js`.\n\n\u003e Note: This library is built using UMD style so I'm pretty sure you know what it means.\n\n# Concise-Slider\nConcise-Slider offers you a quite light slider but consists of sufficient features. The code is clear enough even for beginners. You can do whatever you want to customize and fulfill your own demands easily.\n\n## Usage\n1. Script tag\n```html\n\u003clink rel=\"stylesheet\" href=\"/public/concise-slider.css\"\u003e\n\u003cscript src=\"/public/concise-slider.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const mySlider = window.ConciseFamily['concise-slider']\n\u003c/script\u003e\n```\n2. ES6 module\n```js\nimport '/public/concise-slider.sass'\nimport conciseSlider from '/public/concise-slider'\nconst mySlider = conciseSlider\n```\n3. AMD\n```js\n// AMD\ndefine(['/public/concise-slider'], conciseSlider =\u003e {\n  const mySlider = conciseSlider  \n}) \n```\n4. CommonJS\n```js\nconst conciseSlider = require('/public/concise-slider')\nconst mySlider = conciseSlider  \n```\nNow that we have the `conciseSlider` function, we can just call it like this:\n```js\n// All the descriptions of params can be found in the source code, simple enough.\nmySlider({\n  selector: '#J_ConciseSlider',\n  gridNum: 4,\n  step: 2\n})\n```\n\n## Options\n\n```js\n/**\n * @description Concise slider component\n * Note: This is not a gallery plugin, so far there is no autoplay function, which is not one of the intended features.\n * \n * @param {object}    params                Config object\n * @param {string}    params.selector       Id or class selector\n * @param {number}    params.gridNum        Number of visible grids\n * @param {number}    params.step           Step number of items for each slide, default to gridNum\n * @param {boolean}   params.loop           Whether to slide to the start or end while reaching the end or start, default to false\n * @param {boolean}   params.indicator      Whether to generate indicator, default to true\n * @param {boolean}   params.indicatorCtrl  Whether the indicator could control slide, default to false\n * @param {string}    params.indicatorType  Indicator type, page: one item represent gridNum slider items, single: one item maps a single slider item, default to page\n * @param {boolean}   params.prevNext       Whether to generate prev \u0026 next slide controllers, default to true\n * @param {boolean}   params.autoResize     Whether to resize slider when window resize fires, default to false\n * \n * Hooks functions\n * @param {function}  params.onCreated        Fired when all the DOM have been created and the sizes have been calculated\n * @param {function}  params.onBeforeSliding  Fired before sliding\n * @param {function}  params.onAfterSliding   Fired after sliding\n * @param {function}  params.onResized        Fired when the slider has been resized\n */\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoon%2Fconcise-family","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsoon%2Fconcise-family","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoon%2Fconcise-family/lists"}