Giter Club home page Giter Club logo

cnblog-mouse's Introduction

cnblog-mouse

博客园鼠标特效, 目前收录了12种特效

DEMO参考: https://www.cnblogs.com/xuange306/

部署说明

上传脚本

打开./dist文件夹,获取主题的 JS 脚本文件mouse.min.js。

进入『文件』界面,将该文件上传到自己的博客中。上传完成后,点击文件名便可在浏览器地址栏中获取上传文件的外链,类似如下所示:

https://blog-static.cnblogs.com/files/xuange306/mouse.min.js

然后使用<script>标签将外链包裹,生成一个网页脚本引用,类似如下所示:

<script src="https://blog-static.cnblogs.com/files/xuange306/mouse.min.js"></script>

使用脚本

进入『设置』界面,将上面生成的网页脚本引用复制到「页脚 HTML 代码」文本域中。

<script src="https://blog-static.cnblogs.com/files/xuange306/mouse.min.js"></script>
<script type="text/javascript">
    $.shuicheMouse({
        type:10, 
        color:"rgba(187,67,128,1)"
    })
</script>

参数说明

参数 类型 说明
type int 鼠标类型, 赋值 1 ~ 12 任意一个数字, 分别代表12种类型
color string/ false 特效颜色, 如果赋值 false (这里的 false 是 布尔类型), 则会随机一种颜色. string 支持类型(css颜色赋值类型都支持)
1. "#ffffff" 类型
2: rgb(255,255,255)
3: rgba(255,255,255, 0.8)

cnblog-mouse's People

Contributors

shuiche-it avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.