@uiworkspace/sliders

0.1.15 • Public • Published

@uiworkspace/sliders

A library of pre-built slider components you can place on any react site.

Demos

Installation

npm i @uiworkspace/sliders

Flixslider usage

Note: Your total images should be at least double your specified amount per screen.

import { Flixslider } from '@uiworkspace/sliders'

export default function Yourcomponent() {

  const sliderContent = {
    offsetPercentage: 4,
    showOffsetOverlay: true,
    transitionSpeed: 0.45,
    mobileslidesPerScreen: 2,
    desktopslidesPerScreen: 3,
    images: [
      {
        imglink: "/images/photo.jpg", //path to image
      },
      {
        imglink: "/images/photo.jpg",
      },
      {
        imglink: "/images/photo.jpg",
      },
      {
        imglink: "/images/photo.jpg",
      },
      {
        imglink: "/images/photo.jpg",
      },
      {
        imglink: "/images/photo.jpg",
      },
    ],
  };

   return <Flixslider content={sliderContent} />
}

Fadeslider usage

import { Fadeslider } from '@uiworkspace/sliders'

export default function Yourcomponent() {

  const sliderContent = {
    arrowColor: "white", //optional
    customRightArrow: "", //optional
    customLeftArrow: "", //optional
    width: "100%", //optional
    height: "100vh", //optional
    slides: [
      {
        image: "/images/photo.jpg", //path to image
      },
      {
        image: "/images/photo.jpg",
      },
      {
        image: "/images/photo.jpg",
      },
    ],
  };

   return <Fadeslider content={sliderContent}></Fadeslider>
}

Parallax slider usage

import { Parallaxslider } from '@uiworkspace/sliders'

export default function Yourcomponent() {

  const sliderContent = {
    arrowColor: "white", //optional
    customRightArrow: "", //optional
    customLeftArrow: "", //optional
    width: "100%", //optional
    height: "80vh", //optional
    slides: [ //required
      {
        image: "/images/x.jpg",
      },
      {
        image: "/images/x1.jpg",
      },
      {
        image: "/images/x2.jpg",
      },
    ],
  };

   return <Parallaxslider content={sliderContent} />
}

Contact

Email: hello@uiworkspace.com

License

Non-exclusive license from uiworkspace.com

Package Sidebar

Install

npm i @uiworkspace/sliders

Weekly Downloads

1

Version

0.1.15

License

ISC

Unpacked Size

73.2 kB

Total Files

5

Last publish

Collaborators

  • digitalceo