• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

inferusvv/MeeInk: Material Design click effect

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

inferusvv/MeeInk

开源软件地址(OpenSource Url):

https://github.com/inferusvv/MeeInk

开源编程语言(OpenSource Language):

JavaScript 40.9%

开源软件介绍(OpenSource Introduction):

MeeInk v1.0.0

MeeInk is a jQuery plugin which allows you to easily add material design ink effect to elements when you click them.

Plugin is based on CSS animation what give you good performance including mobile devices.

Demo

Check out demo page here.

Setup

Install with Bower

bower install MeeInk --save

Install with NPM

npm install meeink --save

Include scripts

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="jquery.mee-ink.js"></script>

Include styles

<link rel="stylesheet" href="mee-ink.css">

Initialize plugin

$(document).ready(function() {
    $('.btn').meeInk({
        // options
    });
});

Documentation

Plugin have several number of options which allows you to customize it as you want.

animationClass

animationClass: 'mee-ink-animated mee-ink-animation'

Class which triggers to start CSS animation.

elementClass

elementClass: 'mee-ink-el'

Class that is added to initialized element.

inkClass

inkClass: 'mee-ink'

Class for ink inside element with styles.

overflowHiddenClass

overflowHiddenClass: 'mee-ink-overflow-hidden'

Class will be added if your element don't have overflow: hidden.

positionRelativeClass

positionRelativeClass: 'mee-ink-pos-relative'

Class will be added if your element have position: static, because ink inside element positioned absolutely relative to element.

Issues

Found an issue? You are welcome here.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap