SVG淋浴小动画

来源:互联网 发布:917发卡软件 编辑:程序博客网 时间:2024/04/27 18:36



SVG淋浴小动画源码

  1. <!doctype html>

  2. <html lang="en">

  3. <head>

  4. <!--网站编码格式,UTF-8 国际编码,GBK或 gb2312 中文编码-->

  5. <meta charset="UTF-8">

  6. <meta name="Keywords" content="关键词一,关键词二">

  7. <meta name="Description" content="网站描述内容">

  8. <title>Document</title>

  9. <style>

  10. .shower {

  11. width:200px;

  12. margin:40pxauto;

  13. }


  14. path[id^='water'] {

  15. stroke-width:5;

  16. stroke-linecap:round;

  17. stroke:#2b8ebd;

  18. fill:none;

  19. }


  20. path#water0,

  21. path#water2,

  22. path#water4 {

  23. stroke-dasharray:2020;

  24. animation-name: waterfall1;

  25. animation-iteration-count:infinite;

  26. animation-duration:2s;

  27. animation-timing-function:linear;

  28. }


  29. path#water1,

  30. path#water3 {

  31. stroke-width:4.5;

  32. stroke-dasharray: 30 30;

  33. animation-name: waterfall2;

  34. animation-iteration-count:infinite;

  35. animation-duration:1s;

  36. animation-delay:200ms;

  37. animation-timing-function:linear;

  38. }


  39. @keyframes waterfall1 {

  40. 0% {

  41. stroke-dashoffset:20;

  42. stroke-dasharray:3030;

  43. }

  44. 100% {

  45. stroke-dashoffset:-246;

  46. stroke-dasharray:3040;

  47. }

  48. }


  49. @keyframes waterfall2 {

  50. 0% {

  51. stroke-dashoffset:0;

  52. stroke-dasharray:3030;

  53. }

  54. 100% {

  55. stroke-dashoffset:-245;

  56. /* stroke-dasharray:20 40;*/

  57. }

  58. }

  59. </style>

  60. </head>

  61. <body>

  62. <div class="shower">

  63. <?xml version="1.0" encoding="UTF-8" standalone="no"?>

  64. <!-- Created with Inkscape (http://www.inkscape.org/) -->


  65. <svg

  66. xmlns:dc="http://purl.org/dc/elements/1.1/"

  67. xmlns:cc="http://creativecommons.org/ns#"

  68. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

  69. xmlns:svg="http://www.w3.org/2000/svg"

  70. xmlns="http://www.w3.org/2000/svg"

  71. xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"

  72. xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"

  73. width="200px"

  74. viewBox="0 0 293.30679 546.01726"

  75. id="svg4927"

  76. version="1.1"

  77. inkscape:version="0.91 r13725"

  78. sodipodi:docname="babyshower.svg">

  79. <defs

  80. id="defs4929" />

  81. <sodipodi:namedview

  82. id="base"

  83. pagecolor="#ffffff"

  84. bordercolor="#666666"

  85. borderopacity="1.0"

  86. inkscape:pageopacity="0.0"

  87. inkscape:pageshadow="2"

  88. inkscape:zoom="0.58704602"

  89. inkscape:cx="-146.37481"

  90. inkscape:cy="272.25006"

  91. inkscape:document-units="px"

  92. inkscape:current-layer="layer1"

  93. showgrid="false"

  94. showguides="false"

  95. inkscape:window-width="1366"

  96. inkscape:window-height="705"

  97. inkscape:window-x="-8"

  98. inkscape:window-y="-8"

  99. inkscape:window-maximized="1"

  100. fit-margin-top="0"

  101. fit-margin-left="0"

  102. fit-margin-right="0"

  103. fit-margin-bottom="0" />

  104. <metadata

  105. id="metadata4932">

  106. <rdf:RDF>

  107. <cc:Work

  108. rdf:about="">

  109. <dc:format>image/svg+xml</dc:format>

  110. <dc:type

  111. rdf:resource="http://purl.org/dc/dcmitype/StillImage" />

  112. <dc:title></dc:title>

  113. </cc:Work>

  114. </rdf:RDF>

  115. </metadata>

  116. <g

  117. transform="translate(-94.377469,-138.5609)"

  118. id="g7038"

  119. inkscape:groupmode="layer"

  120. inkscape:label="Original copy">

  121. <path

  122. sodipodi:nodetypes="cscccc"

  123. inkscape:connector-curvature="0"

  124. id="path7042"

  125. d="m 364.14633,535.06775 c 3.60835,83.94131 2.7843,79.207 -76.3537,78.54235 -83.78538,-0.70368 -111.82632,8.62117 -130.39302,-38.63975 -15.97085,-22.85977 -32.91764,-40.87287 -22.04316,-39.76362 l 98.92927,-0.13898 z"

  126. style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />

  127. <path

  128. inkscape:connector-curvature="0"

  129. id="path7044"

  130. d="m 273.26909,515.05639 0,-101.43251"

  131. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  132. <path

  133. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"

  134. d="m 276.49649,507.3396 50.71626,-87.84315"

  135. id="path7046"

  136. inkscape:connector-curvature="0" />

  137. <path

  138. inkscape:connector-curvature="0"

  139. id="path7048"

  140. d="m 278.21955,510.90689 87.84314,-50.71627"

  141. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  142. <path

  143. sodipodi:nodetypes="csc"

  144. inkscape:connector-curvature="0"

  145. id="path7050"

  146. d="m 275.11332,415.46811 c 0,0 11.66786,7.76227 23.22317,9.00266 14.69139,1.57703 28.35843,-3.90695 28.35843,-3.90695"

  147. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  148. <path

  149. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"

  150. d="m 323.75565,429.59915 c 0,0 6.22352,12.55625 15.61052,19.40812 11.93461,8.71145 26.5126,10.7957 26.5126,10.7957"

  151. id="path7052"

  152. inkscape:connector-curvature="0"

  153. sodipodi:nodetypes="csc" />

  154. <path

  155. sodipodi:nodetypes="csc"

  156. inkscape:connector-curvature="0"

  157. id="path7054"

  158. d="m 361.17486,461.61607 c 0,0 -5.85282,12.73329 -5.28062,24.34087 0.72745,14.75789 8.27065,27.40551 8.27065,27.40551"

  159. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  160. <g

  161. id="g7152">

  162. <g

  163. transform="matrix(-0.86602541,0.50000001,0.50000001,0.86602541,22.510881,46.924001)"

  164. id="g7091">

  165. <g

  166. id="g7139">

  167. <path

  168. sodipodi:nodetypes="ccsc"

  169. inkscape:connector-curvature="0"

  170. id="path7089"

  171. d="m 35.778395,452.99914 0,32.86807 c 0,0 -1.422054,7.4378 4.883256,7.70052 9.015242,0.37563 4.319804,-9.39087 4.319804,-9.39087"

  172. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  173. <path

  174. style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"

  175. d="m 71.453376,461.26311 c -1.314723,-1.1269 2.412965,-2.93581 -5.071074,-2.25381 -9.78801,0.89196 -10.517782,3.56853 -10.517782,3.56853 0,0 0.939087,0 -4.507621,-2.06599 -5.446709,-2.06599 -14.837586,1.87818 -14.837586,1.87818 l -8.579963,-2.11618 -6.049306,0.0793 -5.73916,2.09449 -3.704295,-2.6155 -4.5864829,-0.76525 -7.17850114,-0.60967 1.65501494,-4.73448 8.1048781,-6.02028 25.467585,-9.09622 22.413158,7.78309 8.724428,6.66553 z"

  176. id="path7087"

  177. inkscape:connector-curvature="0"

  178. sodipodi:nodetypes="cscsccccccccccccc" />

  179. <path

  180. sodipodi:nodetypes="cscsc"

  181. inkscape:connector-curvature="0"

  182. id="path7072"

  183. d="m 0.40801039,460.2237 c 0,-5.18134 3.96696001,-9.87217 10.38066961,-13.26766 6.4137,-3.39549 12.57763,-0.35742 25.06113,-9.49564 14.43099,8.98841 18.64743,6.10015 25.06113,9.49564 6.41371,3.39549 10.38067,8.08632 10.38067,13.26766"

  184. style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />

  185. <path

  186. inkscape:connector-curvature="0"

  187. id="path7079"

  188. d="m 35.778395,438.53719 0,24.04064"

  189. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  190. <path

  191. sodipodi:nodetypes="cssc"

  192. inkscape:connector-curvature="0"

  193. id="path7081"

  194. d="m 15.869735,462.76565 c 0,0 -1.34457,-4.62609 4.507621,-9.01524 3.756351,-2.81726 8.263973,-3.00508 12.395958,-8.63961 1.666024,-2.27185 3.192899,-6.38579 3.192899,-6.38579"

  195. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  196. <path

  197. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"

  198. d="m 55.805559,462.76565 c 0,0 1.34457,-4.62609 -4.507621,-9.01524 -3.756351,-2.81726 -8.263973,-3.00508 -12.395958,-8.63961 -1.666024,-2.27185 -3.192899,-6.38579 -3.192899,-6.38579"

  199. id="path7083"

  200. inkscape:connector-curvature="0"

  201. sodipodi:nodetypes="cssc" />

  202. <path

  203. inkscape:connector-curvature="0"

  204. id="path7085"

  205. d="m 0.656514,461.26311 c 1.314723,-1.1269 -2.441628,-2.44163 5.071074,-2.25381 7.512702,0.18782 10.215215,3.25561 10.215215,3.25561 0,0 -0.63652,0.31292 4.810188,-1.75307 5.446709,-2.06599 14.837586,1.87818 14.837586,1.87818"

  206. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"

  207. sodipodi:nodetypes="cscsc" />

  208. </g>

  209. </g>

  210. <g

  211. id="g7148">

  212. <path

  213. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"

  214. d="m 241.98362,488.12833 c -0.5973,-2.62807 -1.22111,-6.3688 -1.67241,-6.21182 -2.74756,0.95566 -2.26973,5.9729 -2.26973,5.9729 z"

  215. id="path7137"

  216. inkscape:connector-curvature="0"

  217. sodipodi:nodetypes="cscc" />

  218. <path

  219. style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"

  220. d="m 139.9668,344.67188 c -0.62117,-0.0415 -1.16307,0.114 -1.53907,0.49023 -2.14583,2.15149 0.54702,3.4709 1.69727,5.0332 -2.37149,-2.10157 -2.73622,-1.1861 -3.12305,-0.80078 -0.54799,0.55084 -1.25691,1.40972 0.92969,3.75586 -2.25993,-2.09925 -2.90063,-1.16939 -3.45117,-0.61914 -0.54799,0.55082 -1.26118,1.49302 0.61719,3.70703 -2.12781,-2.31944 -1.86278,-2.31346 -2.89951,-0.54775 -0.15245,3.91977 1.61959,3.90466 2.39207,5.11754 0.74423,0.53269 2.08314,1.33781 3.57189,1.62357 2.99595,0.5155 3.61173,-0.93326 6.39993,-3.71928 0,0 -4.93201,3.42657 -2.75287,6.12222 3.95926,5.75746 6.78224,14.6703 8.46231,17.09706 1.68006,2.42676 16.42736,5.41384 18.10743,-0.37305 1.68006,-5.78688 -18.29372,-28.93607 -19.78711,-29.49609 -1.64453,-2.28906 -1.00364,-1.37254 -1.64453,-2.28906 -0.99651,-1.58102 -2.3465,-2.11319 -3.63086,-3.35352 -1.06083,-1.06082 -2.31434,-1.67895 -3.34961,-1.74804 z"

  221. transform="translate(94.377469,138.5609)"

  222. id="path7104"

  223. inkscape:connector-curvature="0"

  224. sodipodi:nodetypes="scccccccccccsscccs" />

  225. </g>

  226. </g>

  227. <rect

  228. ry="7.6677551"

  229. y="519.61871"

  230. x="117.3905"

  231. height="15.33551"

  232. width="259.80188"

  233. id="rect7056"

  234. style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />

  235. <path

  236. sodipodi:nodetypes="csssscc"

  237. inkscape:connector-curvature="0"

  238. id="path7058"

  239. d="m 152.39679,663.20635 c 3.52028,2.01614 7.4062,-1.30601 8.30004,-4.64752 1.59884,-5.97718 -3.42448,-11.42184 -9.09606,-12.35056 -8.32326,-1.36293 -15.51027,5.55497 -16.40107,13.54458 -1.18729,10.64889 7.68756,19.62696 17.9931,20.4516 11.67111,0.93387 21.91139,-7.88957 24.08746,-19.13787 l 14.08094,-45.59854"

  240. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:8.60934544;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />

  241. <path

  242. style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:8.60934544;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"

  243. d="m 366.07332,663.20635 c -3.52028,2.01614 -7.4062,-1.30601 -8.30004,-4.64752 -1.59884,-5.97718 3.42448,-11.42184 9.09606,-12.35056 8.32326,-1.36293 15.51027,5.55497 16.40107,13.54458 1.18729,10.64889 -7.68756,19.62696 -17.9931,20.4516 -11.67111,0.93387 -21.91139,-7.88957 -24.08746,-19.13787 l -14.08094,-45.59854"

  244. id="path7060"

  245. inkscape:connector-curvature="0"

  246. sodipodi:nodetypes="csssscc" />

  247. <path

  248. sodipodi:nodetypes="ccsc"

  249. inkscape:connector-curvature="0"

  250. id="water0"

  251. d="m 218.54434,194.14594 -85.9444,322.9054 c 0,-6.13888 -4.68447,-13.55535 -16.06072,-20.12009 -12.84937,-7.41482 -19.644432,4.9111 -19.644432,4.9111"

  252. style="" />

  253. <path

  254. inkscape:connector-curvature="0"

  255. id="water2"

  256. d="m 246.78322,191.69038 0,247.36096 c -5.60297,-11.54711 -15.22581,-13.9644 -23.68065,-8.05489"

  257. style=""

  258. sodipodi:nodetypes="ccc" />

  259. <path

  260. sodipodi:nodetypes="ccsc"

  261. inkscape:connector-curvature="0"

  262. id="water1"

  263. d="m 233.27767,194.14594 -41.92908,266.2686 c 0,0 -4.3487,-12.47608 -16.60136,-17.70892 -12.05455,-5.14824 -17.31835,5.93366 -17.31835,5.93366"

  264. style="" />

  265. <path

  266. sodipodi:nodetypes="ccsc"

  267. style=""

  268. d="m 277.32975,194.14594 71.21107,261.51654 c 0,0 6.21023,-11.63086 13.10057,-16.91244 9.11991,-6.9906 15.96111,0.19923 15.96111,0.19923"

  269. id="water4"

  270. inkscape:connector-curvature="0" />

  271. <path

  272. sodipodi:nodetypes="ccc"

  273. inkscape:connector-curvature="0"

  274. id="water3"

  275. d="m 262.59642,194.14594 38.06109,229.59433 c 0,0 3.73162,-22.9517 18.38773,-20.8224"

  276. style="" />

  277. <path

  278. transform="scale(1,-1)"

  279. d="m 305.55474,-192.76054 a 57.142857,49.175762 0 0 1 -28.57143,42.58746 57.142857,49.175762 0 0 1 -57.14286,-1e-5 57.142857,49.175762 0 0 1 -28.57143,-42.58746 l 57.14286,1e-5 z"

  280. sodipodi:end="3.1415927"

  281. sodipodi:start="0"

  282. sodipodi:ry="49.175762"

  283. sodipodi:rx="57.142857"

  284. sodipodi:cy="-192.76054"

  285. sodipodi:cx="248.41188"

  286. sodipodi:type="arc"

  287. id="path7040"

  288. style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />

  289. </g>

  290. </svg>

  291. </div>


  292. </div>

  293. </body>

  294. </html>


感谢  ·  转发欢迎大家留言







原创粉丝点击