How to stretch an element with mouse?

hello. how can make a element to stretch with mouse like a cable and connect to other element here is page and example in this page please helpcable conection.zip (800.0 KB)

Hype has got a public Javascript-API to control quite a subset of its properties for animations and some hypespecific surroundings …

scaleX is definitely part of it, the dragging part too, just the change for the transformation-origin (you#ll need it) has to be scripted along …

Nice example, but really scriptintensed … good luck :slight_smile:

1 Like

For this specific case, you might be able to get away with building timelines that have animations to expand the width of the connectors and move the ball elements over. The ball element itself could have an On Drag action set to Control Timeline with this specific timeline.

1 Like