All Projects → femioladeji → React Slideshow

femioladeji / React Slideshow

Licence: apache-2.0
A react component for slideshow supporting slide, fade and zoom

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Slideshow

Nanogallery2
a modern photo / video gallery and lightbox [JS library]
Stars: ✭ 488 (+142.79%)
Mutual labels:  images, gallery
Videoshow
Simple node.js utility to create video slideshows from images with optional audio and visual effects using ffmpeg
Stars: ✭ 618 (+207.46%)
Mutual labels:  slideshow, images
Axphotoviewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos.
Stars: ✭ 544 (+170.65%)
Mutual labels:  slideshow, gallery
V Img
Stars: ✭ 400 (+99%)
Mutual labels:  images, gallery
Photos
📸 Your memories under your control
Stars: ✭ 157 (-21.89%)
Mutual labels:  slideshow, gallery
Vue Gallery
📷 Responsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers.
Stars: ✭ 405 (+101.49%)
Mutual labels:  images, gallery
React Native Image Gallery
Pure JavaScript image gallery component for iOS and Android with high-performance and native feeling in mind
Stars: ✭ 601 (+199%)
Mutual labels:  images, gallery
previewSlider
Responsive fullscreen image slider where the users are able to preview next/previous image when hovering over the navigation arrows.
Stars: ✭ 16 (-92.04%)
Mutual labels:  gallery, slideshow
Imageslideshow
Swift image slideshow with circular scrolling, timer and full screen viewer
Stars: ✭ 1,612 (+701.99%)
Mutual labels:  slideshow, gallery
Ng Simple Slideshow
A simple, responsive slideshow for Angular 4+.
Stars: ✭ 119 (-40.8%)
Mutual labels:  slideshow, gallery
Kiimagepager
The KIImagePager is inspired by foursquare's ImageSlideshow, the user may scroll through images loaded from the Web
Stars: ✭ 324 (+61.19%)
Mutual labels:  slideshow, gallery
Slider
Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap
Stars: ✭ 2,046 (+917.91%)
Mutual labels:  slideshow, gallery
Perfect Layout
Image layout generator based on linear partitioning
Stars: ✭ 312 (+55.22%)
Mutual labels:  images, gallery
Ngx Gallery
Angular Gallery, Carousel and Lightbox
Stars: ✭ 417 (+107.46%)
Mutual labels:  slideshow, gallery
Simple React Lightbox
A simple but functional light-box for React.
Stars: ✭ 265 (+31.84%)
Mutual labels:  images, gallery
React Grid Gallery
Justified image gallery component for React
Stars: ✭ 571 (+184.08%)
Mutual labels:  images, gallery
hes-gallery
Light, dependency free, responsive gallery script
Stars: ✭ 27 (-86.57%)
Mutual labels:  gallery, images
diorama
An image layout algorithm
Stars: ✭ 17 (-91.54%)
Mutual labels:  gallery, images
Photo view
📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
Stars: ✭ 1,280 (+536.82%)
Mutual labels:  images, gallery
Vue Displacement Slideshow
A Vue.js 2.0 slideshow component working with Three.js
Stars: ✭ 165 (-17.91%)
Mutual labels:  slideshow, images

React-Slideshow

CircleCI codecov Package Quality downloads

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

Installation

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

You 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

Slide Effect

You can use this playground to tweak some values

import React from 'react';
import { Slide } from 'react-slideshow-image';
import 'react-slideshow-image/dist/styles.css'

const slideImages = [
  'images/slide_2.jpg',
  'images/slide_3.jpg',
  'images/slide_4.jpg'
];

const Slideshow = () => {
    return (
      <div className="slide-container">
        <Slide>
          <div className="each-slide">
            <div style={{'backgroundImage': `url(${slideImages[0]})`}}>
              <span>Slide 1</span>
            </div>
          </div>
          <div className="each-slide">
            <div style={{'backgroundImage': `url(${slideImages[1]})`}}>
              <span>Slide 2</span>
            </div>
          </div>
          <div className="each-slide">
            <div style={{'backgroundImage': `url(${slideImages[2]})`}}>
              <span>Slide 3</span>
            </div>
          </div>
        </Slide>
      </div>
    )
}

Fade Effect

You can use this playground to tweak some values

import React from 'react';
import { Fade } from 'react-slideshow-image';
import 'react-slideshow-image/dist/styles.css'

const fadeImages = [
  'images/slide_5.jpg',
  'images/slide_6.jpg',
  'images/slide_7.jpg'
];

const Slideshow = () => {
  return (
    <div className="slide-container">
      <Fade>
        <div className="each-fade">
          <div className="image-container">
            <img src={fadeImages[0]} />
          </div>
          <h2>First Slide</h2>
        </div>
        <div className="each-fade">
          <div className="image-container">
            <img src={fadeImages[1]} />
          </div>
          <h2>Second Slide</h2>
        </div>
        <div className="each-fade">
          <div className="image-container">
            <img src={fadeImages[2]} />
          </div>
          <h2>Third Slide</h2>
        </div>
      </Fade>
    </div>
  )
}

Zoom Effect

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 (
      <div className="slide-container">
        <Zoom scale={0.4}>
          {
            images.map((each, index) => <img key={index} style={{width: "100%"}} src={each} />)
          }
        </Zoom>
      </div>
    )
}

Properties

Click here for all the properties you can use to customize the behavior of the slideshow.

methods

Click here for all the methods you can call on the slideshow

Typescript

The type bindings have not been added yet to the types registry yet. It's a WIP. You can follow this instruction

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].