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

vuepress-plugin-bubble

v1.0.4

Published

A vuepress-based animation blog theme, simple, beautiful, multi-color, multiple custom functions, providing article poster sharing, talk, photo album, comment and other features 一个基于vuepress的动漫类博客主题,简洁,漂亮,多色彩,多种自定义功能,提供文章海报分享,说说,相册,评论等特色功�?

Downloads

27

Readme

vuepress-plugin-bubble

::: tip

这是vuepress的一个浪漫气泡特效插件

:::

  • 使用效果

image-20211122002556797

安装

npm i vuepress-plugin-bubble
//docs/.vuepress/config.js

const { path } = require("@vuepress/utils");

module.exports = {
    //在这里配置插件
    plugins: [
        [
            'bubble',
            {
                //气泡数量 推荐0(不包括)到1之前的小数,
                bubbleNumber: 0.14,

                //气泡透明度 0到1之间的小数
                bubbleAlpha: 0.6,

                //透明度变化速度,越接近于0越好
                alphaChangeSpeed: 0.00001,

                //气泡大小,推荐0到1之间的值
                size: 0.4,

                //气泡大小变化速度 越小越好
                sizeChangeSpeed: 0.0002,

                //气泡上升速度
                riseSpeed: 0.4,

                //气泡颜色,白色rgb(255,255,255) 请传入255,255,255
                color: '255,255,255',

                //该气泡盒子的z-index值,请根据你自己主题,传入适当的值,否则可能不会显示
                zIndex: -2
            }
        ],
}

当你在config.js文件中,使用该插件后,该插件会自动在便会自动显示

image-20211122003330518

图中红框内的dom节点,便是该插件自动添加的,如果你确实配置了该插件,但是在首页中,并没有显示的话,那么请f12看一下你网站的css样式,并且传入正确,合适的zIndex

::: tip

该插件所在节点的z-index是通过插件配置项中的zIndex进行配置的

:::