Notch Interactive
Members-
Posts
21 -
Joined
-
Last visited
Notch Interactive's Achievements
Recent Badges
2
Reputation
-
Make draggable Slider also scrollable
Notch Interactive replied to Notch Interactive's topic in GSAP
@PointC thanks man, it works now! so cool. Just one question more: Now when I scroll its jumping more than one slide at a time, depending how "much" I scroll my wheel. That behavior is also in your example. Is there a way to tell the slider to stick only to one slide at a time for each scroll? https://antoni.de/ has this. I wanna achieve something in the direction like they have. Without the mask effect. -
Make draggable Slider also scrollable
Notch Interactive replied to Notch Interactive's topic in GSAP
@PointC thank you very much for your demo. What exactly is this line here doing? tl.to("#targets", 0.4, { x: -120 * activeSlide }); Especially the -120. yre this px? And what if I use vw and vh for my widths and heights? I dont have the scale effect anymore in my slider. So actually the scroll wheel should slide to the next one, but when I just take this line above its still not working. -
Make draggable Slider also scrollable
Notch Interactive replied to Notch Interactive's topic in GSAP
@PointC I have the code I used from a tutorial, so I don't really know which parts you exactly mean. Could you maybe point out more specific which code you mean? Thank you very much for your help. Its very appreciated! -
Make draggable Slider also scrollable
Notch Interactive replied to Notch Interactive's topic in GSAP
@PointC Would you know where do build in this code in my example here? https://codepen.io/cedi44/pen/GebNVz -
Make draggable Slider also scrollable
Notch Interactive replied to Notch Interactive's topic in GSAP
@PointC yes, that the slides also respond to the mouse-wheel. Okay cool, but where exactly do you place this code? -
Notch Interactive started following Make draggable Slider also scrollable
-
Hi guys I saw this demo in the forum lately: https://codepen.io/PointC/pen/YRzRyM I have a draggable horizontal slider in my current project and I would like to make it also scrollable with snapping. Snapping already works. But I have no idea how to make it also scrollable because I am a newbie in JS. Thank you for any help! Best, Cédric