Save
This commit is contained in:
16
wp-content/themes/brpp-prawo-podatki/js/custom.js
Normal file
16
wp-content/themes/brpp-prawo-podatki/js/custom.js
Normal file
@@ -0,0 +1,16 @@
|
||||
jQuery(function ($) {
|
||||
gsap.registerPlugin(ScrollTrigger)
|
||||
|
||||
gsap.to('.box-1 .col-2 img', {
|
||||
scrollTrigger: {
|
||||
trigger: '.box-1 .col-2',
|
||||
start: 'top top',
|
||||
endTrigger: '.box-2 .row',
|
||||
end: 'bottom bottom',
|
||||
pin: true,
|
||||
scrub: true,
|
||||
anticipatePin: 1,
|
||||
markers: true,
|
||||
},
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user