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

              
                <div id="container">
  <div id="main">
    <div id="eyecatch">
      <div class="text1">愛生会</div>
      <ul class="text2">
        <li>内科</li>
        <li>小児科</li>
        <li>産婦人科</li>
      </ul>
    </div>
    <ul id="information">
      <li class="hours">診療時間</li>
      <li class="class">母親学級へのお願い</li>
      <li class="doctor">産婦人科担当医</li>
    </ul>
  </div>
    <footer>
      <address>Copyright(C)All rights reserved.</address>
    </footer>
</div>
              
            
!

CSS

              
                @import "compass/css3";

@mixin clearfix {
	zoom: 1;
	&:before,
	&:after {
	      content:"";
	      display:table;
	}
	
	&:after {
		clear:both;
	}
}
html {
  font-size: 62.5%;
  overflow-y: scroll;
}
body {
  margin: 0;
  padding: 0;
  background: #000000;
  font-family: "Osaka-等幅", "Osaka-Mono", "MS ゴシック", "MS Gothic", "モトヤLシーダ3等幅", MotoyaLCedar, Verdana, sans-serif;
  line-height: 1.8;
  font-weight: normal;
  -webkit-text-size-adjust: 100%;
}
#container {
  margin: 0 auto;
  padding: 0;
  width: 700px;
}
#main {
  @include clearfix;
}
#eyecatch {
  width: 403px;
  height: 294px;
  float: left;
  background: #A1A1A1;
  position: relative;
  .text1 {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    color: #FF0000;
    font-size: 3.4em;
    line-height: 1;
    text-shadow: -1px 0 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, 1px 0 0 #000000, 1px 1px 0 #000000, 0 1px 0 #000000, -1px 1px 0 #000000;
    text-align: right;
    animation: bynbyn1 infinite alternate steps(3) 400ms;
  }
  .text2 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    padding: 0;
    list-style: none inside;
    animation: bynbyn2 infinite alternate steps(3) 400ms;
    li {
      margin: 0;
      padding: 0;
      color: #00FF00;
      text-shadow: -1px 0 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, 1px 0 0 #000000, 1px 1px 0 #000000, 0 1px 0 #000000, -1px 1px 0 #000000;
      line-height: 1;
    }
  }
}
#information {
  float: left;
  margin: 15px 0 0 30px;
  padding: 5px 0 0;
  list-style: none inside;
  width: 162px;
  height: 84px;
  border-top: 2px solid #0000FF;
  border-bottom: 2px solid #0000FF;
  text-align: center;
  position: relative;
  text-shadow: -1px 0 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, 1px 0 0 #000000, 1px 1px 0 #000000, 0 1px 0 #000000, -1px 1px 0 #000000;
  li {
    margin: 0;
    padding: 5px 0 0;
    color: #FFFFFF;
    font-size: 20px;
    letter-spacing: .05em;
    line-height: 1.2;
    font-weight: 700;
  }
  li:nth-child(1) {
    color: #FF0000;
    animation: ckck1 infinite steps(4) 1200ms -800ms;
  }
  li:nth-child(2) {
    font-size: 16px;
    color: #FFFF00;
    animation: ckck2 infinite steps(4) 1200ms -400ms;
  }
  li:nth-child(3) {
    color: #00FF00;
    animation: ckck3 infinite steps(4) 1200ms;
  }
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 30px;
    height: 100%;
    border-left: 5px solid #0000FF;
    border-top-left-radius: 1000%;
    border-bottom-left-radius: 1000%;
  }
  &:after {
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    width: 30px;
    height: 100%;
    border-right: 5px solid #0000FF;
    border-top-right-radius: 1000%;
    border-bottom-right-radius: 1000%;
  }
}
address {
  margin-left: 50%;
  color: #FFFF00;
  font-size: 20px;
  font-style: normal;
  text-align: left;
  animation: ittrkttr linear infinite alternate 5000ms;
}
@keyframes ittrkttr {
    0% {
      margin-left: 50%;
    }
    100% {
      margin-left: 0%;
    }
}

@keyframes bynbyn1 {
    0% {
      font-size: 20px;
    }
    100% {
      font-size: 80px;
    }
}
@keyframes bynbyn2 {
    0% {
      font-size: 64px;
    }
    100% {
      font-size: 10px;
    }
}
@keyframes ckck1 {
    0% {
      color: #FF0000;
    }
    20% {
      color: #FF0000;
    }
    25% {
      color: #0000FF;
    }
    50% {
      color: #0000FF;
    }
    60% {
      color: #FF0000;
    }
    100% {
      color: #FF0000;
    }
}
@keyframes ckck2 {
    0% {
      color: #FFFF00;
    }
    20% {
      color: #FFFF00;
    }
    25% {
      color: #0000FF;
    }
    50% {
      color: #0000FF;
    }
    60% {
      color: #FFFF00;
    }
    100% {
      color: #FFFF00;
    }
}
@keyframes ckck3 {
    0% {
      color: #00FF00;
    }
    20% {
      color: #00FF00;
    }
    25% {
      color: #0000FF;
    }
    50% {
      color: #0000FF;
    }
    60% {
      color: #00FF00;
    }
    100% {
      color: #00FF00;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console