Scaling the Whole Element as an Alternative Responsive Motion Path Strategy

Michelle Barker has flagged an alternative to the responsive motion path technique Jhey recently wrote about on CSS-Tricks: simply applying transform: scale() to the entire element.

The two approaches differ in what actually ends up being resized. The scale-based method grows or shrinks both the motion path and the element traveling along it at the same time, whereas Jhey's approach keeps the element at a fixed size and only makes the path responsive.

The scale calculation is a trick CSS-Tricks has covered in the past as well, in its piece on scaled proportional blocks with CSS and JavaScript.

Barker's note is a follow-up to Jhey's post on creating a responsive CSS motion path.