<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
<!-- Aqui você informa seu texto -->
<!-- Também é possivel setar o tamanho da font do texto, com o atributo "font-size" -->
<!-- Text utiliza o #pattern (que é o background animado) declarado nos defs como fill -->
<text x="50%" text-anchor="middle" y="50%" fill="url(#pattern)" font-size="32pt">StackOverflow em Português</text>
<defs>
<!-- A declaração do gradient -->
<linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="0">
<!-- As cores do gradient -->
<!-- No caso você poderia declarar quantas cores você desejar, especificando os percentuais de offset -->
<stop offset="0%" style="stop-color:#33235b;"/>
<stop offset="25%" style="stop-color:#D62229;"/>
<stop offset="50%" style="stop-color:#E97639;"/>
<stop offset="75%" style="stop-color:#792042;"/>
<stop offset="100%" style="stop-color:#33235b;"/>
</linearGradient>
<!-- Utilize dois gradientes em conjunto para uma animação perfeita -->
<!-- A declaração das animações -->
<pattern id="pattern" x="0" y="0" width="100%" height="100%" patternUnits="userSpaceOnUse">
<!-- Primeiro frame de animação, animando de 0% até 100% no eixo x-->
<rect x="0" y="0" width="100%" height="100%" fill="url(#gradient)">
<animate attributeType="XML"
attributeName="x"
from="0" to="100%"
dur="7s"
repeatCount="indefinite"/>
</rect>
<!-- Segundo frame de animação, animando de -100% até 0% no eixo x, preenchendo a animação do frame anterior -->
<rect x="-100%" y="0" width="100%" height="100%" fill="url(#gradient)">
<animate attributeType="XML"
attributeName="x"
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.