All Projects → patricktran → react-magic-slider-dots

patricktran / react-magic-slider-dots

Licence: other
React Magic Dots Component for React Slick Carousel (inspired by Instagram)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-magic-slider-dots

Re Carousel
Minimal carousel component for React.
Stars: ✭ 226 (+976.19%)
Mutual labels:  carousel
Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+13447.62%)
Mutual labels:  carousel
ng2-carouselamos
Simple carousel/slider for angular 2.
Stars: ✭ 39 (+85.71%)
Mutual labels:  carousel
You Dont Need Javascript
CSS is powerful, you can do a lot of things without JS.
Stars: ✭ 16,514 (+78538.1%)
Mutual labels:  carousel
React Image Gallery
React carousel image gallery component with thumbnail support 🖼
Stars: ✭ 2,946 (+13928.57%)
Mutual labels:  carousel
MediaSliderView
Pure java based, highly customizable media slider gallery supporting both images and videos for android.
Stars: ✭ 85 (+304.76%)
Mutual labels:  carousel
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (+933.33%)
Mutual labels:  carousel
CarouselOverlappingCards-Flutter
Overlapping cards vertical scrolling with carousel effect
Stars: ✭ 14 (-33.33%)
Mutual labels:  carousel
Pagerecyclerview
PageRecyclerView achieves page turning function and unlimited carousel
Stars: ✭ 241 (+1047.62%)
Mutual labels:  carousel
yii2-gallery-widget
BlueImp Gallery Widget for Yii2
Stars: ✭ 60 (+185.71%)
Mutual labels:  carousel
Cwcarousel
轮播图banner
Stars: ✭ 228 (+985.71%)
Mutual labels:  carousel
Keen Slider
The HTML touch slider carousel with the most native feeling
Stars: ✭ 3,097 (+14647.62%)
Mutual labels:  carousel
react-instagram-zoom-slider
🌄↔️ A slider component with pinch to zoom capabilities inspired by Instagram
Stars: ✭ 67 (+219.05%)
Mutual labels:  carousel
Nuka Carousel
Pure React Carousel Component
Stars: ✭ 2,607 (+12314.29%)
Mutual labels:  carousel
GNCarousel
Carousel based on web design
Stars: ✭ 19 (-9.52%)
Mutual labels:  carousel
Vue Glide
A slider and carousel as vue component on top of the Glide.js
Stars: ✭ 225 (+971.43%)
Mutual labels:  carousel
vue-splide
The Splide component for Vue.
Stars: ✭ 257 (+1123.81%)
Mutual labels:  carousel
flexbox-carousel
CSS3 Animated Carousel with Flexbox
Stars: ✭ 23 (+9.52%)
Mutual labels:  carousel
Why-Not-Image-Carousel
Why Not use Image Carousel if you have lots of images to show!
Stars: ✭ 310 (+1376.19%)
Mutual labels:  carousel
vue-product-carousel
Simple product carousel with hot image replacement, Zoom and Swipe mode
Stars: ✭ 37 (+76.19%)
Mutual labels:  carousel

react-magic-slider-dots

React Magic Slider Dots Component for React Slick Carousel

Inspired by Instagram

NPM JavaScript Style Guide

screenshot

Install

npm install --save react-magic-slider-dots

⚠️ Also install react-slick and slick-carousel for css and font React Slick Documentation

npm install slick-carousel
npm install react-slick --save
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

DEMO

Usage

import React, { Component } from 'react';
import Slider from 'react-slick';
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';

import MagicSliderDots from 'react-magic-slider-dots';
import 'react-magic-slider-dots/dist/magic-dots.css';

class App extends Component {
  render() {
    const settings = {
      dots: true,
      arrows: true,
      infinite: false,
      speed: 500,
      slidesToShow: 1,
      slidesToScroll: 1,
      appendDots: dots => {
        return <MagicSliderDots dots={dots} numDotsToShow={4} dotWidth={30} />;
      }
    };

    return (
      <Slider {...settings}>
        <div>
          <h3>1</h3>
        </div>
        <div>
          <h3>2</h3>
        </div>
        <div>
          <h3>3</h3>
        </div>
        <div>
          <h3>4</h3>
        </div>
        <div>
          <h3>5</h3>
        </div>
        <div>
          <h3>6</h3>
        </div>
        <div>
          <h3>7</h3>
        </div>
        <div>
          <h3>8</h3>
        </div>
      </Slider>
    );
  }
}

API

This a list of props that you can pass down to the component:

Property Description Default value Type Required
dots array of HTML li elements representing the slider dot array yes
numDotsToShow number of slider dots to show number yes
dotWidth width, in pixels, of a slider dot including any margins/padding number yes
dotContainerClassName class name of parent div magic-dots slick-dots string
activeDotClassName class name of active slider dot slick-active string
prevNextDotClassName class name of left-most (prev) and right-most (next) slider dot. small string

License

MIT © patricktran

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].