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

vue-parallax-banner

v0.0.67

Published

![](https://img.shields.io/badge/version-v0.067-9cf.svg) ![](https://github.com/genjiXYZ/vue-parallax-banner/workflows/npm%20publish%20by%20action/badge.svg)

Downloads

7

Readme

vue-parallax-banner

npm

看到B站 banner图 秋 感觉挺好看的! 之前做过滚动的paralax所以自己做一下试试! (趁着有图,赶紧弄个.有图很关键.以前没有图时候自己ps一点抠累死了.别跟我说ai抠图,得看情况),

火狐浏览器有点bug 卡顿 应该是没写 -moz 或者 就不好说了 修复中 ...

demo

demo 图片版权归bilibili所有,此demo 仅为个人学习测试使用 如有侵权请联系 [email protected] 删除.

gihub page ( 科学): https://genjixyz.github.io/vue-parallax-banner/

coding page : http://dflcva.coding-pages.com/

clone :

git clone https://github.com/genjiXYZ/vue-parallax-banner.git
npm i 
npm run serve

info

和官方 banner 区别

| 官方 | this | | ------------------------------ | ---------------------------------------------------- | | 设置了 resize (){ dosomething} | 没弄 | | 计时器女孩眨眼 + 下一帧 | 鼠标滑出 女孩 眨眼 闭眼 睁眼 (根据滑出方向) + 下一帧 |

npm install

how to use it

  1. npm install
   npm i vue-parallax-banner
  1. import

    全局 or 局部

// vue   main.js    global import
import parallaxBanner from "vue-parallax-banner";
Vue.use(parallaxBanner);
//local components import
import parallaxBanner from "vue-parallax-banner";
export default {
  components: {
    // HelloWorld,
    parallaxBanner,
  },
};
  1. Config
<parallaxBanner :ParallaxConfig="localConfig" />
export default {
  components: {
    parallaxBanner,
  },
  data() {
    return {
      localConfig: {
        image: [],      // 图片链接  有顺序的  第一个 z-index = 1  ,第二个 z-index = 2  
        height: `250px`, //  图片宽
        width: `3000px`, // 图片高
        bezier: [0, 0, 1, 1],   //当鼠标离开后,还原到默认setting动画的 贝塞尔曲线
        translateOffset: [0, 100, 120, 150, 250, 300], //图片translate 的最大 px,  
        blurOffset: [7, 0, 5, 5, -3, -6], // 图片的初始blur值(有方向) ,正负表示 鼠标左右运动 
        pic: "",//option  鼠标离开后女孩的动画图片链接 
      },
    };
  },
};