npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-flexible-carousel

v1.2.6

Published

react flexible carousel let you can easily control with style, rwd, lifecycle and dynamic path.

Downloads

129

Readme

React Flexible Carousel

⭐️ Flexible image carousel and respond on any device 💻 🖥 👀

Simple Example

import React, { Component } from 'react'
import { Carousel } from 'react-flexible-carousel'
class SimpleExample extends Component {
  render() {
    const urls = [
      'http://images.freeimages.com/images/previews/a6c/window-7-1547198.jpg',
      'http://images.freeimages.com/images/previews/5f7/hunter-s-bend-1316926.jpg',
      'http://images.freeimages.com/images/previews/423/burger-1320282.jpg',
      'http://images.freeimages.com/images/previews/f44/strawberry-cake-2-1323179.jpg',
      'http://images.freeimages.com/images/previews/5b0/rubik-s-cube-1-1424892.jpg',
    ]
    return (
      <Carousel
        urls={ urls }
        use_thumbs={ true }
        listHeight={ 200 }
      />
    )
  }  
}
export default SimpleExample

Example page

Demo Page

Installation

> npm install react-flexible-carousel --save

USE

examples

PROGRESS

  • [x] handle wrapper
    • [x] custom wrapper style
  • [x] handle list slider
    • [x] handle list auto play
    • [x] handle custom image
      • [x] use image url data
      • [x] use custom component
  • [x] handle thumbs
    • [ ] custom thumbs position
      • [ ] top
      • [x] bottom
      • [ ] left
      • [ ] right
    • [x] thumbs item custom style
    • [x] thumbs per page
    • [x] start action ID
  • [x] handle arrow
    • [x] handle arrow use
    • [x] handle custom arrow component
  • [x] handle lazy load
  • [x] handle respond design
    • [x] with parent element
  • [x] handle touch mode
  • [ ] handle hook event
    • [ ] handle before, after bind event
      • [x] handle wrapper mouse over, leave event
      • [ ] ~~handle arrow mouse click~~
      • [x] handle actionID change
      • [ ] handle thumbs item click
      • [ ] ~~handle thumbs item change~~
  • [ ] handle fancy box show ( click list image and show the bigger one )

Props

| Property | Type | Description | Default | Done | | ------------- | ---- | ----------- | ------- | ---- | |urls (required)|array|An array of urls|null|Done| |listWidth|int|carousel image width size|300|Done| |listHeight|int|carousel image height size|400|Done| |auto_play|boolean||false|Done| |auto_play_speed|int|speed setting for auto play|1000|Done| |use_arrow|boolean||false|Done| |use_left_arrow|ReactElement|custom left arrow ReactElement|null|Done| |use_right_arrow|ReactElement|custom right arrow ReactElement|null|Done| |use_thumbs|boolean|||Done| |touch_mode|boolean||control touch mode by yourself|Done| |thumbsPerPage|int||5|Done| |lazy_load|boolean||true|Done| |styleEase|string|use css3 ease style e.g. "ease-in-out", "ease-in" etc..|ease-out|Done| |custom_styles|object|custom styles for carousel component. e.g. "wrapper", "list", "thumbs", "thumbs_item"||Done| |custom_thumbs({ setting, handler })|ReactElement|see example||Done| |custom_lists({ urls, width, height })|ReactElement|see example||Done| |start_actionID|int||0|Done|

Events

| Property | Type | Description | Done | | ------------- | ---- | ----------- | ------- | |beforeWrapperMouseOver(actionID, actionUrl)|function|This callback fires before wrapper mouse over|Done| |afterWrapperMouseOver(actionID, actionUrl)|function|This callback fires after wrapper mouse over|Done| |beforeWrapperMouseLeave(actionID, actionUrl)|function|This callback fires before wrapper mouse leave|Done| |afterWrapperMouseLeave(actionID, actionUrl)|function|This callback fires after wrapper mouse leave|Done| |beforeActionIDChange(preID)|function|This callback fires before actionID changed|Done| |afterActionIDChange(nextID)|function|This callback fires after actionID changed|Done|