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

popcorn-slide

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popcorn-slide

A lib to create a slide images with canvas.

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Popcorn Slide Logo

Popcorn Slide

Build Status Coverage Status npm npm GitHub

Popcorn-slide is a javascript component for creating image slides with the canvas without the need for css or html.

Preview

Exemplo gif

Exemplo gif

Exemplo gif

Browser Support

ChromeFirefoxOperaSafariIE
39+ ✔42+ ✔29+ ✔Nope ✘Nope ✘

Installation

$ npm install popcorn-canvas --save

How to use

ES6

// to import a specific method
import PopcornSlide from 'popcorn-slide';

const canvas = document.getElementById('canvas')
const config = {
  canvas,
  list: [
    { url: 'image-1' },
    { url: 'image-2' },
    { url: 'image-3' },

  ],
  width: 1400,
  height: 662
}

const popcorn = new PopcornSlide(config);

Methods

Follow the methods that the library provides.

popcorn.previous()

Rewind an image by calling this method.

Example

  document.querySelector('.button-previous').addEventListener('click', () => popcorn.previous());

popcorn.next()

Advance an image by calling this method.

Example

  document.querySelector('.button-next').addEventListener('click', () => popcorn.next());

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

Denner Rondinely
Denner Rondinely

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs

Package last updated on 16 Mar 2020

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