Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

README.md

Kirinlyric

logo

This is jQuery plugin that sync automatically .lrc lyrics with HTML5 audio tag.

USAGE

HTML side

<link href="kirinlyric.css" rel="stylesheet" type="text/css">
...
<audio id="myAudio" controls src="xxx.ogg"&gt;&lt;/audio>
<div id="lyrics"&gt;&lt;/div>

JavaScript side

// require loading jQuery above
var lrcText = [
  '[00:01.22]Text 1',
  '[00:03.42]Text 2',
  '[00:06.88]Text 3'
].join('\r\n');
$('#myAudio').kirinlyric({
  target : '#lyrics',
  lrc : lrcText
});

DEMO

About

This is jQuery plugin that sync automatically .lrc lyrics with audio tag

Resources

Releases

No releases published
You can’t perform that action at this time.