百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-slideshow

> 前端框架
开源

一个支持幻灯片、淡出和放大的 react 组件

386 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个支持幻灯片、淡出和放大的 react 组件

React-Slideshow

A simple slideshow component built with react that supports slide, fade and zoom effects. For full documentation click here

Installation

bash
npm install react-slideshow-image -S
bash
yarn add react-slideshow-image

You need to import the css style, you can do that by adding to the js file

javascript
import 'react-slideshow-image/dist/styles.css'

or to your css file

css
@import "react-slideshow-image/dist/styles.css";

You can use three different effects of the slideshow. Check examples

Slide Effect

You can use this playground to tweak some values

…

Fade Effect

You can use this playground to tweak some values

…

Zoom Effect

You can use this playground to tweak some values

javascript
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 (
      

    )
}

Development

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· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptcarouselgalleryimagesreact

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架