Advertisement
Aniket_Goku

indra

Mar 24th, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.06 KB | None | 0 0
  1. <!doctype html5>
  2. <html>
  3.     <head>
  4.         <title>Indra</title>
  5.     </head>
  6.     <style>
  7.         :root
  8.         {
  9.             --sharingan:400px;
  10.             --cir-top:calc(var(--sharingan)/2.29);
  11.             --cir-shape:calc(var(--sharingan)/8);
  12.             --shadow:calc(var(--sharingan)/10);
  13.             --r:calc(var(--sharingan)/2);
  14.         }
  15.         #sharingan
  16.         {
  17.             position:absolute;
  18.             border:20px solid black;
  19.             background:red;
  20.             width:var(--sharingan);
  21.             height:var(--sharingan);
  22.             margin-top:3%;
  23.             margin-left:3%;
  24.             border-radius:50%;
  25.         }
  26.         #c
  27.         {
  28.             position:absolute;
  29.             border:0px solid  blue;
  30.             margin-left:-0.1%;
  31.             margin-top:-2%;
  32.             width:var(--sharingan);
  33.             height:var(--sharingan);
  34.            
  35.             border-radius:50%;
  36.         }
  37.         #incir
  38.         {
  39.             position:absolute;
  40.             background: black;
  41.             border-radius:50%;
  42.             top:var(--cir-top);
  43.             left:var(--cir-top);
  44.             width:var(--cir-shape);
  45.             height:var(--cir-shape);
  46.             box-shadow:0 0 var(--shadow) 10px black;
  47.         }
  48.                            
  49.  
  50.  
  51.         @keyframes ro
  52.         {
  53.             from{transform:rotate(0deg)}
  54.             to{transform:rotate(360deg)}
  55.         }
  56.         #cans
  57.         {
  58.             position:absolute;
  59.             border:0px solid white;
  60.             width:100%;
  61.             height:100%;
  62.             border-radius:50%;
  63.              margin-top:3%;
  64.             margin-left:0%;
  65.         }
  66.            
  67.     </style>
  68.    
  69.     <body bgcolor="#585858">
  70.         <div id="sharingan">
  71.             <div id="c" style="animation:ro 2s ease-in-out infinite">
  72.                 <!div id="incir"><!/div>
  73.                 <canvas id="cans" width="500"height="500" >
  74.                    
  75.                 </canvas>
  76.                
  77.             </div>
  78.         </div>
  79.         <script>
  80.         var c = document.getElementById("cans");
  81.         var ctx = c.getContext("2d");
  82.         var b =c.getContext("2d");
  83.         ctx.beginPath();
  84.         ctx.arc(280,250,230,0*Math.PI,1*Math.PI);
  85.         ctx.lineWidth=10;
  86.         ctx.stroke();
  87.         ctx.arc(240,250,190,1*Math.PI,2*Math.PI)       
  88.         ctx.stroke();
  89.         ctx.arc(280,250,150,2*Math.PI,1*Math.PI)       
  90.         ctx.stroke();
  91.         ctx.arc(240,250,110,1*Math.PI,2*Math.PI)       
  92.         ctx.stroke();      
  93.         ctx.arc(280,250,70,2*Math.PI,1*Math.PI)    
  94.         ctx.stroke();
  95.         ctx.arc(240,250,30,1*Math.PI,1.5*Math.PI)      
  96.         ctx.stroke();
  97.        
  98.         b.beginPath();
  99.         b.arc(240,245,30,0*Math.PI,2*Math.PI)      
  100.         b.fill();  
  101.     </script>
  102.     </body>
  103.  
  104. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement