$(document).ready( () => { console.log('Load component - homeTemplate') const component = $('.component-homeTemplate') if(component.length) { const slider = component.find('.slider') const scroll = component.find('.scroll') slider.slick() scroll.on('click', () => { const body = $('html, body'); body.stop().animate({scrollTop: window.innerHeight}, 500, 'swing') }) } })