Make Indian flag using single div

In this example below you will see how to do a Make Indian flag using single div with some HTML / CSS and Javascript

This awesome code was written by raeesh, you can see more from this user in the personal repository.
You can find the original code on
Copyright raeesh ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>Make Indian flag using single div</title>
      <link rel="stylesheet" href="css/style.css">



  <div class="myIndia"></div>

<!-- Created By Raeesh Alam -->
<a href="" target="_blank" style="color:#00c2c0; position: fixed; bottom: 5px; right: 5px; font-size: 15px; text-decoration: none; border: 1px solid #00c2c0; padding: 7px 14px; background: #000; font-family: Arial; letter-spacing:1px;" title="Raeesh Alam">&#10230; Raeesh Alam</a>



/*Downloaded from */
  width: 100%;
  max-width: 300px;
  height: 150px;
  position: relative;
  margin: 30px auto;
  border-top: 50px solid #FF9933;
  border-bottom: 50px solid #128807;
  -webkit-box-shadow: 0px 5px 20px #777;
  -moz-box-shadow: 0px 5px 20px #777;
  box-shadow: 0px 5px 20px #777;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  left: 50%;
  margin-left: -23px;
  top: 50%;
  margin-top: -23px;
  background:url( center center no-repeat;
  animation: 5s rotating infinite linear;
  -webkit-animation: 5s rotating infinite linear;
  -moz-animation: 5s rotating infinite linear;
@keyframes rotating{
  from{ transform:rotate(0deg);}
@-webkit-keyframes rotating{
@-moz-keyframes rotating{