一个支持幻灯片、淡出和放大的 react 组件
A simple slideshow component built with react that supports slide, fade and zoom effects. For full documentation click here
npm install react-slideshow-image -Syarn add react-slideshow-imageYou need to import the css style, you can do that by adding to the js file
import 'react-slideshow-image/dist/styles.css'
or to your css file
@import "react-slideshow-image/dist/styles.css";
You can use three different effects of the slideshow. Check examples
You can use this playground to tweak some values
…You can use this playground to tweak some values
…You can use this playground to tweak some values
import React from 'react';
import { Zoom } from 'react-slideshow-image';
import 'react-slideshow-image/dist/styles.css'
const images = [
'images/slide_2.jpg',
'images/slide_3.jpg',
'images/slide_4.jpg',
'images/slide_5.jpg',
'images/slide_6.jpg',
'images/slide_7.jpg'
];
const Slideshow = () => {
return (
)
}If you want to run the app in development mode, you can run npm start to build the file in watch mode or npm build and then npm pack if you want to use it as a module in another project on your laptop.
To run the storybook just run npm run storybook
暂无开放 Issues,或尚未同步最近议题。