Hakunin

SKI_V3

Nov 7th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Title</title>
  6. </head>
  7. <body>
  8.     <svg x="0" y="0" height="1000" width="1000"> <!-- podrazumevane koordinate su 0,0 , velicina moze i u procentima-->
  9.  
  10.         <rect height="150" width="255" x="50" y="80" style="fill:red; stroke:blue; stroke-width: 5; rx: 5"; opacity="0.55"></rect>
  11.         <!--kad je samo rx, podrazumeva ry-->
  12.  
  13.         <circle r="100" cx="350" cy="350" fill="transparent" stroke="blue"/>
  14.         <!-- transparent moze biti i none -->
  15.  
  16.         <ellipse rx="40" ry="70" cx="800" cy="800" fill="magenta" stroke="lime" stroke-width="6"></ellipse>
  17.  
  18.         <line x1="55" y1="44" x2="500" y2="120" stroke="red" stroke-width="9"/>
  19.         <!-- moze se zatvroriti tag i ovako-->
  20.  
  21.         <polyline points="50,375 22,15 444,222 123,321 222,112" stroke="red" fill="none"></polyline>
  22.         <!--tacke se grupisu u parovima, fill po default nije none!! -->
  23.  
  24.         <polygon points="500,555 590,888, 300,344" style="fill:silver;stroke:purple;stroke-width: 5;"></polygon>
  25.  
  26.         <polygon points="100,10 40,198 190,78 10,78 160,198" style="fill:gold;stroke: black;stroke-width: 5; fill-rule: evenodd"></polygon>
  27.  
  28.         <path d="M150 0 L75 200 L225 200 Z" fill="none" stroke=""></path>
  29.         <!-- koristi se uglavnom za animaciju-->
  30.         <!-- M- L-linija H-horizontalna V-vertikalna C-curve S- a- Z-zatvaranje putanje"-->
  31.  
  32.         <text x="533" y="677" fill="orange" font-size="25" font-family="Verdana" text-anchor="end"
  33.        transform="translate(100,100) rotate(20,100,120)">
  34.             ovo je tekst???
  35.             <tspan x="533" y="699 ">
  36.                 drugi red teksta
  37.             </tspan>
  38.         </text>
  39.         <!--ne vidi se ako se stavi 0,0 zato sto tekst ide iznad tacke!!! ako je anchor namesten na start,
  40.        ako je anchor end onda ce se zadnje slovo zavrsiti u toj tacki-->
  41.         <!--translate(100,100) pomera test tamo, rotate(20-stepeni pa koordinate tacke oko koje se rotira(ne mora oko tacke...)-->
  42.  
  43.         <circle r="25" cx="930" cy="880">
  44.             <animate attributeName="cx" attributeType="XML" from="930" to="870" dur="5s" fill="remove" repeatCount="indefinite"></animate>
  45.         </circle>
  46.         <!--prvi nacin animacije-->
  47.  
  48.         <rect height="50" width="55" x="700" y="700" stroke="#ffDD0D" fill="ff0000">
  49.             <animateTransform attributeName="transform" begin ="0s" dur="20s"
  50.                              type="rotate" from="0 710 710" to="360 710 710" repeatCount="indefinite"></animateTransform>
  51.         </rect>
  52.  
  53.         <rect height="30" width="30" x="620" y="620" stroke="red" fill="black">
  54.             <animate attributeName="width" attributeType="XML" begin="0s" dur="10s" fill="freeze" from="30" to="0"></animate>
  55.             <animate attributeName="height"attributeType="XML" begin="0s" dur="10s" fill="freeze" from="30" to="0"></animate>
  56.             <animate attributeName="fill" attributeType="CSS" begin="0s" dur="10s" fill="freeze" from="black" to="red"></animate>
  57.             <animateTransform attributeName="transform" begin="0s" dur="10s" type="scale" from="1" to="1.2" repeatCount="indefinite"></animateTransform>
  58.         </rect>
  59.  
  60.     </svg>
  61. </body>
  62. </html>
Add Comment
Please, Sign In to add comment