r/HTML • • 8d ago

Looking to slow this down.

http://www.animalhousepetcare.com/smgm/index.html#reviews

I'm looking to slow this down. To pause at each review longer. I've scoured thru the HTML, All the CSS files, and JS files. I wonder if any one can point me in the right direction. Above is the link to the section titled "What they Say" a review section. Can anyone point to the right CSS or JS file? Here are the JS and CSS files. The HTML section is <!-- Start-client-area --> The CSS files are:

And the JS files are:

Thanks so much.

2 Upvotes

6 comments sorted by

1

u/ParsonsHosting 5d ago

Here's my .02:

That kind of slider is almost always a script, not CSS, so the timing is set in JavaScript.

  1. Open the page, right-click the reviews section, and choose Inspect. Look at the class names on the wrapper, such as owl-carousel, slick, swiper or testimonial.
  2. Search your JS files for that name. Look for a setting called autoplayTimeout, autoplaySpeed, interval or delay. The number is in milliseconds, so 3000 is 3 seconds.
  3. Raise it, for example to 7000, save, and clear your cache before testing.
  4. If the script is loaded from a minified file (one ending in .min.js), look for the line that starts the slider in your own page or theme JS, since that's usually where the setting is passed in.
  5. If it still moves fast, the transition speed (often called smartSpeed or speed) may be separate from the pause time, so check both. Make a backup of the file before editing.

Have a great day, great week!

1

u/Caligator82 4d ago

Thank you thank you. I will give it a try and get back.

1

u/Caligator82 3d ago

I found this string in owl.carousel.min.js and changed 5e3 to 1e3 and 9e3 and it did not change the speed. No "000" in any .js file found.

1

u/EngYehiaMahmoud 3d ago

The numbers inside owl.carousel.min.js are only the library defaults (5000 ms is the default autoplay delay), so editing them there usually changes nothing. The real setting is in the code that starts the carousel, a call like $('.owl-carousel').owlCarousel({ ... }) in your own script (often main.js, custom.js, or an inline <script> near the bottom of the page).

Search all your files for "owlCarousel(" and look inside the options for:

  • autoplayTimeout: how long each slide stays, in ms (8000 = 8 seconds)
  • smartSpeed or autoplaySpeed: how fast the slide moves

If autoplayTimeout isn't there, add it, e.g. autoplayTimeout: 8000. Also do a hard refresh (Ctrl+F5) after saving, since the browser may be caching the old file.

1

u/Caligator82 1d ago

I looked inside the main.js and there was a speed control for the pogo-slider carousel (site opening script) but not the one I need. Maybe if there is no script in the main.is for the carousel I want then it defaults to original owl-carousel? Here is the link to the main.js.

http://animalhousepetcare.com/smgm/js/main.js

Could I add a script to the main? Here's the place and reference inline.

BTW, nothing in the inline footer.

1

u/Caligator82 20h ago

Correction, the speed adjustment is on the blog slider, which I did not include in my site...so not the one I need.