//optional, stop autoplay on hover $('[data-uk-tab], .uk-switcher').on('mouseenter', function () { clearInterval(interval); }); });