@kemet/kemet-rotator
v1.0.0
Published
A component that rotates through an array of text.
Downloads
2
Readme
<kemet-rotator>
Installation
npm i @kemet/kemet-rotator
Usage
import '@kemet/kemet-rotator/kemet-rotator.js';
<kemet-rotator
rotation-speed="5000"
transition-speed="2s">
</kemet-rotator>
const rotator = document.querySelector('kemet-rotator');
rotator.messages = [
'Hello! This is a rotator.',
'Pass it an array and watch it rotator through the text.',
'You can set the rotation speed and transition speed!',
'You can pass it html like <strong><a href="http://kemet.online/rotator">this link</a></strong>!'
];
Click here for more docs.