How to make bending blocks when you hover, like here

It seems at greensock developed. Could you throw some sort of link to an example
July 8th 19 at 15:56
3 answers
July 8th 19 at 15:58
They have it made on canvas. 3 background for the unit just a background made with a canvas that responds to mouse movement. There is certainly a way to do this in SVG, but there can be problems with the adaptability and maintaining adequate aspect ratio (even with special attributes viewBox and preserveAspectRatio can be torment).
I have a few demos with similar effect (in SVG): - here is a simple drag effect, which just changes the one coordinate of the arch. - here a more advanced example where I already yuzayu Cubic Bezier Curve, not the arch or quadratic Beziers.
My options for rAF bikes gspam this whole thing must be obviously easier.
July 8th 19 at 16:00
: just the author changed the question, originally asked for a link to the open source greensock - Henderson_Beat commented on July 8th 19 at 16:03
July 8th 19 at 16:02

Find more questions by tags JavaScriptHTMLCSSjQuery