Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1>Sharingan loader style</h1>
<div class="eye">
  <svg class="sharingan" viewBox="0 0 100 100"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
    <g id="full_pupille">
      <circle cx="50%" cy="50%" r="30" id="iris" />
      <circle cx="50%" cy="50%" r="10" id="pupille" />
      
      <text id="irisanomalie" class="irisanomalie" transform="rotate(180 30,8)">,</text>
      <use xlink:href="#irisanomalie" transform="rotate(120 50,50)"/>
      <use xlink:href="#irisanomalie" transform="rotate(240 50,50)"/>
    </g>
  </svg>
</div>
              
            
!

CSS

              
                @import "compass/css3";

// VARIABLES THAT YOU CAN MODIFY
$externalbordercolor: black;
$eyecolor:  rgba(100, 6, 6, 1);
$eyesize: 100px;
$pupillecolor: black;
$irisbordercolor: rgba(60, 6, 6, 0.75);
$iriscolor: rgba(60, 6, 6, 0.90);
// -- END VARIABLES THAT YOU CAN MODIFY

// COMMON
@import url(https://fonts.googleapis.com/css?family=Redressed);
@font-face 
{
  font-family: Naruto;
  src: url('http://www.ttfotf.com/download-font/ninja-naruto.ttf') format("truetype");
}
@keyframes loader {
  0% {  transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.eye {
  left: calc(50% - #{$eyesize / 2});
  background-color: $eyecolor;
  position: absolute;
  border: 5px solid $externalbordercolor;
  border-radius: 50%;
  height: $eyesize;
  width: $eyesize;

  .sharingan {
    position: relative;
    top: $eyesize / 4;
    left: $eyesize /4;
    height: $eyesize / 2;
    width: $eyesize / 2;
    animation: loader 2s infinite ease;
  
    #full_pupille {
      #pupille {
        fill: $pupillecolor;
      }
      #iris {
        stroke-width: 8px;
        stroke: $irisbordercolor;
        fill: $iriscolor;
      }
      .irisanomalie {
        fill: black;
        font-size: 100px;
        font-family: 'Redressed', cursive;
      }
    }
  }
}

////////////////////////////////////////////////////////////
///////// USELESS THINGS JUST FOR STYLISH A LITTLE /////////
@keyframes bgmover {
  0% {background-position: 0px 0px; }
  50% {background-position: 400px 0px; }
  100% {background-position: 0px 0px; }
}
body {
  background-color: #222;
}
h1 {
  width: 100%;
  text-align: center;
  font-family: 'Naruto', 'Redressed', cursive;
  background: white linear-gradient(90deg, rgb(255,103,15) 20%, rgb(252,240,15) 50%) repeat left bottom;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
              
            
!

JS

              
                /**
  * Works on webkit engine only at the moment
  */
              
            
!
999px

Console