# vuepress-plugin-bubble

> 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的动漫类博客主题，简洁，漂亮，多色彩，多种自定义功能，提供文章海报分享，说说，相册，评论等特色功�?

Latest version **1.0.4** (published 2022-01-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install vuepress-plugin-bubble
pnpm add vuepress-plugin-bubble
yarn add vuepress-plugin-bubble
bun add vuepress-plugin-bubble
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-01-16 |
| First published | 2021-11-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | qsyyke |
| Maintainers | qsyyke |
| Keywords | vuepress-theme, vuepress-plugin, vuepress-plugin-bubble, vuepress-plugin-player, romantic bubble, vuepress, vuepress romantic |

## Links

- npm: https://www.npmjs.com/package/vuepress-plugin-bubble
- Repository: https://github.com/vuepress-aurora/vuepress-plugin-bubble
- Homepage: https://aurora.xcye.xyz/plugin/music-bubble
- Issues: https://github.com/vuepress-aurora/vuepress-plugin-music-bubble/issues
- npm.io page: https://npm.io/package/vuepress-plugin-bubble

## Recent versions

- 1.0.4 (latest) — 2022-01-16
- 1.0.4-beta.2 (next) — 2022-01-16
- 1.0.4-beta.1 — 2022-01-16
- 1.0.3 — 2021-12-22
- 1.0.3-beta.1 — 2021-12-22
- 1.0.2-beta.1 — 2021-11-27
- 1.0.2 — 2021-11-23
- 1.0.1 — 2021-11-22
- 1.0.0 — 2021-11-21

## README

# vuepress-plugin-bubble

::: tip

这是vuepress的一个浪漫气泡特效插件

:::

- 使用效果

![image-20211122002556797](https://ooszy.cco.vin/img/blog-note/image-20211122002556797.png?x-oss-process=style/pictureProcess1)





## 安装

```sh
npm i vuepress-plugin-bubble
```

```js
//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](https://ooszy.cco.vin/img/blog-note/image-20211122003330518.png?x-oss-process=style/pictureProcess1)



图中红框内的dom节点，便是该插件自动添加的，如果你确实配置了该插件，但是在首页中，并没有显示的话，那么请f12看一下你网站的css样式，并且传入正确，合适的`zIndex`值



::: tip

该插件所在节点的`z-index`是通过插件配置项中的`zIndex`进行配置的

:::

---
_Source: https://npm.io/package/vuepress-plugin-bubble · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
