How to create slider using GSAP
HI friends,
I am struggling to create the slider used in https://www.twopointo.film/ this site but using gsap i have codepen and everything setup if anyone would help me out in this would be very great ✨
https://codepen.io/raj-shukla/pen/poKoNbY
2.0 Film
We’re the new kids on the block, here to shake things up. Never settling for average.
9 Replies
you say you are struggling, but you show us a clean template. What did you try, what does not work. I don't think anyone is just gonna try and build it from scratch for you
not to put too fine a point on it, but uh... that comment really makes this look like a homework assignment?
basically it is something like someone is trying to test your skills that is what my younger brother is trying to do
so i came here to get some tips or some examples which can help me out to complete this thing
i not want to be spoonfeed but somethings which might help to complete this i only have few hours left to prove @MarkBoots @jochemm
If you take a look at the css property scrollbehavior, you can use that to get the smooth scrolling https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
scroll-behavior - CSS: Cascading Style Sheets | MDN
The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs.
as for scrolling to things, I think you can use anchors (so an href="#secondvideo" to link to an element with id="secondvideo"
well
the site that is referenced there is using keen-slider
it was pretty easy to implement https://codesandbox.io/s/infinite-clickable-autoloop-slider-ipdk4q
whizzbbig
CodeSandbox
infinite-clickable-autoloop-slider - CodeSandbox
infinite-clickable-autoloop-slider by whizzbbig
with that
thanks