LJtofu
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by LJtofu
-
-
Hi all, been struggling with this for a long time now.
Is there a way to tween a draggable, more specifically a type:"scrollLeft" element's position by clicking a button?
Think of a draggable, scrolling left and right carousel - with a button.
When the button is clicked the draggable element slides to the right 300px.
I know there are methods to enable and disable the dragging, but I don't see a way to target the actual moving element. Even to manually go in and target the draggable item with a tween might work... but I can't seem to even find what moves!
Thanks for any help you can offer!
Tween a Draggable element
in GSAP
Posted
Ok, sorry!
I think I may have figured it out. I was trying to tween a property like 'x' and should have been looking at tweening 'scrollLeft'.
Hope this helps someone!