+44 (0)1403 339200

Monday - Friday 09:00 - 17:00

For more information, please see our FAQs or contact us.

fetch('testimonial-new.html') .then(response => response.text()) .then(html => { document.getElementById('testimonials-container').innerHTML = html; const testimonials = document.querySelectorAll('#testimonials-container .testimonial'); let current = 0; // Hide all except the first testimonials.forEach((el, idx) => { el.style.display = idx === 0 ? 'block' : 'none'; }); function getDelayForTestimonial(index) { // Get the quote text length const quote = testimonials[index].querySelector('blockquote'); const length = quote ? quote.textContent.length : 100; // Base delay: 2.5 seconds + 40ms per character (tweak as needed) return Math.max(2500, length * 40); } function showNextTestimonial() { testimonials[current].style.display = 'none'; current = (current + 1) % testimonials.length; testimonials[current].style.display = 'block'; // Calculate delay for the next testimonial const delay = getDelayForTestimonial(current); setTimeout(showNextTestimonial, delay); } // Start the cycle setTimeout(showNextTestimonial, getDelayForTestimonial(0)); });