Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="section">
	<div class="circle-cont">
		<div class="circle-w"></div>
		<div class="circle">
			<span>⏰</span>
		</div>
	</div>
<div/>
              
            
!

CSS

              
                /* imposta dimensioni sezione */
.section {
	/* imposta larghezza al massimo */
 width: 100%;
	/* imposta altezza al 100% della schermata*/
 height: 100vh;
}

/* imposta sezione e contenitore dei cerchi 
   come colonna FLEX e centra i contenuti */
.section, .circle-cont, .circle {
	/* imposta elemento FLEX */
 display: flex;
	/* imposta la direzione del FLEX come colonna */
 flex-direction:column;
	/* allinea contenuti su asse orizzontale */
 align-items: center;
	/* allinea contenuti su asse verticale */
 justify-content: center;
}


/* imposta dimensioni contenitore */
.circle-cont {
 width: 100%;
 height: 100%;
}

/* imposta il cerchio grigio */
.circle {
	/* imposta la dimensione dell'emoji */
 font-size: 100px;
	/* imposta il colore di sfondo */
 background-color: #dfdfdf;
	/* imposta le dimensioni */
 width: 220px;
 height: 220px;
	/* imposta il raggio del bordo per creare un cerchio */
 border-radius: 50%;
	/* imposta l'ombra nera con opacità del 30% */
 box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.3);
	/* imposta "l'elevazione" del cerchio rispetto 
	   agli altri elementi con z-index inferiore*/
 z-index:110;
}
 
/* imposta il cerchio animato */
.circle-w {
	/* imposta le dimensioni del cerchio animato
	   in proporzione all'altezza schermo 
	   -60% del visibile- */
 width: 60vh;
 height: 60vh;
	/* imposta il valore di scala ad 1 -100%- */
 transform: scale(1, 1);
	/* imposta il raggio del bordo per creare un cerchio */
 border-radius: 50%;
	/* imposta il bordo con 1px grigio */
 border: 1px solid #333333;
	/* imposta tempi e easing delle transizioni
	   per questo elemento */
 transition: all 300ms ease-in-out;
	/* imposta l'animazione -blink- con durata di 3sec
	   e ripetizione infinita */
 animation: blink 3s infinite;
	/* imposta il colore di sfondo */
 background-color: rgba(0, 0, 0, .3);
  /* imposta "l'elevazione" del cerchio rispetto 
	   agli altri elementi con z-index inferiore o 
	   superiore */
 z-index:100;
  /* imposta il posizionamento */	
 position: absolute;
}
 
/* imposta i frames per l'animazione */
@keyframes blink {
	/* imposta l'inizio scala 0% e opacità 100%*/
 0% {transform: scale(0, 0); opacity:1;}
	/* imposta la fine scala 100% e opacità 0%*/
 100% {transform: scale(1, 1); opacity: 0;}
}
              
            
!

JS

              
                
              
            
!
999px

Console