Rythm.js 使用教程详解

转载自 http://blog.csdn.net/qq_26536483/article/details/78261515

简介

rythm.js是一款让页面元素跳动起来的插件,并且带音乐,共7种用法,包括脉冲、跳跃、摇动、扭动、淡入淡出、变换颜色等特效

基本用法

1 <div class="rythm pulse"></div> 
2 
3 var rythm = new Rythm(); 
4 rythm.setMusic("sample.mp3"); 
5 rythm.start();

 

案例地址:http://okazari.github.io/Rythm.js/ 
github地址:https://github.com/Okazari/Rythm.js

需要注意的是从GitHub上下载下来的案例需要在服务区环境下运行

posted @ 2017-10-17 16:42  六羽  阅读(367)  评论(0编辑  收藏  举报