{"_id":"react-slick2","_rev":"317064","name":"react-slick2","description":" React port of slick carousel","dist-tags":{"latest":"0.6.6"},"maintainers":[{"name":"sorrycc","email":""}],"time":{"modified":"2021-06-03T20:06:04.000Z","created":"2015-08-20T02:37:25.957Z","0.6.6":"2015-08-20T02:37:25.957Z"},"users":{},"author":{"name":"Kiran Abburi"},"repository":{"type":"git","url":"https://github.com/akiran/react-slick"},"versions":{"0.6.6":{"name":"react-slick2","version":"0.6.6","description":" React port of slick carousel","main":"./lib","scripts":{"start":"gulp server","test":"karma start --single-run"},"author":{"name":"Kiran Abburi"},"license":"MIT","repository":{"type":"git","url":"https://github.com/akiran/react-slick"},"keywords":["slick","carousel","Image slider","orbit","slider","react-component"],"devDependencies":{"autoprefixer-core":"^5.1.11","babel":"^5.4.7","babel-core":"^5.4.7","babel-eslint":"^3.1.10","babel-loader":"^5.1.3","css-loader":"^0.14.4","deepmerge":"^0.2.10","del":"^1.2.0","es5-shim":"^4.1.7","eslint":"^0.22.1","eslint-plugin-react":"^2.4.0","express":"^5.0.0-alpha.1","foundation-apps":"^1.1.0","gulp":"^3.8.11","gulp-sass":"^2.0.1","karma":"^0.12.31","karma-chrome-launcher":"^0.1.12","karma-mocha":"^0.2.0","karma-phantomjs-launcher":"^0.2.0","karma-webpack":"^1.6.0","mocha":"^2.2.5","node-sass":"^3.1.2","phantomjs":"^1.9.17","postcss-loader":"^0.4.4","react":"^0.13.3","react-hot-loader":"^1.2.7","react-router":"^0.13.3","run-sequence":"^1.1.0","sass-loader":"^1.0.2","should":"^7.0.2","sinon":"^1.14.1","style-loader":"^0.12.3","webpack":"^1.9.10","webpack-dev-server":"^1.9.0"},"dependencies":{"classnames":"^2.1.1","json2mq":"^0.2.0","object-assign":"^2.0.0","react-responsive-mixin":"^0.3.5","slick-carousel":"^1.5.5"},"peerDependencies":{"react":">=0.12.*"},"npmName":"react-slick","npmFileMap":[{"basePath":"/dist/","files":["*.js"]}],"bugs":{"url":"https://github.com/akiran/react-slick/issues"},"homepage":"https://github.com/akiran/react-slick","gitHead":"26171398eb64ec1adbfc98b62d82b802c28f4dee","_id":"react-slick2@0.6.6","_shasum":"9078e10b7f6a0116395cf45a10d56b5cf1e1a829","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":""}],"dist":{"shasum":"9078e10b7f6a0116395cf45a10d56b5cf1e1a829","size":107702,"noattachment":false,"key":"/react-slick2/-/react-slick2-0.6.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-slick2/download/react-slick2-0.6.6.tgz"},"directories":{},"publish_time":1440038245957,"_cnpm_publish_time":1440038245957,"_hasShrinkwrap":false}},"readme":"# react-slick\nCarousel component built with React. It is a react port of [slick carousel](http://kenwheeler.github.io/slick/)\n\n# Road to 1.0\nreact-slick is under active development now.\nSoon this project will have all the features of slick carousel.\nWe encourage your feedback and support.\n\n### Installation\n```bash\n  npm install react-slick\n```\nAlso install slick-carousel for css and font\n```bash\n  bower install slick-carousel\n```\nor add cdn link in your html\n```\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.3.15/slick.css\" />\n```\n\n### [Demos](http://webrafter.com/opensource/react-slick)\n\n\n### Starter Kit\nCheckout [yeoman generator](https://github.com/akiran/generator-react-slick) to quickly\nget started with react-slick.\n\n### Example\n```js\nvar React = require('react');\nvar Slider = require('react-slick');\n\nvar SimpleSlider = React.createClass({\n  render: function () {\n    var settings = {\n      dots: true,\n      infinite: true,\n      speed: 500,\n      slidesToShow: 1,\n      slidesToScroll: 1\n    };\n    return (\n      <Slider {...settings}>\n        <div><h3>1</h3></div>\n        <div><h3>2</h3></div>\n        <div><h3>3</h3></div>\n        <div><h3>4</h3></div>\n        <div><h3>5</h3></div>\n        <div><h3>6</h3></div>\n      </Slider>\n    );\n  }\n});\n```\n\n|    Property    | Type |          Description          | Working |\n| -------------  | ---- |          -----------          | ------- |\n| className      | String |Additional class name for the inner slider div | Yes |\n| adaptiveHeight | bool | Adjust the slide's height automatically | Yes |\n| arrows         | bool | Should we show Left and right nav arrows | Yes |\n| autoplay       | bool | Should the scroller auto scroll? | Yes |\n| autoplaySpeed  |  int | delay between each auto scoll. in ms | Yes |\n| centerMode     | bool | Should we centre to a single item? | Yes |\n| centerPadding  | | | |\n| cssEase        | | | |\n| dots           |bool | Should we show the dots at the bottom of the gallery | Yes |\n| dotsClass      | string | Class applied to the dots if they are enabled | Yes |\n| draggable      | bool | Is the gallery scrollable via dragging on desktop? | Yes |\n| easing         | string | | |\n| fade           | bool | Slides use fade for transition  | Yes |\n| focusOnSelect  | bool | | |\n| infinite       | should the gallery wrap around it's contents | Yes |\n| initialSlide   | int | which item should be the first to be displayed | Yes |\n| lazyLoad       | bool | Loads images or renders components on demands | Yes |\n| responsive     | array | Array of objects in the form of `{ breakpoint: int, settings: { ... } }` The breakpoint _int_ is the `maxWidth` so the settings will be applied when resolution is below this value. Breakpoints in the array should be ordered from smalles to greatest. Use 'unslick' in place of the settings object to disable rendering the carousel at that breakpoint. Example: `[ { breakpoint: 768, settings: { slidesToShow: 3 } }, { breakpoint: 1024, settings: { slidesToShow: 5 } }, { breakpoint: 100000, settings: 'unslick' } ]`| Yes |\n| rtl            | bool | Reverses the slide order | Yes |\n| slide         | string |||\n| slidesToShow | int | Number of slides to be visible at a time | Yes |\n| slidesToScroll | int | Number of slides to scroll for each navigation item\n| speed | int |||\n| swipe | bool |||\n| swipeToSlide | bool |||\n| touchMove | bool |||\n| touchThreshold | int |||\n| variableWidth | bool |||\n| useCSS | bool | Enable/Disable CSS Transitions | Yes |\n| vertical | bool |||\n| afterChange | function | callback function called after the current index changes | Yes |\n| beforeChange | function | callback function called before the current index changes | Yes |\n\n### Development\nWant to run demos locally\n```\ngit clone https://github.com/akiran/react-slick\nnpm install\nnpm start\nopen http://localhost:8000\n```\n","_attachments":{},"homepage":"https://github.com/akiran/react-slick","bugs":{"url":"https://github.com/akiran/react-slick/issues"},"license":"MIT"}