1. 程式人生 > >Rythm.js 使用教程詳解

Rythm.js 使用教程詳解

class logs 並且 strong pan 顏色 href -c col

轉載自 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 使用教程詳解