orzubalsky / creative-computing-2018

0 stars 1 forks source link

question about transform: scale x? #93

Open danidls99 opened 6 years ago

danidls99 commented 6 years ago

When I use the property, transform: scaleX, I noticed that the shape increases in length from the center of the shape. Is there a way to increase the length from just one side? Like the following gif? (not necessarily with the different colors)

rangecolors

thanks!

orzubalsky commented 6 years ago

You might want to try applying the transform-origin CSS property. It changes the anchor point for the element. In your case it can be left center.