All Projects → skozer → react-instagram-zoom-slider

skozer / react-instagram-zoom-slider

Licence: MIT license
🌄↔️ A slider component with pinch to zoom capabilities inspired by Instagram

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-instagram-zoom-slider

MediaSliderView
Pure java based, highly customizable media slider gallery supporting both images and videos for android.
Stars: ✭ 85 (+26.87%)
Mutual labels:  slider, carousel
vue-splide
The Splide component for Vue.
Stars: ✭ 257 (+283.58%)
Mutual labels:  slider, carousel
Ngx Carousel
An amazing responsive carousel for angular 2+ . It have multiple options to control the carousel and also it is very simple to getstarted. Go and try this angular 2+ carousel. Getstarted available in readme file
Stars: ✭ 121 (+80.6%)
Mutual labels:  slider, carousel
React Siema
ReactSiema Demo
Stars: ✭ 90 (+34.33%)
Mutual labels:  slider, carousel
Vue Glide
A slider and carousel as vue component on top of the Glide.js
Stars: ✭ 225 (+235.82%)
Mutual labels:  slider, carousel
Embla Carousel
A lightweight carousel library with fluid motion and great swipe precision.
Stars: ✭ 1,874 (+2697.01%)
Mutual labels:  slider, carousel
React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+2828.36%)
Mutual labels:  slider, carousel
React Soft Slider
Simple, fast and impartial slider
Stars: ✭ 54 (-19.4%)
Mutual labels:  slider, carousel
React Flickity Component
A React.js component for using @desandro's Flickity
Stars: ✭ 232 (+246.27%)
Mutual labels:  slider, carousel
Xam.plugin.simpleappintro
Just a nice and simple AppIntro for your Xamarin Forms project
Stars: ✭ 139 (+107.46%)
Mutual labels:  slider, carousel
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (+223.88%)
Mutual labels:  slider, carousel
Slider
Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap
Stars: ✭ 2,046 (+2953.73%)
Mutual labels:  slider, carousel
React Native Carousel View
react-native carousel, support in both Android and iOS
Stars: ✭ 70 (+4.48%)
Mutual labels:  slider, carousel
React Spring Slider
A slider component for react
Stars: ✭ 118 (+76.12%)
Mutual labels:  slider, carousel
React Carousel
Lightweight carousel component for react
Stars: ✭ 56 (-16.42%)
Mutual labels:  slider, carousel
Widget
A set of widgets based on jQuery&&javascript. 一套基于jquery或javascript的插件库 :轮播、标签页、滚动条、下拉框、对话框、搜索提示、城市选择(城市三级联动)、日历等
Stars: ✭ 1,579 (+2256.72%)
Mutual labels:  slider, carousel
React Splide
The Splide component for React.
Stars: ✭ 32 (-52.24%)
Mutual labels:  slider, carousel
Tiny Swiper
Ingenious JavaScript Carousel powered by wonderful plugins. Lightweight yet extensible. Import plugins as needed, No more, no less.
Stars: ✭ 1,061 (+1483.58%)
Mutual labels:  slider, carousel
Carousel View
CarouselView for android with showing horizontal and vertical, auto scrolling (with pause/resume), slider mode/ carousel mode options
Stars: ✭ 131 (+95.52%)
Mutual labels:  slider, carousel
Svelte Carousel
A super lightweight, super simple Carousel for Svelte 3
Stars: ✭ 144 (+114.93%)
Mutual labels:  slider, carousel

react-instagram-zoom-slider is a slider component with pinch to zoom capabilities inspired by Instagram.

NPM npm bundle size

Example

react-instagram-zoom-slider demo

👉 View this interactive demo here

Install

yarn add react-instagram-zoom-slider react-spring react-use-gesture styled-components

Usage

import React, { Component } from 'react'
import ZoomSlider from 'react-instagram-zoom-slider'

function App() {
  const slides = [<img src="..." alt="First slide" />, <img src="..." alt="Second slide" />]

  return <ZoomSlider slides={slides} />
}

Common Props

Common props you may want to specify include:

Prop Description Default
slides List of slides to render Required
initialSlide Index of the slide to be rendered by default 0
maxScale Maximum zoom level 4
minScale Minimum zoom level 1
slideOverlay Content to overlay on the slider null
slideIndicatorTimeout Time in milliseconds until the slide indicator fades out.
Set to null to disable this behavior.
5000
activeDotColor Pagination dot color for the active slide #4e99e9
dotColor Pagination dot color for all other slides #dadbdc

Building a custom slider

If you need to customize the slider components beyond what is available via props, you can use the useSlider and useZoom hooks to build your own components with slide and zoom functionality.

License

MIT Licensed. Copyright © Sean Kozer 2020.

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