Skip to content

Commit

Permalink
fix: smoothed out carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMarin committed Jul 6, 2024
1 parent ecbaf68 commit 9353e55
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/components/nft-dashboard/trending-creators/TrendingCreators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ export const TrendingCreators: React.FC = () => {
afterChange={() => setDragging(false)}
slidesToShow={7}
ref={sliderRef}
swipe={true}
centerMode={false}
infinite={false}
speed={500}
swipeToSlide={true}
draggable={true}
easing="ease-in-out"
responsive={[
{
breakpoint: 1920,
Expand All @@ -104,7 +108,7 @@ export const TrendingCreators: React.FC = () => {
{
breakpoint: 1700,
settings: {
slidesToShow: 8,
slidesToShow: 7,
},
},
{
Expand All @@ -116,67 +120,67 @@ export const TrendingCreators: React.FC = () => {
{
breakpoint: 1370,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 1279,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 1200,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 1120,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 1020,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 920,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 820,
settings: {
slidesToShow: 8,
slidesToShow: 6,
},
},
{
breakpoint: 767,
settings: {
slidesToShow: 8,
slidesToShow: 5,
},
},
{
breakpoint: 650,
settings: {
slidesToShow: 8,
slidesToShow: 5,
},
},
{
breakpoint: 550,
settings: {
slidesToShow: 7,
slidesToShow: 5,
},
},
{
breakpoint: 500,
settings: {
slidesToShow: 6,
slidesToShow: 5,
},
},
{
Expand Down

0 comments on commit 9353e55

Please sign in to comment.