Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conveyor-slideshow

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conveyor-slideshow

Simple slider written in plain old JS / HTML5 / CSS

  • 0.7.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Simple manual slideshow. Plain Javascript / HTML5 / CSS. No jQuery dependency!

This package is released as a UMD module. It may be consumed as a CommonJS module or used as a global.

Setup:

npm install

Start the example project at port 8080 and open http://localhost:8080/example :

npm run example

Usage

Conveyor uses CSS classes to show, hide, and transition (TBD) the slides. The HTML structure should be:

<div myContainer>
    <div class="conveyor">
        <div class="conveyor-display">
            <div class="item conveyor-current"> --- Slide 1 --- </div>
            <div class="item"> --- Slide 2 --- </div>
            ...
        </div>
    </div>
</div>

Conveyor will automatically add the dots and arrows to the container. Their HTML structures are:

<ol class="dotsList">
    <li class="conveyor-dot conveyor-dot-current"></li>
    <li class="conveyor-dot"></li>
    ...
</ol>
<div class="conveyor-ctrl-left">
    <a class="conveyor-prev">
        <span class="icon icon-arrow-left"></span>
    </a>
</div>
<div class="conveyor-ctrl-right">
    <a class="conveyor-next">
        <span class="icon icon-arrow-right"></span>
    </a>
</div>

See example/example.css for styling examples.
[ToDo: Sass version]

To Do

Pull requests are welcome.

  • Unit tests.
  • Add transitions and other eye candy.
  • Add more user-configurable options such as slide transitions, nav arrow images...
  • Auto-play
  • Navigate by clicking on dots.
  • General code cleanup

License

MIT

Keywords

FAQs

Package last updated on 10 May 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc