Moving Bus Animation

#Made by Devansh mishra# 
<!DOCTYPE html>
<html>
  <head>
    <title>Devansh Mishra</title>
    <link href="https://fonts.googleapis.com/css?family=Handlee" rel="stylesheet">
  </head>
  <body>
   <!--Titles-->
   <h1 align='center'>School Bus</h1>
   <h2 align='center'>My first moving SVG</h2>
   <h3 align='center'>I hope you will like it</h3>
   
   <!--Main SVG-->
   <svg width="100%" height="500">     
 

 
      <!--Road the black background-->
      <rect x="0" y="350" width="100%" height="100" fill="black" rx="0" ry="0"/>
 
      <!--Road the white parts-->    
      <rect x="0" y="395" width="60" height="10" fill="white" rx="0" ry="0">
          <animate attributeName="x" from="0" to="960" dur="0.4s" fill="freeze" repeatCount="indefinite"/>
      </rect>
      
      <!--The bus main body-->
      <rect x="30" y="280" width="300" height="110" fill="#febc10" rx="5" ry="5" stroke="black" stroke-width="1"/>
      
      <!--The bus wheels-->
      <circle r="15px" fill="#726d82" cx="90" cy="390" stroke="#36353a" stroke-width="10">
          <animate attributeName="cy" from="389" to="391" dur="0.05s" fill="freeze" repeatCount="indefinite"/>
      </circle>    
      <circle r="15px" fill="#726d82" cx="280" cy="390" stroke="#36353a" stroke-width="10">
          <animate attributeName="cy" from="391" to="389" dur="0.05s" fill="freeze" repeatCount="indefinite"/>
      </circle> 

      <!--The bus the glass of the bus-->
      <rect x="100" y="290" width="40" height="40" fill="#c2f6ff" rx="5" ry="5" stroke="#726d82" stroke-width="2"/>
      <rect x="145" y="290" width="40" height="40" fill="#c2f6ff" rx="5" ry="5" stroke="#726d82" stroke-width="2"/>
      <rect x="190" y="290" width="40" height="40" fill="#c2f6ff" rx="5" ry="5" stroke="#726d82" stroke-width="2"/>
      <rect x="235" y="290" width="40" height="40" fill="#c2f6ff" rx="5" ry="5" stroke="#726d82" stroke-width="2"/>
      <rect x="280" y="290" width="40" height="40" fill="#c2f6ff" rx="5" ry="5" stroke="#726d82" stroke-width="2"/>

      
      <rect x="40" y="290" width="50" height="70" fill="#c2f6ff" rx="5" ry="5" stroke="#726d82" stroke-width="2"/>
      <rect x="40" y="365" width="25" height="20" fill="#c2f6ff" rx="3" ry="3" stroke="#726d82" stroke-width="2"/>
      <ellipse cx="80" cy="367" rx="5" ry="2" fill="#36353a" stroke="#726d82" stroke-width="1" /> 
       
       <!--The bus accesories-->
       <rect x="100" y="340" width="220" height="4" fill="#36353a" rx="2" ry="2">
           <animate attributeName="y" from="339.5" to="340.5" dur="0.05s" fill="remove" repeatCount="indefinite"/>
       </rect>
       <rect x="100" y="360" width="220" height="4" fill="#36353a" rx="2" ry="2">
           <animate attributeName="y" from="359.5" to="360.5" dur="0.05s" fill="remove" repeatCount="indefinite"/>
       </rect>
       <text x="160" y="357" fill="#36353a">SCHOOL BUS
           <animate attributeName="y" from="356.5" to="357.5" dur="0.05s" fill="remove" repeatCount="indefinite"/>
       </text>
       
       <!--The bus side lights-->
       <rect x="31" y="374" width="7" height="15" fill="#e83232" rx="3" ry="3" />
       <rect x="31" y="374" width="7" height="15" fill="#e83232" rx="2" ry="2" />
       <rect x="314" y="379" width="15" height="10" fill="#e83232" rx="2" ry="2" />
    </svg>
  </body>
</html>

Comments

Popular posts from this blog

Chandrayan 3 Mission Special :Animation

Python Basic Programs By Devansh Mishra.

" Words moving in circular motion as Tiny Particles " Animation