码迷,mamicode.com
首页 > Web开发 > 详细

Rythm.js 使用教程详解

时间:2017-10-17 17:27:51      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:ref   音乐   targe   sdn   str   blog   article   section   content   

转载自 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上下载下来的案例需要在服务区环境下运行

Rythm.js 使用教程详解

标签:ref   音乐   targe   sdn   str   blog   article   section   content   

原文地址:http://www.cnblogs.com/jocelyn-liu/p/7682550.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!