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

slidedoom

v1.0.28

Published

Cross Browser and Responsive Multiple Slides Library for Modern Web Apps

Downloads

10

Readme

slidedoom

A responsive slide library for webpages Dont forget to add Slidedoom.css. It is needed inorder to display the slides correctly. Visit https://irfanit93.github.io for the implementation. Please update and use the slidedoom package latest version for bug fix and error handling..

New:Recent Update: Now you can clear the timer as the slidedoom() function will return <>. Clear the timer in componentWillUnmount in react and ngOnDestroy on Angular using the <<timerId.>>

Previous Update: 1.Added error handling for required parameteres for slides. 2.Added Slidespeed and Fullscreen mode by setting variable var slidespeed=1;//(in seconds) var fullscreendoom=true;//true(For normal web pages) to enable fullscreen icon at bottom or in angular pass last two parameters for slidedoom function slidedoom(<other required params),slidespeed,fullscreendoom);

Future Updates: 1.Decreasing the size of the js file as less as possible.(Busy with some other works. Will be updating it once i have free time. :>3) Previous Update: Fixed the small bug in dynamic css created by Slidedoom library and updated read me file. Please read the Readme file if you are having any issues while integrating the library, Refer https://stackblitz.com/edit/angular-qoelu5 for Integrating Slidedoom with angular cli.

Latest version fix:

  1. Error handling for total no of slides not equal to backgrounds array and maxSlides variable value should be the maximum possible slides div element inside slidezimple css class div element.

Features:

  1. Its Small. 6kb Javascript and 2Kb CSS.
  2. No External Dependencies.
  3. Integrate Slides to Your app in seconds.
  4. Easy Integration.
  5. Cross Browser Support
  6. Responsive
  7. Mobile browsers Support and Tablets Too
  8. Set Background images for slide using any colors, local image url or remote image url. Its that easy. (In backgrounds array just set any array element value as object literal {name:"<REMOTE_URL or LOCAL_URL>"}. For background colors for slide, in background array just set string as "#789564 or rgb(7,7,7)")

Example:

var backgrounds = [ { name: "https://storage.googleapis.com/cdn.magloft.com/blog/2017/02/responsive-design-1280x640.jpg" },//Slide0 background { name: "https://www.w3schools.com/css/img_temp_band.jpg" },//Slide1 background "#121212",//Slide2 background "#888eee",//Slide3 background "#a77756",//Slide4 background "#444777"//Slide5 background ] For more info, refer Documentation or source code at Github https://github.com/irfanit93/slidedoom

Tip:

If you want some cool glassy effect for your slide add two css classes 'glassy' and 'afterglassy': Do it like below:

        &lt;div class="slides slide0"&gt;
            &lt;div class="glassy" style="opacity:0.7"&gt;&lt;/div&gt;//set opacity from 0 to 1 to increase or decrease the glassy effect.
            &lt;div class="afterglassy"&gt;//this class will make the glassy effect possible
                &lt;h3>Slide0&lt;/h3&gt;
                &lt;div class="aboutslidedoom"&gt;Slidedoom is a lightweight and ease of use carousel library.Slidedoom is a lightweight and ease of use
                    carousel library.Slidedoom is a lightweight and ease of use carousel library.
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;

Note: Apply a background image to the slide to see the effect visually.

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

For Angular 2+,

Refer the following sample code:

app.component.ts:

import { Component, OnInit } from '@angular/core';

import slidedoom from "slidedoom/Slidedoom.ang.min.js";

//Note that its Slidedoom.ang.min.js file for angular ( slidedoom.js file is only for regular website or webpage)

@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] })

export class AppComponent implements OnInit {

title = 'app';

backgrounds = [ "rgba(0,0,0,0.8)",//Slide0 background

"#687792",//Slide1 background

"#121212",//Slide2 background

"#888eee",//Slide3 background

"#a77756",//Slide4 background

"#444777"//Slide5 background ];

//array of slidecontainer Height in proportion to Browser Client Height

// first slidecontainer height is 1/1 =100% of Browser Client Height

aspectRatioHeight = [1];

//array of slidecontainer width in proportion to Browser Client Width // first slidecontainer width is 1/1= 100% of Browser Client Width aspectRatioWidth = [1];

//Till now we have specified what each slidecontainer width and height

//Now we are going to merge the slidecontainers and put it row wise // First row contains only 1 slidecontainer

slidesgroup = [1];

//used only for css //specify the maximum number of slides you are going to use in a single slidecontainer.

maxSlides = 6;

ngOnInit() {

//call slidedoom method as imported at the top with the following arguments slidedoom(this.backgrounds, this.aspectRatioHeight, this.aspectRatioWidth, this.slidesgroup, this.maxSlides);

}

}

app.component.css // This plays an important role in proper position of slides

================= add "./node_modules/slidedoom/Slidedoom.min.css" to styles array in angular.json file if you are using angular CLI. if you are using custom webpack configuration add the below import code to global style sheet @import url("../node_modules/slidedoom/Slidedoom.min.css");//the path to the node_modules will vary depend upon where you are placing the import css code of Slidedoom.min.css.

#app.component.html

(Same as in previous slidedoom version)

<div class="slides slide0">
 <div class="aboutslidedoom">Slidedoom is a lightweight and ease of use carousel library.Slidedoom is a lightweight and ease of use carousel library.Slidedoom
    is a lightweight and ease of use carousel library.
 
<div class="slides slide1">
  <h3>Slide1</h3>
  <div class="aboutslidedoom">Slidedoom is a lightweight and ease of use carousel library.Slidedoom is a lightweight and ease of use carousel library.Slidedoom
    is a lightweight and ease of use carousel library.
  </div>
</div>
<div class="slides slide2">
  <h3>Slide2</h3>
  <div class="aboutslidedoom">Slidedoom is a lightweight and ease of use carousel library.Slidedoom is a lightweight and ease of use carousel library.Slidedoom
    is a lightweight and ease of use carousel library.
  </div>
</div>
<div class="slides slide3">
  <h3>Slide3</h3>
  <div class="aboutslidedoom">Slidedoom is a lightweight and ease of use carousel library.Slidedoom is a lightweight and ease of use carousel library.Slidedoom
    is a lightweight and ease of use carousel library.
  </div>
</div>
<div class="slides slide4">
  <h3>Slide4</h3>
  <div class="aboutslidedoom">Slidedoom is a lightweight and ease of use carousel library.Slidedoom is a lightweight and ease of use carousel library.Slidedoom
    is a lightweight and ease of use carousel library.
  </div>
</div>

Have Fun with it ! :)