mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
begin to configure site - need to get rid of extra stuff still...
This commit is contained in:
10
static/js/word-slider.js
Normal file
10
static/js/word-slider.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const words = document.querySelectorAll('.word-slider div');
|
||||
let index = 0;
|
||||
|
||||
setInterval(() => {
|
||||
words[index].classList.remove('visible');
|
||||
words[index].classList.add('invisible');
|
||||
index = (index + 1) % words.length;
|
||||
words[index].classList.remove('invisible');
|
||||
words[index].classList.add('visible');
|
||||
}, 2000); // change every 2 seconds
|
||||
Reference in New Issue
Block a user