.top-bar-container{ width:100%; display:flex; justify-content:center; align-items:center; padding:10px 0; overflow:hidden; } .custom-text-rotator-wrapper{ font-family:sans-serif; font-size:15px; font-weight:700; color:#fff; padding:5px 15px; } .rotating-text{ position:relative; height:1em; text-align:center; } .rotating-text span{ position:absolute; top:0; left:50%; transform:translateX(-50%) translateY(10px); opacity:0; transition:opacity .35s ease, transform .35s ease; white-space:nowrap; } .rotating-text span.visible{ opacity:1; transform:translateX(-50%) translateY(0); }document.addEventListener('DOMContentLoaded', function () { const rt = document.querySelector('.rotating-text'); if (!rt) return;// Build spans from data-phrases const raw = (rt.getAttribute('data-phrases') || '').trim(); const phrases = raw.split('|').map(s => s.trim()).filter(Boolean); if (phrases.length === 0) return;rt.innerHTML = phrases.map(t => `${t}`).join(''); const items = [...rt.querySelectorAll('span')];// Set container height to tallest phrase const tallest = Math.max(...items.map(el => el.offsetHeight)); rt.style.height = tallest + 'px';let i = 0; items[0].classList.add('visible');const INTERVAL = 1000; // 1s per phrase setInterval(() => { items[i].classList.remove('visible'); i = (i + 1) % items.length; items[i].classList.add('visible'); }, INTERVAL); });
0
Your Cart
empty cart Your cart is currently empty! Return to Shop
Remove All Items
0
Your Cart
empty cart Your cart is currently empty! Return to Shop
Remove All Items
No products were found matching your selection.