1.0.27 • Published 6 years ago

thumbnail-slide-react v1.0.27

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Install

Install with NPM

npm i thumbnail-slide-react --save

Install with yarn

yarn add thumbnail-slide-react

Usage

Only the class thumbnail-slide-react is mandatory to apply proper default styles:

import ThumbnailSlider from "thumbnail-slide-react";
import { Icon } from "antd";

<main className="mainOne">
  <div className="standard-product-page-main">
    <div className="standard-product-container">
      <ThumbnailSlider
        images={images}
        direction="horizontal || vertical"
        isTouch="true"
        numberOfThumpImage={5}
        gapBetweenThumbnail={30}
        isButtom={false}
        previousIcon={<Icon type="left" className="arrow" />}
        nextIcon={<Icon type="right" className="arrow" />}
        zoomInIcon={<Icon type="zoom-in" className="arrow" />}
        zoomOutIcon={<Icon type="zoom-out" className="arrow" />}
      />
    </div>
  </div>
</main>;
.mainOne {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: calc(100% - 32px);
}

.standard-product-page-main {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  position: relative;
  margin-top: 0;
}

.standard-product-container {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  flex-direction: column;
  -webkit-box-pack: justify;
}

License

The code and the documentation are released under the MIT License.

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago