Hi guys, How can I make the rotation speed based on drag force/speed ?
Can’t imagine better solution, rather then creating a function that would check scroll position every n milliseconds (and/or listen to scroll event) and calculate delta. Then, any another element could be animated based on this number.
Hi! You can use velocity.x and/or velocity.y of the onDrag event to get a number that you can apply to rotation. E.g.:
layerA = new LayerlayerA.draggable = truelayerA.onDrag ->[indent] print Math.abs(event.velocity.x)