You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
417 B
19 lines
417 B
|
|
|
|
$(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')
|
|
})
|
|
}
|
|
})
|