Jump to content
Search Community

volls

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by volls

  1. I have a simple svg with a rect box inside. I want to change the width of this rect in such a way that it changes from the centre of the rect, like a scaleX would work with transform-origin center. Currently, reducing the width contracts it from the right side. I need to change with width in order to maintain fidelity otherwise I'd use scale. Is there a way to get this to work? Would I have to play around with the x attribute? Thanks.

    See the Pen yLVaXpy?editors=1000 by ritwikvd (@ritwikvd) on CodePen

×
×
  • Create New...