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

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

              
                <aside class="cinema funny-markup">
	<div class="ct-container cinema-wrap">
		<div class="cinema-wrap-inner">
            <div class="stage-l">
                <!-- 홈 샘플 -->
                <figure id="home-sample">
                    <figcaption style="display:none; visibility: hidden">CSS3로 작동하는 애니메이션</figcaption>
                    <div class="header">header</div>
                    <div class="promo">promotion</div>
                    <div id="wrapper" class="scs">
                        <div class="s1">side 1</div>
                        <div class="s2">side 2</div>
                        <div class="content">contents</div>
                    </div>
                    <div class="footer"> footer</div>
                </figure>
                <p class="copyright"><span>Design &amp; Coded by</span> Hyunhwa, Jung</p>
            </div>
		</div><!-- cinema-wrap-inner -->
	</div>
</aside>
              
            
!

CSS

              
                /**
 * 애니메이션 커버
 * --------------------------------------------------------------------------
 */
.cinema.funny-markup { max-width: 900px; height: 510px; margin: 0 auto; border-bottom: 1px solid #c8f1fd; background-image: url("img/bg-cinema.jpg"); background-position: top; background-repeat: repeat-x; background-size: cover; overflow:hidden }
.cinema.funny-markup > .cinema-wrap { height: 510px; background-image: url("img/bg-icons.png"); background-repeat: repeat-y; animation: masthead 30s linear infinite; -webkit-animation: masthead 30s linear infinite }
.cinema.funny-markup .cinema-wrap-inner { margin:0 auto; overflow:hidden; height: 510px; background-image: url("img/bg-icons-fast.png"); background-repeat: repeat-y; animation: masthead-fast 15s linear infinite; -webkit-animation: masthead-fast 15s linear infinite }
.cinema.funny-markup .stage-l { margin: 70px auto 0 auto; width: 80% }
.cinema.funny-markup .stage-l > p { display: block; margin: 50px auto 0 auto; padding: 0; text-align: center; font-size: .75rem; color: #a9a9a9 }
.cinema.funny-markup .stage-l > p > span { font-size: 0.65em; font-style: italic; }
.cinema.funny-markup .stage-r { margin-top: 130px; width: 50%; overflow: hidden }
.cinema.funny-markup .stage-r > h2 { display: block; padding: 0; height: 172px; background: url("img/logo-door.png") no-repeat left top; text-indent: -1000em }
.cinema.funny-markup .stage-r > p { margin: 10px 0 0 0; padding: 0; color: #999; font-family: 돋움, dotum, 굴림, gulim, sans-serif; font-size: 11px; letter-spacing:-1px; line-height: 1.9 }
.cinema.funny-markup .stage-r > p > strong { color: #fa8382; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size:12px; letter-spacing:0 }
#clean-code { display:block; margin: 0; padding: 15px; border: 3px solid #e4f4ff; border-radius: 8px; background-color: #fff; color: #808080; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size:13px; }
#clean-code .se { font-size:15px; font-weight: bold; }
#clean-code .pr { color: #fc7e42 }
#clean-code .va { color: #50a429 }
#clean-code .ch { color: #97bbc0 }
#clean-code .co { color: #cacaca; font-family: 돋움, dotum, 굴림, gulim, sans-serif; font-size: 11px; letter-spacing:-1px }

#home-sample { display:block; position:relative; top: 5px; padding: 4px; margin: 0: auto; border: 3px solid #ddf0fc; border-radius: 8px; background-color: #fff; box-shadow: 0 3px 12px rgba(43, 150, 241, 0.15); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size:16px; overflow:hidden; color:#77a5c7 }
#home-sample > .header,
#home-sample > .promo,
#wrapper > .s1,
#wrapper > .s2,
#wrapper > .content,
#home-sample > .footer { padding: 20px 15px; border-radius: 4px; background-color: #e3f3ff  }
#wrapper { overflow: hidden }
#wrapper > .s1,
#wrapper > .s2 { display: none; }
#wrapper.sc > .s1 { display: block; float: left; margin-right: 4px }
#wrapper.cs > .s1 { display: block; float: right; margin-left: 4px }
#wrapper.ssc > .s1,
#wrapper.ssc > .s2 { display: block; float: left; margin-right: 4px }
#wrapper.css > .s1,
#wrapper.css > .s2 { display: block; float: right; margin-left: 4px }
#wrapper.scs > .s1 { display: block; float: left; margin-right: 4px }
#wrapper.scs > .s2 { display: block; float: right; margin-left: 4px }

#home-sample > .header { margin-bottom: 4px; }
#home-sample > .promo { margin-bottom: 4px; padding: 50px 15px; text-align: center }
#wrapper {  margin:0 auto 4px auto }
#wrapper > .s1 { width: 80px }
#wrapper > .s2 { width: 80px }
#wrapper > .content { overflow:hidden }

/**
 * 키프레임
 * --------------------------------------------------------------------------
 */

/* 배경 루프 */
@keyframes masthead {
 0% { background-position: center 0; }
 100% { background-position: center -489px; }
}

@keyframes masthead-fast {
 0% { background-position: center 0; }
 100% { background-position: center -489px; }
}

/* Step 0 : 샘플 페이드-인 */
@keyframes samp-step-0 {
  0% { background-color: #ffdbdb; border-color:#fa8382; transform: scale(.3,.3) translate(0,-500px) rotate(0deg);  }
  100% { transform: scale(.3,.3) translate(0,0) rotate(-360deg); }
}

/* Step 1 : 샘플 페이드-인 */
@keyframes samp-step-1 {
  0% { transform: scale(.3,.3); }
  100% { transform: scale(1,1); }
}

/* Step 2 : 색상 강조 */
@keyframes samp-step-2 {
  0% { background-color: #e3f3ff; }
  100% { color: #fa8382; background-color: #ffdbdb; }
}

/* Step 3 : 높이 변경 1 */
@keyframes samp-step-3 {
  0% { padding: 50px 15px; }
  100% { padding: 20px 15px; }
}

/* Step 4 : 높이 변경 2 */
@keyframes samp-step-4 {
  0% { padding: 20px 15px; }
  100% { padding: 50px 15px; }
}

/* Step 5 : 너비 변경 */
@keyframes samp-step-5 {
  0% { width: 80px; }
  50% { width: 140px; }
  100% { width: 80px; }
}

/* 제조사 Prefix */
@-webkit-keyframes masthead {
 0% { background-position: center 0; }
 100% { background-position: center -489px; }
}

@-webkit-keyframes masthead-fast {
 0% { background-position: 0 0; }
 100% { background-position: 0 -489px; }
}

@-webkit-keyframes samp-step-0 {
  0% { background-color: #ffdbdb; border-color:#fa8382; -webkit-transform: scale(.3,.3) translate(0,-500px) rotate(0deg);  }
  100% { -webkit-transform: scale(.3,.3) translate(0,0) rotate(-360deg); }
}

@-webkit-keyframes samp-step-1 {
  0% { -webkit-transform: scale(.3,.3); }
  100% { -webkit-transform: scale(1,1); }
}

@-webkit-keyframes samp-step-2 {
  0% { background-color: #e3f3ff; }
  100% { color: #fa8382; background-color: #ffdbdb; }
}

@-webkit-keyframes samp-step-3 {
  0% { padding: 50px 15px; }
  100% { padding: 20px 15px; }
}

@-webkit-keyframes samp-step-4 {
  0% { padding: 20px 15px; }
  100% { padding: 50px 15px; }
}

@-webkit-keyframes samp-step-5 {
  0% { width: 80px; }
  50% { width: 140px; }
  100% { width: 80px; }
}

/**
 * 타임라인
 * --------------------------------------------------------------------------
 */

#home-sample,
#home-sample > .header,
#home-sample > .promo,
#wrapper > .s1,
#wrapper > .s2,
#wrapper > .content,
#home-sample > .footer { transform: scale(0,0); -webkit-transform: scale(0,0) }

.lt-ie10 #home-sample,
.lt-ie10 #home-sample > .header,
.lt-ie10 #home-sample > .promo,
.lt-ie10 #wrapper > .s1,
.lt-ie10 #wrapper > .s2,
.lt-ie10 #wrapper > .content,
.lt-ie10 #home-sample > .footer { transform: scale(1,1); -webkit-transform: scale(1,1) }

#home-sample {
	animation:
	samp-step-0 1s 2s ease-out forwards,
	samp-step-1 .5s 3s ease-out forwards;
	
	-webkit-animation:
	samp-step-0 1s 2s ease-out forwards,
	samp-step-1 .5s 3s ease-out forwards;
}

#home-sample > .header {
	animation: samp-step-1 .5s 4.5s ease-out forwards;
	-webkit-animation: samp-step-1 .5s 4.5s ease-out forwards
}

#home-sample > .promo {
	animation:
	samp-step-1 .5s 5s ease-out forwards,
	samp-step-2 .1s 8s 4 linear,
	samp-step-3 .5s 8.5s forwards;
	
	-webkit-animation:
	samp-step-1 .5s 5s ease-out forwards,
	samp-step-2 .1s 8s 4 linear,
	samp-step-3 .5s 8.5s forwards;
}

#wrapper > .s1 {
	animation:
	samp-step-1 .5s 5.5s ease-out forwards,
	samp-step-2 .1s 9s 4 linear,
	samp-step-4 .5s 9.5s forwards,
	samp-step-5 2s 10.5s;
	
	-webkit-animation:
	samp-step-1 .5s 5.5s ease-out forwards,
	samp-step-2 .1s 9s 4 linear,
	samp-step-4 .5s 9.5s forwards,
	samp-step-5 2s 10.5s;
}

#wrapper > .s2 {
	animation:
	samp-step-1 .5s 6s ease-out forwards,
	samp-step-2 .1s 9s 4 linear,
	samp-step-4 .5s 9.5s forwards,
	samp-step-5 2s 13s;
	
	-webkit-animation:
	samp-step-1 .5s 6s ease-out forwards,
	samp-step-2 .1s 9s 4 linear,
	samp-step-4 .5s 9.5s forwards,
	samp-step-5 2s 13s;
}

#wrapper > .content {
	animation:
	samp-step-1 .5s 6.5s ease-out forwards,
	samp-step-2 .1s 9s 4 linear,
	samp-step-4 .5s 9.5s forwards;
	
	-webkit-animation:
	samp-step-1 .5s 6.5s ease-out forwards,
	samp-step-2 .1s 9s 4 linear,
	samp-step-4 .5s 9.5s forwards;
}

#home-sample > .footer{
	animation: samp-step-1 .5s 7s ease-out forwards;
	-webkit-animation: samp-step-1 .5s 7s ease-out forwards;
}
              
            
!

JS

              
                
              
            
!
999px

Console