Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Transform Group of Objects Using "g"
How to transform a group of objects using the "g" element?
✍: FYIcenter.com
The "g" element is a container that allows you to group
multiple graphical objects together as a single object.
This allows you to transform the group as a whole,
instead individual objects.
Here is an HTML document, transformation-group.html, that has a SVG image with transformation on a group of graphical objects:
<html><body>
<svg xmlns="http://www.w3.org/2000/svg"
style="background-color: #dddddd"
width="350" height="200" viewBox="-50 -50 350 100">
<line x1="-50" y1="0" x2="50" y2="0" stroke="black" stroke-dasharray="4"/>
<line x1="0" y1="-50" x2="0" y2="50" stroke="black" stroke-dasharray="4"/>
<g transform="rotate(-10)">
<text x="0" y="0" font-family="Arial" font-size="36" fill="grey"
transform="skewX(-75) scale(1,0.2)">FYIcenter.com</text>
<text x="0" y="0" font-family="Arial" font-size="36">FYIcenter.com</text>
</g>
</svg>
</body></html>
When you open the above HTML file, transformation-group.html, in a Web browser, you see 2 text strings rotated by -10 degree:
⇒ List of Transformation Functions
⇐ "transform" Attribute for Transformations
2023-08-03, 928🔥, 0💬
Popular Posts:
Where to find tutorials on LibGen (Library Genesis)? Here is a large collection of tutorials to answ...
How to install Mozilla Firefox 2.0 add-on: FireFTP? FireFTP is a Mozilla Firefox 2 add-on that provi...
What are Control Connection and Data Connection used in FTP protocol? FTP protocol uses two independ...
How to use MomoCast with Safari on iPhone and iPad to cast Website and video to Chromecast on TV? If...
Where to find answers to frequently asked questions on Adobe FrameMaker? I want to know how to know ...