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 🙏

© 2026 – Pkg Stats / Ryan Hefner

custom-banner-vue

v0.1.7

Published

Easy customizable banner for Vue

Readme

custom-banner-vue

Features:

  • Optional orientation

  • Optional size

  • Customizable Elements order

  • Transition's configuration of every element.

  • Time settings.

  • Optional images or texts

  • Orientation

    • Two options for orientation: horizontal or vertical
    • Horizontal is the option by default.
  • Size

    • Two options for size: min or medium
    • Medium is the option by default.
  • Responsive

    • Two options for responsive: false or true
    • True is the option by default.
    • Only available for horizontal orientation
  • Screen

    • Two options for screen: default or full
    • Full is the option by default.
    • Only available for horizontal orientation
    • The screen property with full value set responsive to true value automatically.
  • Order

    • The order or sequence allows handling which element will perform animations and possiblity of add new animations.
  • Transitions

    • Six differents transitions:

      • width,height,left,top,rotate,opacity.
    • Opacity provide perform together anyone of the others at time.

  • Time

    • Configuration of time between one animation and the next.
  • Images/Texts

    • Possibility of texts improving performance.

Install

npm install custom-banner-vue

Import globally

import CustomBannerVue from 'custom-banner-vue'

Vue.use(CustomBannerVue)

Import locally

import { CustomBannerVue } from 'custom-banner-vue'
  • Configuration

Template

<template>
    <div>
	<custom-banner-vue :options="options"></custom-banner-vue>
    </div>
</template>

Basic

...
data() {
  return {
    options:{
      orientation:"horizontal",
      time:5,
      images:[
      //folder public
        [
          "img/image1.jpg",
          "img/image2.jpg",
          "img/image3.jpg"
        ],
      //folder assets  
        [
          require("@/assets/img/image1.jpg"),
          require("@/assets/img/image2.jpg"),
          require("@/assets/img/image3.png")
        ],
      //absolute path
        [
          "http://www.server/image1.jpg",
          "http://www.server/image2.jpg",
          "http://www.server/image3.jpg"
        ]
      ],
    }	
  }
},
....

Basic (texts)

...
options:{
  orientation:"vertical",
  texts:[
    [
      "Regístrese ahora y obtendrá",
      "un cupón de descuento de 5€",
      "en su próxima compra"
    ],
    [
      "Si desea más información",
      "póngase en contacto con uno",
      "de nuestro asesores llamando al 606060606"
    ],
    [
      "Welcome to mydomain.com",
      "browse the different sections"
    ]
  ],
  effects:{
    1:{
      modeText:true	
    },
    2:{
      modeText:true
    },
    3:{
      modeText:true
    }
  }
}
...

Order && Effects

...
options:{
  orientation:"vertical",
  size:"min",
    images:[
      [
        "img/image1.jpg",
        "img/image2.jpg",
        "img/image3.jpg"
      ],
      [
        "img/image1.png",
        "img/image2.png",
        "img/image3.png"
      ],
      [
        "http://www.server/image1.jpg",
        "http://www.server/image2.jpg",
        "http://www.server/image3.jpg"
      ]
  ],
  effects:{
    1:{
      opacity:true,
      width:true,
    },
    2:{
      top:true
    },
    3:{
      rotate:true
    }
  },
  order:{
    0:[1,3],
    1:[2],
    2:[3],
    3:[1,2,3]
    ...
    ...
  }
},
...

Images and texts

options:{
  orientation:"vertical",
  size:"min",
  responsive:true,
  screen:'full',
  images:[
    [    
      "img/image1.jpg",
      "img/image2.jpg",
      "img/image3.jpg"
    ],
    [
      "img/image1.png",
      "img/image2.png",
      "img/image3.png"
    ],
    [
      "http://www.server/image1.jpg",
      "http://www.server/image2.jpg",
      "http://www.server/image3.jpg"
    ]
  ],
  texts:[
    [
      "Welcome to mydomain.com",
      "browse the different sections"     
    ],
    [],
    []    
  ],
  effects:{
    1:{
      opacity:true,
      width:true,
      modeText:true
    },
    2:{
      left:true	    
    },
    3:{
      opacity:true
    }
  },        
},
...

Other options

  • widthHTML
    • The widthHTML property allows assign attribute width of image, can be useful some times for to reduce the image or keep dimensions to width effect.
...
effects:{
  1:{
    opacity:true,
    width:true,
    widthHTML:120,
  },
  2:{
    left:true
    modeText:true,
  },
  3:{
    opacity:true
  }
},     
...
  • fontSizeStyle
    • The fontSizeStyle property allows assign one different size of font for every element. The text's option set the size of first text of the list by default, so handling fontSizeStyle can be really useful.
...
effects:{
  1:{
    opacity:true,
    width:true,
  },
  2:{
    left:true
    modeText:true,
    fontSizeStyle:"20px",
  },
  3:{
    opacity:true
  }
}
...

License

custom-banner-vue is released under MIT license