素材牛VIP会员

点击产生波浪效果的插件waves.js

 所属分类:网页特效-鼠标/悬停/点击

 浏览:1231次  评论:28次  更新时间:2019-08-15
牛币素材VIP可免积分下载
点击产生波浪效果的插件waves.js兼容IE10
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!   充值积分   充值会员   更多说明»
素材描述:鼠标点击位置生成波浪效果,可以让任意元素生点击反馈动画。
 标签:波浪鼠标

详细介绍

更新时间:2019-08-15 11:41:07

waves.js使用方法

需要调用的两个文件waves.min.css,waves.min.js

<link rel="stylesheet" type="text/css" href="css/waves.min.css">
<script type="text/javascript" src="js/waves.min.js"></script>

给按钮添加点击动画

<style>
    #colored-button .btn { color: #fff; }
    #colored-button a, 
    #colored-button a:hover { background: #01BCFF; }
    #colored-button button,
    #colored-button button:hover { background: #1bb556; }
    #colored-button input,
    #colored-button input:hover { background: #ff4f0f; }
</style>
<p class="text-center">
    <a class="flat-buttons">Button A</a>
    <button class="flat-buttons">Button B</button>
    <input class="flat-buttons" type="submit" value="Button C">
</p>
<p id="colored-button" class="text-center">
    <a class="btn float-buttons">Button A</a>
    <button class="btn float-button-light">Button B</button>
    <input class="btn float-buttons" type="submit" value="Button C">
</p>
<script type="text/javascript">
    Waves.attach('.flat-buttons', ['waves-button']);
    Waves.attach('.float-buttons', ['waves-button', 'waves-float']);
    Waves.attach('.float-button-light', ['waves-button', 'waves-float', 'waves-light']);
</script>

给Icons添加点击动画

<style>
    #colored-icon i { color: #fff; }
    #colored-icon i:nth-child(1) { background: #ff6400; }
    #colored-icon i:nth-child(2) { background: #d54f38; }
    #colored-icon i:nth-child(3) { background: #eb4d7e; }
    #colored-icon i:nth-child(4) { background: #d138c8; }
    #colored-icon i:nth-child(5) { background: #bd73ff; }
    #colored-icon i:nth-child(6) { background: #0074d6; }
</style>
<p class="text-center">
    <i class="fa fa-bars flat-icon"></i>
    <i class="fa fa-bookmark flat-icon"></i>
    <i class="fa fa-calendar flat-icon"></i>
    <i class="fa fa-envelope flat-icon"></i>
    <i class="fa fa-exclamation flat-icon"></i>
    <i class="fa fa-folder flat-icon"></i>
</p>
<p id="colored-icon" class="text-center">
    <i class="fa fa-bars float-icon"></i>
    <i class="fa fa-bookmark float-icon-light"></i>
    <i class="fa fa-calendar float-icon"></i>
    <i class="fa fa-envelope float-icon-light"></i>
    <i class="fa fa-exclamation float-icon"></i>
    <i class="fa fa-folder float-icon-light"></i>
</p>
<script type="text/javascript">
    Waves.attach('.flat-icon', ['waves-circle']);
    Waves.attach('.float-icon', ['waves-circle', 'waves-float']);
    Waves.attach('.float-icon-light', ['waves-circle', 'waves-float', 'waves-light']);
</script>

给div或图片添加点击动画

<div class="boxes flat-box">Flat Box</div>
<div class="boxes float-box">Float Box</div>
<div class="clear"></div>
<p class="text-center">
    <img class="waves-image" src="imgae/tp.jpg">
</p>
<script type="text/javascript">
    Waves.attach('.flat-box', ['waves-block']);
    Waves.attach('.float-box', ['waves-block', 'waves-float']);
    Waves.attach('.waves-image');
</script>

文件目录结构

  • css
    • ┝ prims.css
    • ┝ snarl.min.css
    • ┝ style.css
    • ┝ waves.min.css
  • ┝ index.html
  • js
    • ┝ jquery.js
    • ┝ prims.js
    • ┝ snarl.min.js
    • ┝ waves.min.js

相关素材 - 鼠标/悬停/点击

讨论这个素材(28)回答他人问题或分享使用心得会奖励牛币

零***落  
2019年08月16日

效果非常好,很不错的哈。。。

回复
零***落  
2019年08月17日

效果非常好,很不错的哈~~~

回复
零***落  
2019年08月19日

效果非常好,很不错的哈##

回复
js***ss  
2019年08月20日

效果非常好,很不错的哈~~~

回复
零***落  
2019年08月21日

效果非常好,很不错的哈@@

回复
零***落  
2019年08月22日

效果非常好,很不错的哈哈!!!

回复
零***落  
2019年08月23日

效果非常好,很不错的哈哈!!!

回复
零***落  
2019年08月24日

效果非常好,很不错的哈哈~~

回复
qq***91  
2019年08月24日

效果非常好,很不错的哈哈~~

回复
零***落  
2019年08月26日

效果非常好,很不错的哈哈@@

回复
零***落  
2019年08月27日

效果非常好,很不错的哈哈...

回复
零***落  
2019年08月28日

效果非常好,很不错的哈哈.哈

回复
零***落  
2019年08月28日

效果非常好,很不错的哈哈.哈...

回复
qq***91  
2019年08月28日

效果非常好,很不错的哈哈.哈...

回复
qq***91  
2019年08月29日

效果非常好,很不错

回复
零***落  
2019年08月29日

效果非常好,很不错的哈哈哈..

回复
a5***09  
2019年08月30日

效果非常好,很不错的哈##

回复
零***落  
2019年09月04日

效果非常好,很不错的哈哈.哈!!!!

回复
小***生  
2019年09月05日

效果非常好,很不错的哈哈

回复
零***落  
2019年09月15日

很不错的波浪效果的插件

回复
零***落  
2019年09月17日

波浪效果很给力,学习一下

回复
零***落  
2019年09月19日

好看,波浪效果,简洁

回复
gh***ui  
2019年09月22日

效果非常好,很不错的哈哈...

回复
 文明上网,理性发言!   😉 阿里云幸运券,戳我领取
我的牛币余额:0
所需牛币:5 开始下载

牛币获取:签到、评论、充值    » 在线充值(10牛币=1元)