New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

minsky-carousel

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minsky-carousel

A content carousel based on Swiper

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

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

A content carousel based on Swiper

Everybody loves carousels. This class is pretty much plug and play for any type of content. Enjoy our PeireMeulen!

Class type: Component

Dependencies

  • Component 1.0.0

Getting started

First wait until Swiper is loaded, then pass the parent of the content. For a full list of possible settings: https://idangero.us/swiper/api/#parameters

Javascript

import Carousel from 'minsky-carousel';

const carousel = new Carousel({
    el: [DOM ELEMENT],
    settings: {
        property: value
    }
});

SCSS

@import 'minsky-carousel/css/carousel.scss';

Constructor Parameters

args

Type: Object Default: {}

Config options that will be used when instance is created

objectName

Type: String Default: 'Carousel'

Object name that will be used as recognisable identifier and as prefix in logs


Interface

Methods

setSettings

Parameters: settings:object, autoReInnit:Boolean = true Return: self

Applies given settings to swiper by merging it with the params property. It’ll automatically re-innit the swiper instance when not specified otherwise

next

Parameters: [ none ] Return: self

Slides to next slide

previous

Parameters: [ none ] Return: self

Slides to previous slide

refresh

Parameters: [ none ] Return: self

Refreshes the swiper instance

Destroy

Parameters: [ none ] Return: undefined

Removes every trace of Swiper and puts everything back to normal


To Do

  • Move mergeObjects and mergeArrays methods outside of the class definition
  • See if general class can be used over extentions so has-control-modifiers don’t need to be defined every time the object name changes.

FAQs

Package last updated on 13 Nov 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