Ich habe ein Logo in SVG, das ich animieren möchte. Es gibt einen mittleren Teil, der fixiert bleibt, aber die Seitenstriche werden sich tatsächlich ausdehnen und das ganze Ding umgehen. Es gibt und exemple von dem, was ich will eigentlich tun:SVG> Animierte Breite von Mitte
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
\t <style type="text/css">
\t \t .st0{fill:#656E76;}
\t </style>
\t <g>
\t \t <rect id="rect1" class="st0" cx="50" cy="50" x="0" y="40.5" width="158.9" height="6.3"/>
\t \t <rect id="rect2" class="st0" cx="0" cy="100" x="0" y="6.4" width="6.3" height="34.4"/>
\t \t <rect id="rect3" class="st0" cx="0" cy="100" x="152.6" y="6.4" width="6.3" height="34.4"/>
\t \t <rect id="rect4" class="st0" cx="0" cy="0" x="0" y="0.2" width="38.8" height="6.3"/>
\t \t <rect id="rect5" class="st0" cx="100" cy="0" x="120.2" y="0.2" width="38.8" height="6.3"/>
\t \t
\t \t <animate xlink:href="#rect1" attributeName="width" from="0" to="158.9" begin="0s" dur="0.4s" />
\t \t <animate xlink:href="#rect2" attributeName="height" from="0" to="34.4" begin="0.4s" dur="0.25s" />
\t \t <animate xlink:href="#rect3" attributeName="height" from="0" to="34.4" begin="0.4s" dur="0.25s" />
\t \t <animate xlink:href="#rect4" attributeName="width" from="0" to="38.5" begin="0.65s" dur="0.25s" />
\t \t <animate xlink:href="#rect5" attributeName="width" from="0" to="38.5" begin="0.65s" dur="0.25s" />
\t </g>
</svg>
Im Moment die Animation Art von Arbeit, aber ich konnte nicht meine Aufgabe macht aus ihrem korrekten Zentrum erweitert. Zum Beispiel sollte sich die untere Linie von ihrer Mitte aus erweitern, die Seitenlinien sollten sich von der Unterseite usw. ausdehnen.
Brauchen Sie Hilfe darüber. Kann jemand bitte eine Hand leihen?
Fantastische, die noch besser ist! Danke, das ist die beste Antwort, die ich haben könnte! – Dynomite