Pen Settings



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


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


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.


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.


                <!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="icon" href="./favicon.ico" type="image/x-icon" />
    <link href="" rel="stylesheet">
    <script src=""></script>
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <p>Change the circles by tapping.</p>
    <div class="container">
      <div class="circle circle_1"><i class="fas fa-fan fa-lg"></i></div>
      <div class="circle circle_2"><i class="fas fa-fan fa-lg"></i></div>
      <div class="circle circle_3"><i class="fas fa-fan fa-lg"></i></div>
      <div class="circle circle_4"><i class="fas fa-fan fa-lg"></i></div>
      <div class="circle circle_5"><i class="fas fa-fan fa-lg"></i></div>



body {
  background-color: black;
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;

p {
  text-align: center;
  font-family: 'Dosis', Arial, Helvetica, sans-serif;
  font-size: 2rem;

/* TODO: needs to be centered */

.container {
  margin: 2rem;
  width: 50rem;
  height: 20rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
  align-self: center;

.circle {
  width: 6rem;
  height: 6rem;
  border: dotted 3px white;
  background-color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: space-around;

.circle_1 {
  border-color: green;
  width: 7rem;
  height: 7rem;

.circle_2 {
  border-color: orange;
  width: 3rem;
  height: 3rem;

.circle_3 {
  width: 11rem;
  height: 11rem;

.circle_4 {
  border-color: yellow;
  width: 4rem;
  height: 4rem;

.circle_5 {
  border-color: blue;
  width: 8rem;
  height: 8rem;

.circle_1:active, .circle_3:active, .circle_5:active  {
  align-self: flex-start;
  transform: rotate(45deg) scale(1.2);

.circle_2:active, .circle_4:active {
  align-self: flex-end;
  transform: rotate(45deg) scale(1.5);