A marquee element K-On! style. Yes, marquee is still alive… or a zombie at this point.
- Include
keion-ticker.js
in <body> - Include
keion-ticker.css
in <head> - Use the API (below)
This code should be below .js include.
var kt = new KeionTicker({
el: document.getElementById('kt'),
separator: ' ― ',
speed: '30s', // CSS time notation
msgs: ['Message 1', 'Message 2'],
keion: 'mio', // available: azusa, mio, mugi, yui, random or custom image URL
});
kt.start(); // .pause() or .stop();
// advanced:
KeionTicker.ImgRoot = 'https://cdn.com/keion-ticker/' // change root of image src
Done!
Note: Every property except keion is required.
Kami-sama bless all Keions around the world. 🙏
- Remove optional rules from CSS