Commit 63c67a1d authored by Technoboy10's avatar Technoboy10

use frameless.js for carousel breakpoints

parent 2da07923
......@@ -5,6 +5,8 @@ var Slider = require('react-slick');
var Thumbnail = require('../thumbnail/thumbnail.jsx');
var frameless = require('../../../lib/frameless.js')
require('slick-carousel/slick/slick.scss');
require('slick-carousel/slick/slick-theme.scss');
require('./carousel.scss');
......@@ -35,17 +37,17 @@ var Carousel = React.createClass({
slidesToScroll: 5,
variableWidth: true,
responsive: [
{breakpoint: 480, settings: {
{breakpoint: frameless.mobile, settings: {
arrows: true,
slidesToScroll: 1,
slidesToShow: 1,
centerMode: true
}},
{breakpoint: 640, settings: {
{breakpoint: frameless.tablet, settings: {
slidesToScroll: 2,
slidesToShow: 2
}},
{breakpoint: 942, settings: {
{breakpoint: frameless.desktop, settings: {
slidesToScroll: 4,
slidesToShow: 4
}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment