<!--https:
<script src="https://unpkg.com/scrollbooster@3/dist/scrollbooster.min.js"
defer>
</script>
<script>
$(function() {
var blockScrollId = '#recxxxxxxxxx';
var blockArrowsId = '#recxxxxxxxxx';
var shiftSize;
$(window).on('load resize',
function() {
if (window.matchMedia('(max-width: 480px)').matches) {
shiftSize = '320px';
} else if (window.matchMedia('(max-width: 640px)').matches) {
shiftSize = '320px ';
} else if (window.matchMedia('(max-width: 960px)').matches) {
shiftSize = '320px';
} else if (window.matchMedia('(max-width: 1200px)').matches) {
shiftSize = '320px ';
} else {
shiftSize = '320px';
}
});
$(blockScrollId + ' .t396__artboard').addClass('scrollbooster-viewport').wrapInner('<div class="scrollbooster-content"></div>');
$(blockScrollId + ' .t396').css('overflow', 'hidden');
new ScrollBooster({
viewport: $(blockScrollId + ' .scrollbooster-viewport')[0],
content: $(blockScrollId + ' .scrollbooster-content')[0],
scrollMode: 'native',
pointerMode: 'mouse',
bounce: false,
onPointerDown: function() {
$(blockScrollId + ' *:focus').blur()
}
});
$(blockArrowsId + ' .arrow-left').on('click',
function(e) {
e.preventDefault();
$(blockScrollId + ' .t396__artboard').animate({
scrollLeft: '-=' + shiftSize
},
300);
});
$(blockArrowsId + ' .arrow-right').on('click',
function(e) {
e.preventDefault();
$(blockScrollId + ' .t396__artboard').animate({
scrollLeft: '+=' + shiftSize
},
300);
});
});
</script>
<style>
.scrollbooster-viewport { cursor: -webkit-grab; cursor: grab; padding-bottom:
30px; margin-bottom: -30px; } .scrollbooster-viewport:active { cursor:
-webkit-grabbing; cursor: grabbing; } .scrollbooster-content { position:
absolute; width: 100%; height: 100%; } .arrow-left, .arrow-right { cursor:
pointer; }
</style>