HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="container clearfix">
<div class="charWrap ke">
<div class="charF ke_1"></div>
<div class="charF ke_2"></div>
<div class="charF ke_3"></div>
<div class="charF ke_4"></div>
<div class="charR ke_1"></div>
<div class="charR ke_2"></div>
<div class="charR ke_3"></div>
<div class="ke_4R"></div>
</div>
<div class="charWrap mo">
<div class="charF mo_1"></div>
<div class="charF mo_2"></div>
<div class="charF mo_3"></div>
<div class="charF mo_4"></div>
<div class="charF mo_5"></div>
<div class="charF mo_6"></div>
<div class="charF mo_7"></div>
<div class="charR mo_3"></div>
<div class="charR mo_4"></div>
<div class="charR mo_5"></div>
<div class="mo_6R"></div>
<div class="mo_7R"></div>
</div>
<div class="charWrap no">
<div class="charF no_1Wrap"><div class="charF no_1"></div><div class="charR no_1"></div></div>
<div class="charF no_2"></div>
<div class="charR no_2"></div>
<div class="charF no_3Wrap"><div class="charF no_3"></div><div class="charR no_3"></div></div>
<div class="charF no_4Wrap"><div class="charF no_4"></div><div class="charR no_4"></div></div>
<div class="charF no_5"></div>
<div class="charR no_5"></div>
<div class="charF no_6"></div>
<div class="charF no_7Wrap"><div class="charF no_7_1"></div><div class="charF no_7_2"></div></div>
<div class="charF no_8Wrap"><div class="charF no_8"></div><div class="charR no_8"></div></div>
<div class="charF no_9"></div>
<div class="charF no_10Wrap"><div class="charF no_10"></div><div class="charR no_10"></div></div>
<div class="charF no_11"></div>
</div>
<div class="charWrap fu">
<div class="charF fu_1"></div>
<div class="charF fu_2"></div>
<div class="charF fu_3"></div>
<div class="charF fu_4"></div>
<div class="charR fu_1" style="border-radius:4px 0"></div>
<div class="charR fu_2"></div>
<div class="charR fu_3"></div>
<div class="fu_4R"></div>
</div>
<div class="charWrap re">
<div class="charF re_1"></div>
<div class="charF re_2"></div>
<div class="charF re_3"></div>
<div class="charF re_4"></div>
<div class="charR re_1"></div>
<div class="charR re_2"></div>
<div class="charR re_3" style="border-radius:4px 0"></div>
<div class="re_4R"></div>
</div>
<div class="charWrap nn">
<div class="charF nn_1"></div>
<div class="charF nn_2"></div>
<div class="charF nn_3"></div>
<div class="charF nn_4"></div>
<div class="charF nn_5"></div>
<div class="charF nn_6"></div>
<div class="charF nn_7"></div>
<div class="charR nn_1"></div>
<div class="charR nn_5"></div>
<div class="charR nn_6"></div>
<div class="nn_2R"></div>
<div class="nn_3R"></div>
<div class="nn_4R"></div>
<div class="nn_7R"></div>
<div class="nn_R"></div>
</div>
<div class="charWrap zu">
<div class="charF zu_1"></div>
<div class="charF zu_2"></div>
<div class="charR zu_1"></div>
<div class="charR zu_2"></div>
<div class="charF zu_3Wrap"><div class="charF zu_3"></div><div class="charR zu_3"></div></div>
<div class="charF zu_4Wrap"><div class="charF zu_4_1"></div><div class="charF zu_4_2"></div></div>
<div class="charF zu_5Wrap"><div class="charF zu_5_1"></div><div class="charF zu_5_2"></div></div>
<div class="charF zu_6"></div>
<div class="charF zu_7"></div>
<div class="charF zu_6R"></div>
<div class="charF zu_7R"></div>
</div>
</div>
<p>KEMONO FRIENDS</p>
@mixin size($w,$h){
width: ($w - 10px);
height: ($h - 10px);
margin: 5px;
}
@mixin tri($size){
width: 0;
height: 0;
border: $size solid transparent;
}
@import url('https://fonts.googleapis.com/css?family=Russo+One');
.clearfix::after {
content: "";
display: block;
clear: both;
}
body{
background: #64573B;
}
.container{
width: 520px;
margin: 24px auto;
clear: both;
}
p{
margin-top: 18px;
color: #97792D;
font-size: 14px;
font-family: 'Russo One', sans-serif;
letter-spacing: 12px;
text-align: center;
text-shadow: 2px 0 0 #fff,-2px 0 0 #fff,0 2px 0 #fff,0 -2px 0 #fff;
}
div{
box-sizing: border-box;
}
.charWrap{
position: relative;
z-index: -10;
height: 80px;
float: left;
}
.charF{
position: absolute;
z-index: 3;
}
.charR{
position: absolute;
box-shadow: 0 0 0 5px #fff;
z-index: 0;
}
.ke{
width: 75px;
}
.ke_1{
top: 15px;
left: 0;
@include size(35px,50px);
background: linear-gradient(-50deg,#90C31F 19%,#189659 21%,#14AE67 26%);
border-radius: 4px;
}
.ke_2{
top: 8px;
left: 28px;
@include size(20px,25px);
background: #14AE67;
border-radius: 4px;
}
.ke_3{
top: 0;
right: 6px;
@include size(35px,80px);
background: linear-gradient(-50deg,#90C31F 70%,#189659 71%,#14AE67 75%);
border-radius: 4px;
}
.ke_4{
top: 13px;
right: 1px;
z-index: 2;
@include tri(10px);
border-top: 10px solid #90C31F;
}
.ke_4R{
position: absolute;
top: 8px;
right: -12px;
z-index: 1;
width: 20px;
height: 32px;
background: #fff;
}
.mo{
width: 66px;
}
.mo_1{
top: 2px;
left: -4px;
@include tri(10px);
border-bottom: 10px solid #F39800;
}
.mo_2{
top: 14px;
left: -4px;
@include tri(10px);
border-bottom: 10px solid #F39800;
}
.mo_3{
top: 0;
left: 0;
@include size(38px,80px);
background: linear-gradient(80deg,#F39800 59%,#B9451E 62%,#EA5420 68%);
border-radius: 4px;
}
.mo_4{
bottom: 0;
right: 7px;
@include size(33px,30px);
background: #EA5420;
}
.mo_5{
bottom: 0;
right: 0;
@include size(33px,42px);
background: #EA5420;
border-radius: 4px;
}
.mo_6{
top: 12px;
left: 22px;
@include tri(10px);
border-top: 10px solid #EA5420;
}
.mo_7{
top: 22px;
left: 22px;
@include tri(10px);
border-top: 10px solid #EA5420;
}
.mo_6R{
position: absolute;
top: 5px;
left: 26px;
width: 16px;
height: 30px;
background: #fff;
border-radius: 8px;
transform: rotate(45deg);
}
.mo_7R{
position: absolute;
top: 12px;
left: 26px;
width: 16px;
height: 30px;
background: #fff;
border-radius: 8px;
transform: rotate(45deg);
}
.no{
width: 80px;
}
.no_1Wrap{
overflow: hidden;
bottom: 3px;
left: 0;
width: 104px;
height: 18px;
transform-origin: bottom;
transform: rotate(-20deg);
}
.no_1{
bottom: 9px;
left: 3px;
width: 51px;
height: 51px;
margin: 0;
background: #00AC8E;
border-radius: 50%;
transform-origin: bottom;
transform: rotate(20deg);
}
.no_2{
bottom: 4px;
left: 0;
z-index: 2;
width: 50px;
height: 50px;
background: #E3007F;
border-radius: 50%;
}
.no_3Wrap{
overflow: hidden;
bottom: 60px;
left: -26px;
z-index: 5;
width: 110px;
height: 19px;
transform-origin: bottom;
transform: rotate(-55deg);
}
.no_3{
top: 5px;
left: -1px;
width: 75px;
height: 75px;
margin: 0;
background: #00AC8E;
border-radius: 50%;
}
.no_4Wrap{
overflow: hidden;
bottom: 23px;
left: 1px;
width: 100px;
height: 55px;
}
.no_4{
top: 9px;
left: 0;
z-index: 1;
width: 75px;
height: 75px;
margin: 0;
background: #E3007F;
border-radius: 50%;
}
.no_5{
bottom: 4px;
right: 7px;
z-index: 1;
width: 18px;
height: 31px;
margin: 0;
background: #00AC8E;
border-radius: 0 19px 26px 19px;
transform: rotate(24deg);
}
.no_6{
bottom: 23px;
right: 4px;
z-index: 5;
width: 0;
height: 0;
margin: 0;
border-top: 4px solid transparent;
border-right: 10px solid #00AC8E;
border-bottom: 4px solid #00AC8E;
border-left: 10px solid transparent;
border-radius: 0 0 4px 0;
}
.no_7Wrap{
overflow: hidden;
bottom: 22px;
left: 6px;
width: 50px;
height: 50px;
z-index: 6;
}
.no_7_1{
bottom: -12px;
right: 0;
z-index: 1;
width: 32px;
height: 36px;
margin: 0;
background: #fff;
border-radius: 16px;
}
.no_7_2{
bottom: -14px;
right: 5px;
z-index: 1;
width: 22px;
height: 32px;
margin: 0;
background: #E3007F;
border-radius: 11px;
}
.no_8Wrap{
overflow: hidden;
top: 0px;
left: -25px;
width: 35px;
height: 35px;
z-index: 6;
transform: rotate(-45deg);
}
.no_8{
top: 20px;
left: 20px;
z-index: 1;
width: 35px;
height: 35px;
background: #00AC8E;
border-radius: 50%;
}
.no_9{
top: 0px;
left: 7px;
z-index: 1;
width: 7px;
height: 20px;
background: #fff;
border-radius: 4px;
transform: rotate(-45deg);
}
.no_10Wrap{
overflow: hidden;
top: 0px;
right: -22px;
width: 35px;
height: 35px;
z-index: 6;
transform: rotate(135deg);
}
.no_10{
top: 20px;
left: 20px;
z-index: 1;
width: 35px;
height: 35px;
background: #E3007F;
border-radius: 50%;
}
.no_11{
top: 6px;
right: 4px;
z-index: 1;
width: 20px;
height: 7px;
background: #fff;
border-radius: 4px;
transform: rotate(135deg);
}
.fu{
width: 72px;
margin-left: -5px;
}
.fu_1{
top: 0;
left: 0;
@include size(65px,31px);
background: linear-gradient(70deg,#01A0E9 34%,#216FA7 39%,#217FC4 41%);
border-radius: 4px;
}
.fu_2{
top: 0;
right: 4px;
@include size(38px,80px);
background: linear-gradient(70deg,#01A0E9 18%,#216FA7 23%,#217FC4 25%);
border-radius: 4px;
}
.fu_3{
bottom: 0;
right: 30px;
@include size(28px,32px);
background: #01A0E9;
border-radius: 4px 0 0 4px;
}
.fu_4{
top: 0;
right: 2px;
z-index: 8;
border-top: 14px solid #217FC4;
border-right: 8px solid transparent;
border-bottom: 14px solid transparent;
border-left: 8px solid transparent;
margin-top: 5px;
}
.fu_4R{
position: absolute;
top: 0;
right: -12px;
@include tri(20px);
border-top: 20px solid #fff;
}
.re{
width: 72px;
margin-left: -4px;
}
.re_1{
top: 0;
left: 0;
@include size(40px,80px);
background: linear-gradient(-15deg,#b9bAbA 71%,#666 73%,#9FA0A0 75%);
border-radius: 4px;
}
.re_2{
bottom: 0;
left: 28px;
@include size(20px,31px);
background: #b9bAbA;
}
.re_3{
bottom: 0;
right: 0px;
@include size(36px,45px);
background: linear-gradient(-55deg,#9FA0A0 36%,#555 39%,#b9bAbA 42%);
border-radius: 4px 4px 4px 0;
}
.re_4{
top: 0;
left: 25px;
@include tri(10px);
border-top: 10px solid #9FA0A0;
margin-top: 5px;
}
.re_4R{
position: absolute;
top: 0;
left: 16px;
@include tri(20px);
border-top: 20px solid #fff;
border-radius: 8px;
}
.nn{
width: 72px;
margin-left: -4px;
}
.nn_1{
top: 0;
left: 0;
@include size(40px,40px);
background: linear-gradient(65deg,#F39800 42%,#B90712 45%,#E60012 48%);
border-radius: 50%;
}
.nn_2{
top: -6px;
left: -6px;
border-top: 9px solid transparent;
border-right: 6px solid transparent;
border-bottom: 9px solid #F39800;
border-left: 6px solid transparent;
transform: rotate(-45deg);
}
.nn_3{
top: -16px;
left: 11px;
border-top: 10px solid transparent;
border-right: 6px solid transparent;
border-bottom: 10px solid #E60012;
border-left: 6px solid transparent;
transform: rotate(-6deg);
}
.nn_4{
top: -12px;
left: 30px;
border-top: 10px solid transparent;
border-right: 6px solid transparent;
border-bottom: 10px solid #E60012;
border-left: 6px solid transparent;
transform: rotate(28deg);
}
.nn_5{
top: 0;
right: 0;
@include size(38px,80px);
background: linear-gradient(65deg,#F39800 5%,#B90712 8%,#E60012 11%);
border-radius: 4px 4px 4px 0;
}
.nn_6{
bottom: 0;
left: 0;
@include size(45px,32px);
background: linear-gradient(65deg,#F39800 85%,#B90712 88%,#E60012 91%);
border-radius: 4px 0 0 4px;
}
.nn_7{
top: 5px;
right: -2px;
z-index: 8;
border-top: 14px solid #E60012;
border-right: 8px solid transparent;
border-bottom: 14px solid transparent;
border-left: 8px solid transparent;
}
.nn_2R{
position: absolute;
top: -17px;
left: -14px;
width: 0;
height: 0;
border-top: 16px solid transparent;
border-right: 10px solid transparent;
border-bottom: 16px solid #fff;
border-left: 10px solid transparent;
transform: rotate(-45deg);
}
.nn_3R{
position: absolute;
top: -28px;
left: 6px;
width: 0;
height: 0;
border-top: 16px solid transparent;
border-right: 10px solid transparent;
border-bottom: 16px solid #fff;
border-left: 10px solid transparent;
transform: rotate(-6deg);
}
.nn_4R{
position: absolute;
top: -24px;
left: 29px;
width: 0;
height: 0;
border-top: 16px solid transparent;
border-right: 10px solid transparent;
border-bottom: 16px solid #fff;
border-left: 10px solid transparent;
transform: rotate(28deg);
}
.nn_7R{
position: absolute;
top: 0;
right: -11px;
z-index: 2;
border-top: 28px solid #fff;
border-right: 16px solid transparent;
border-bottom: 28px solid transparent;
border-left: 16px solid transparent;
}
.nn_R{
position: absolute;
bottom: 18px;
left: -6px;
z-index: 1;
@include size(45px,32px);
background: #fff;
}
.zu{
width: 80px;
margin-left: 4px;
}
.zu_1{
top: 0;
left: 0;
@include size(70px,34px);
background: linear-gradient(105deg,#C3D600 55%,#A52E8D 58%);
border-radius: 4px 0 0 4px;
}
.zu_2{
top: 2px;
left: -14px;
@include size(84px,33px);
background: linear-gradient(150deg,#C3D600 50%,#A52E8D 53%);
border-radius: 4px 0 1px 4px;
transform-origin: right bottom;
transform: rotate(-45deg);
}
.zu_3Wrap{
overflow: hidden;
bottom: 10px;
left: 39px;
width: 80px;
height: 38px;
transform-origin: bottom;
transform: rotate(-45deg);
}
.zu_3{
bottom: 5px;
left: 5px;
width: 50px;
height: 50px;
margin: 0;
background: #A52E8D;
border-radius: 50%;
}
.zu_4Wrap{
overflow: hidden;
bottom: 21px;
right: 0;
width: 50px;
height: 50px;
z-index: 6;
}
.zu_4_1{
bottom: -12px;
right: 0;
z-index: 1;
width: 40px;
height: 38px;
margin: 0;
background: #fff;
border-radius: 50%;
}
.zu_4_2{
bottom: -11px;
right: 4px;
z-index: 1;
width: 32px;
height: 33px;
margin: 0;
background: #A52E8D;
border-radius: 50%;
}
.zu_5Wrap{
overflow: hidden;
bottom: 0;
right: 16px;
width: 50px;
height: 25px;
z-index: 6;
}
.zu_5_1{
top: -12px;
right: 0;
z-index: 1;
width: 24px;
height: 24px;
margin: 0;
background: #fff;
border-radius: 50%;
}
.zu_5_2{
top: -8px;
right: 4px;
z-index: 1;
width: 16px;
height: 16px;
margin: 0;
background: #A52E8D;
border-radius: 50%;
}
.zu_6{
top: -5px;
right: 9px;
z-index: 4;
border-top: 10px solid #A52E8D;
border-right: 8px solid transparent;
border-bottom: 10px solid transparent;
border-left: 8px solid #A52E8D;
}
.zu_7{
top: -5px;
right: -6px;
z-index: 4;
border-top: 10px solid #A52E8D;
border-right: 8px solid transparent;
border-bottom: 10px solid transparent;
border-left: 8px solid #A52E8D;
}
.zu_6R{
position: absolute;
top: -9px;
right: 1px;
z-index: 3;
border-top: 17px solid #fff;
border-right: 14px solid transparent;
border-bottom: 17px solid transparent;
border-left: 14px solid #fff;
}
.zu_7R{
position: absolute;
top: -9px;
right: -14px;
z-index: 3;
border-top: 17px solid #fff;
border-right: 14px solid transparent;
border-bottom: 17px solid transparent;
border-left: 14px solid #fff;
}
Also see: Tab Triggers