Coolseb
Coolseb

Reputation: 33

Is it possible to apply transform to svg element?

I'm learning how to use SVG.js and I'm having troubles applying transform (like skew, rotate, etc...) to svg (or g for that matter) tags.

The w3 says svg should support animateTransform : https://www.w3.org/TR/SVG11/struct.html#SVGElement

A simplified example can be found here https://jsfiddle.net/kuh2agfy/3/

svg.animate(1000,'', 0).skew(10,10);

Upvotes: 0

Views: 879

Answers (1)

Fuzzyma
Fuzzyma

Reputation: 8474

Your example seems to work just fine.

Beside that, it is NOT possible to transform the root-svg with the transform attribute.

It IS possible to use css transform for that matter.

Upvotes: 1

Related Questions