I am happy to share my decision. If you see a place for improvement, feel free to. Hope this helps someone out there.
<script> var impress = impress(); impress.init(); document.addEventListener('impress:stepenter', function(e){ if (typeof timing !== 'undefined') clearInterval(timing); var duration = (e.target.getAttribute('data-transition-duration') ? e.target.getAttribute('data-transition-duration') : 2000); </script>
source share