Socket
Socket
Sign inDemoInstall

react-opacity-carousel

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-opacity-carousel

Opacity Carousel with Opacity Animation on List Items


Version published
Maintainers
1
Install size
416 kB
Created

Readme

Source

Description

Powerful, lightweight and fully customizable opacity carousel component for React apps.

Features

  • Fully customizable
  • Template insertion
  • Mobile friendly
  • SSR support
  • Custom animation duration
  • Auto play feature
  • Custom auto play interval
  • Supports anything (image/videos/text content). Each direct child will be one slide

Demo

https://github.com/hdhami

Installing as a package

npm install react-opacity-carousel --save-dev

Usage

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { OpacityCarousel } from 'react-opacity-carousel';

class DemoCarousel extends Component {
    render() {
        return (
            <OpacityCarousel duration={4000} interval={20} fade="in-out">
                <div>
                    <img src="content/a.jpeg" />
                    <p className="label">Title A</p>
                </div>
                <div>
                    <img src="content/b.jpeg" />
                    <p className="label">Title B</p>
                </div>
                <div>
                    <img src="content/c.jpeg" />
                    <p className="label">Title C</p>
                </div>
            </OpacityCarousel>
        );
    }
});

ReactDOM.render(<DemoCarousel />, document.querySelector('.opac-carousel'));

AttributesTypeDefaultDescription
durationnumber4000animation duration for the list item in miliseconds
intervalnumber20interval duration for list item's opacity state update
fadestringin-outtype of fade effect on list item. Possible values are 'in', 'out','in-out'

=======================

Contributing

=======================

Raising issues

=======================

License

Please see LICENSE for details.

FAQs

Last updated on 08 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc