cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="marioContainer">
	<!-- 共通 -->
	<div class="cmn_1_6"></div>
	<div class="cmn_2_5"></div>
	<div class="cmn_3_5"></div>
	<div class="cmn_3_8"></div>
	<div class="cmn_3_11"></div>
	<div class="cmn_4_4"></div>
	<div class="cmn_4_5"></div>
	<div class="cmn_4_7"></div>
	<div class="cmn_4_11"></div>
	<div class="cmn_5_8"></div>
	<div class="cmn_5_12"></div>
	<div class="cmn_6_6"></div>
	<div class="cmn_7_6"></div>
	<div class="cmn_8_5"></div>
	<div class="cmn_8_7"></div>
	<div class="cmn_9_4"></div>
	<div class="cmn_9_9"></div>
	<div class="cmn_9_11"></div>
	<div class="cmn_10_3"></div>
	<div class="cmn_10_8"></div>
	<div class="cmn_11_3"></div>
	<div class="cmn_11_8"></div>
	<div class="cmn_11_11"></div>
	<div class="cmn_12_6"></div>
	<div class="cmn_13_5"></div>
	<div class="cmn_14_5"></div>
	<div class="cmn_14_10"></div>
	<!-- 変化 -->
	<div class="ts_0_13"></div>
	<div class="ts_2_14"></div>
	<div class="ts_3_13"></div>
	<div class="ts_4_14"></div>
	<div class="ts_5_15"></div>
	<div class="ts_6_14"></div>
	<div class="ts_7_13"></div>
	<div class="ts_8_3"></div>
	<div class="ts_8_11"></div>
	<div class="ts_8_12"></div>
	<div class="ts_9_2"></div>
	<div class="ts_9_7"></div>
	<div class="ts_9_8"></div>
	<div class="ts_9_10"></div>
	<div class="ts_9_12"></div>
	<div class="ts_9_13"></div>
	<div class="ts_10_1"></div>
	<div class="ts_10_9"></div>
	<div class="ts_10_13"></div>
	<div class="ts_10_15"></div>
	<div class="ts_11_4"></div>
	<div class="ts_11_5"></div>
	<div class="ts_11_6"></div>
	<div class="ts_11_7"></div>
	<div class="ts_11_8"></div>
	<div class="ts_11_10"></div>
	<div class="ts_11_12"></div>
	<div class="ts_11_13"></div>
	<div class="ts_11_14"></div>
	<div class="ts_12_3"></div>
	<div class="ts_12_5"></div>
	<div class="ts_12_12"></div>
	<div class="ts_13_3"></div>
	<div class="ts_14_2"></div>
	<div class="ts_14_4"></div>
	<div class="ts_14_8"></div>
	<div class="ts_14_11"></div>
	<div class="ts_15_1"></div>
	<div class="ts_15_4"></div>
	<div class="ts_15_7"></div>
	<div class="ts_15_11"></div>
	<div class="ts_16_3"></div>
	<div class="ts_16_11"></div>
</div>

<div class="base">Pure CSS</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Exo+2:900');

$r: #db2900;
$y: #ffa33c;
$g: #8a7301;
$t: transparent;
$b: #4d80ff;

@mixin p($t,$l,$w,$h,$color:transparent){
	top: $t*5px;
	left: $l*5px;
	width: $w*5px;
	height: $h*5px;
	background: $color;
}

@mixin bgt($n){
	animation: $n 1.5s infinite step-start;

}

@keyframes ts_a_r{
	0% {background: $t;}
	50% {background: $t;}
	100% {background: $r;}
}
@keyframes ts_a_y{
	0% {background: $t;}
	50% {background: $t;}
	100% {background: $y;}
}
@keyframes ts_a_g{
	0% {background: $t;}
	50% {background: $t;}
	100% {background: $g;}
}

@keyframes ts_r_a{
	0% {background: $r;}
	50% {background: $r;}
	100% {background: $t;}
}
@keyframes ts_r_y{
	0% {background: $r;}
	50% {background: $r;}
	100% {background: $y;}
}
@keyframes ts_r_g{
	0% {background: $r;}
	50% {background: $r;}
	100% {background: $g;}
}

@keyframes ts_y_a{
	0% {background: $y;}
	50% {background: $y;}
	100% {background: $t;}
}
@keyframes ts_y_r{
	0% {background: $y;}
	50% {background: $y;}
	100% {background: $r;}
}
@keyframes ts_y_g{
	0% {background: $y;}
	50% {background: $y;}
	100% {background: $g;}
}

@keyframes ts_g_a{
	0% {background: $g;}
	50% {background: $g;}
	100% {background: $t;}
}
@keyframes ts_g_r{
	0% {background: $g;}
	50% {background: $g;}
	100% {background: $r;}
}
@keyframes ts_g_y{
	0% {background: $g;}
	50% {background: $g;}
	100% {background: $y;}
}

body{
	background: $b;
}

.marioContainer{
	width: 90px;
	height: 85px;
	margin: 120px auto 0;
	position: relative;
	div{
		position: absolute;
	}
	animation: jump 1.5s infinite cubic-bezier(0,0,1,1);
}

@keyframes jump{
	0% {transform:translatey(0);}
	50% {transform:translatey(0);}
	68% {transform:translatey(-90px);}
	75% {transform:translatey(-100px);}
	82% {transform:translatey(-90px);}
	100% {transform:translatey(0);}
}

.base{
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	font-size: 24px;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 2px;
	text-shadow: 0 2px 0 #000;
	width: 160px;
	height: 80px;
	background: #c85f00;
	box-shadow: inset 0 0 0 2px #000;
	margin: 0 auto;
}

.cmn_1_6{
	@include p(1,6,5,1,$r);
}
.cmn_2_5{
	@include p(2,5,9,1,$r);
}
.cmn_3_5{
	@include p(3,5,7,1,$g);
}
.cmn_3_8{
	@include p(3,8,2,1,$y);
}
.cmn_3_11{
	@include p(3,11,1,1,$y);
}
.cmn_4_4{
	@include p(4,4,10,3,$g);
}
.cmn_4_5{
	@include p(4,5,1,2,$y);
}
.cmn_4_7{
	@include p(4,7,3,1,$y);
}
.cmn_4_11{
	@include p(4,11,3,1,$y);
}
.cmn_5_8{
	@include p(5,8,3,1,$y);
}
.cmn_5_12{
	@include p(5,12,3,1,$y);
}
.cmn_6_6{
	@include p(6,6,4,1,$y);
}
.cmn_7_6{
	@include p(7,6,7,1,$y);
}
.cmn_8_5{
	@include p(8,5,6,1,$g);
}
.cmn_8_7{
	@include p(8,7,1,1,$r);
}
.cmn_9_4{
	@include p(9,4,3,1,$g);
}
.cmn_9_9{
	@include p(9,9,1,1,$g);
}
.cmn_9_11{
	@include p(9,11,1,2,$g);
}
.cmn_10_3{
	@include p(10,3,4,1,$g);
}
.cmn_10_8{
	@include p(10,8,1,1,$r);
}
.cmn_11_3{
	@include p(11,3,1,1,$y);
}
.cmn_11_8{
	@include p(11,8,2,1,$r);
}
.cmn_11_11{
	@include p(11,11,1,1,$r);
}
.cmn_12_6{
	@include p(12,6,6,1,$r);
}
.cmn_13_5{
	@include p(13,5,8,1,$r);
}
.cmn_14_5{
	@include p(14,5,3,1,$r);
}
.cmn_14_10{
	@include p(14,10,1,1,$r);
}

.ts_0_13{
	@include p(0,13,3,2);
	@include bgt(ts_a_y);
}
.ts_2_14{
	@include p(2,14,2,1);
	@include bgt(ts_a_y);
}
.ts_3_13{
	@include p(3,13,3,1);
	@include bgt(ts_a_g);
}
.ts_4_14{
	@include p(4,14,2,1);
	@include bgt(ts_a_g);
}
.ts_5_15{
	@include p(5,15,1,1);
	@include bgt(ts_a_g);
}
.ts_6_14{
	@include p(6,14,1,1);
	@include bgt(ts_a_g);
}
.ts_7_13{
	@include p(7,13,1,1);
	@include bgt(ts_a_g);
}
.ts_8_3{
	@include p(8,3,2,1);
	@include bgt(ts_a_g);
}
.ts_8_11{
	@include p(8,11,1,1);
	@include bgt(ts_a_r);
}
.ts_8_12{
	@include p(8,12,1,1);
	@include bgt(ts_a_g);
}
.ts_9_2{
	@include p(9,2,2,1);
	@include bgt(ts_a_g);
}
.ts_9_7{
	@include p(9,7,1,2);
	@include bgt(ts_r_g);
}
.ts_9_8{
	@include p(9,8,1,1);
	@include bgt(ts_g_r);
}
.ts_9_10{
	@include p(9,10,1,2);
	@include bgt(ts_r_g);
}
.ts_9_12{
	@include p(9,12,1,2);
	@include bgt(ts_g_r);
}
.ts_9_13{
	@include p(9,13,1,2);
	@include bgt(ts_g_a);
}
.ts_10_1{
	@include p(10,1,2,3);
	@include bgt(ts_a_y);
}
.ts_10_9{
	@include p(10,9,1,1);
	@include bgt(ts_r_g);
}
.ts_10_13{
	@include p(10,13,2,1);
	@include bgt(ts_g_a);
}
.ts_10_15{
	@include p(10,15,1,4);
	@include bgt(ts_a_g);
}
.ts_11_4{
	@include p(11,4,1,2);
	@include bgt(ts_y_r);
}
.ts_11_5{
	@include p(11,5,1,1);
	@include bgt(ts_g_r);
}
.ts_11_6{
	@include p(11,6,1,1);
	@include bgt(ts_r_g);
}
.ts_11_7{
	@include p(11,7,1,1);
	@include bgt(ts_y_r);
}
.ts_11_8{
	@include p(11,8,1,1);
	@include bgt(ts_r_y);
}
.ts_11_10{
	@include p(11,10,1,1);
	@include bgt(ts_y_r);
}
.ts_11_12{
	@include p(11,12,1,1);
	@include bgt(ts_r_y);
}
.ts_11_13{
	@include p(11,13,1,3);
	@include bgt(ts_y_r);
}
.ts_11_14{
	@include p(11,14,1,3);
	@include bgt(ts_y_g);
}
.ts_12_3{
	@include p(12,3,1,1);
	@include bgt(ts_y_a);
}
.ts_12_5{
	@include p(12,5,1,1);
	@include bgt(ts_y_r);
}
.ts_12_12{
	@include p(12,12,1,1);
	@include bgt(ts_y_r);
}
.ts_13_3{
	@include p(13,3,2,1);
	@include bgt(ts_y_g);
}
.ts_14_2{
	@include p(14,2,2,2);
	@include bgt(ts_a_g);
}
.ts_14_4{
	@include p(14,4,2,2);
	@include bgt(ts_a_r);
}
.ts_14_8{
	@include p(14,8,2,1);
	@include bgt(ts_a_r);
}
.ts_14_11{
	@include p(14,11,2,1);
	@include bgt(ts_r_a);
}
.ts_15_1{
	@include p(15,1,1,1);
	@include bgt(ts_a_g);
}
.ts_15_4{
	@include p(15,4,3,1);
	@include bgt(ts_g_r);
}
.ts_15_7{
	@include p(15,7,1,1);
	@include bgt(ts_a_r);
}
.ts_15_11{
	@include p(15,11,3,1);
	@include bgt(ts_g_a);
}
.ts_16_3{
	@include p(16,3,4,1);
	@include bgt(ts_g_a);
}
.ts_16_11{
	@include p(16,11,4,1);
	@include bgt(ts_g_a);
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console