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

pl-slider

v0.1.7

Published

[![PL|Plochie](https://raw.githubusercontent.com/Plochie/pl-slider/master/src/assets/logo.png)](https://github.com/Plochie) <br/> This slider is created using Angular 4. It is completely written in typescript and nowhere DOM is used to achieve effects. Al

Downloads

2

Readme

Angular 2+ Slider

PL|Plochie This slider is created using Angular 4. It is completely written in typescript and nowhere DOM is used to achieve effects. All effects are based on CSS transition and style binding with Angular components.

Example

slider1 Above example can be achieved using following code

<pl-slider [data]="itemData"
            height="400px"
            items=4>
</pl-slider>

slider2 Above example can be achieved using following code

<pl-slider [data]="itemData"
            height="500px"
            items=1
            controlPosition="in">
</pl-slider>

Installation

First install package via npm

npm install pl-slider

After successfull installation import in app.module.ts

import { PLSlider } from 'pl-slider';

@NgModule({
  declarations: [
    ...,
    PLSlider
  ],
  ...
})

Now, use <pl-slider></pl-slider> in any component.

Usage

  1. This slider requires JSON array data as input. Create JSON array in respective components (.ts) file.

All the fields in JSON are not necessary, only add those required.

itemData = [
    { image: '/path/slide1.jpg', title: 'Title 1'}, 
    { image: '/path/slide2.jpg', info: 'Some Information Without Title'},
    { image: '/path/slide3.jpg', title: 'Title 3', info: 'Information With Title'},
    { image: '/path/slide4.jpg', title: 'Title 4'},
    { image: '/path/slide5.jpg', title: 'Title 5'},
    { image: '/path/slide6.jpg', title: 'Title 6'},
    { image: '/path/slide7.jpg', title: 'Title 7'},
    { image: '/path/slide8.jpg', title: 'Title 8'}
]
  1. Bind that array to data property of slider.
<pl-slider [data]="itemData"></pl-slider>
This will create basic slider with predefined values. (for default values refer Properties table)
  1. For more customisations use following properties as needed.
<pl-slider [data]="itemData"
            height="400px"
            items=5
            margin=0.1
            slidesToMove=1
            extraInfo=true
            autoSlide=false
            pauseOnHover=false
            slideDuration=1500
            controlPosition="out">
</pl-slider>

All Properties

|Property|Discription|Default Value| |-|-|-| |height|Height of slider (in any unit)| "400px" | |items|items to display in one frame| 5 | |margin|margin between each item| 0.1 | |slidesToMove|Number of slides to move for next or prev event.| 1 | |extraInfo|Addition information after hover on element.| false | |autoSlide|Slider will auto slide with default interval of 1500ms.| false | |pauseOnHover|Slider will pause when mouse hover over slider container and resume when mouse leaves contaienr.|false | |slideDuration|Interval for autoSlide.|1500| |controlPosition| 'in' or 'out', Position of controls inside or outside of wrapper|out|

For any bug or issue

Please raise issue in case of any bug. For detailed disccusion drop me email at [email protected]

License

MIT

Free Software, Hell Yeah!