animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back

rendered animation

Smart Home Temperature Slider

1<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 800 600">
2  <defs>
3    <linearGradient id="liquidGrad" x1="557" y1="150" x2="557" y2="546" gradientUnits="userSpaceOnUse">
4      <stop offset="0" stop-color="#FF0909"/>
5      <stop offset="0.2" stop-color="#F3481A"/>
6      <stop offset="0.5" stop-color="#FABA2C"/>
7      <stop offset="1" stop-color="#00BCF2"/>
8    </linearGradient>
9<rect id="tube" x="357" y="150" width="86" height="400" rx="43" ry="43"/>   
10    <clipPath id="liquidMask">
11        <use xlink:href="#tube" class="liquidMask" />
12    </clipPath>
13   <clipPath id="tubeMask">
14        <use xlink:href="#tube" class="liquidMask" />
15    </clipPath>
16   <path id="liquid" d="M757,552v490H357V552c50,0,50,20,100,20s50-20,100-20,50,20,100,20S707,552,757,552Z" />
17<mask id="gradMask">   
18
19      <use xlink:href="#liquid" class="liquid" x="0" fill="#FCEFD6" />
20      <use xlink:href="#liquid" class="liquid" x="0" fill="#EEE" opacity="0.7"/>
21 
22    </mask>
23  </defs>
24  
25  
26    <g class="whole" transform="translate(0, -40)">
27
28           <use xlink:href="#tube" class="tubeBg" fill="#C8D9D3" opacity="0.61"/>
29   
30      <g class="dragger" transform="translate(-6, 0)">
31        <circle cx="294" cy="540" r="36" fill="#3A3335"/>
32        <path class="dragTip" d="M315.5,556.76,299.24,540.5l16.26-16.26,36.26,16.26Z" fill="#3A3335"/>
33        <text class="label" x="294" y="551">100</text>
34<!--  <path id="dragShine" d="M330,540c-26,2-18-44-72,0a36,36,0,0,1,72,0Z" fill="#E9E9E9" opacity="0.052"/>    -->    
35      </g>       
36     
37    
38 <g mask="url(#gradMask)">
39        <use xlink:href="#tube" fill="url(#liquidGrad)" />
40  </g>
41  <line class="tubeShine" x1="371" y1="200" x2="371" y2="443" fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="8" opacity="0.21" stroke-dasharray="153 30" stroke-dashoffset="-20"/>
42 <!--        <text class="tubeLabel" x="400" y="180">100°</text>
43        <text class="tubeLabel" x="400" y="356">50°</text>
44        <text class="tubeLabel" x="400" y="540">0°</text> -->
45      <g class="measurements" fill="none" stroke="#FCEFD6" stroke-width="3" stroke-linecap="round" opacity="1">
46        <line x1="358" y1="196" x2="370" y2="196" />
47        <line x1="358" y1="234" x2="370" y2="234" />
48        <line x1="358" y1="273" x2="370" y2="273" />
49        <line x1="358" y1="311" x2="370" y2="311" />
50        <line x1="358" y1="350" x2="370" y2="350" />
51        <line x1="358" y1="388" x2="370" y2="388" />
52        <line x1="358" y1="426" x2="370" y2="426" />
53        <line x1="358" y1="465" x2="370" y2="465" />
54        <line x1="358" y1="503" x2="370" y2="503" />
55      </g>
56     
57<!--  <rect class="tubeShine" x="372" y="162" width="56" height="364.02" rx="31.5" ry="31.5" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="8" stroke-linecap="round" stroke-dasharray="15 30" opacity="0.31"/> -->
58  <circle class="follower" cx="400" cy="540" r="0" fill="#62B6CB" fill-opacity="1" stroke="#FCEFD6" stroke-width="0"/>
59
60     
61 
62     
63 </g>   
64</svg>
65
66