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 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.
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.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and 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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Skeleton css3 </title>
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<input type="checkbox" name="ctr" id="grid">
<input type="checkbox" name="ctr" id="fast">
<input type="checkbox" name="ctr" id="info">
<ul class="control__list">
<li>
<label for="grid" class="control__item control__item_grid">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 6h-6v-6h6v6zm9-6h-6v6h6v-6zm9 0h-6v6h6v-6zm-18 9h-6v6h6v-6zm9 0h-6v6h6v-6zm9 0h-6v6h6v-6zm-18 9h-6v6h6v-6zm9 0h-6v6h6v-6zm9 0h-6v6h6v-6z"/></svg>
</label>
</li>
<li>
<label for="fast" class="control__item control__item_fast">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14 12l-14 9v-18l14 9zm-4-9v4l8.022 5-8.022 5v4l14-9-14-9z"/></svg>
</label>
</li>
<li>
<label for="info" class="control__item control__item_info">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2.033 16.01c.564-1.789 1.632-3.932 1.821-4.474.273-.787-.211-1.136-1.74.209l-.34-.64c1.744-1.897 5.335-2.326 4.113.613-.763 1.835-1.309 3.074-1.621 4.03-.455 1.393.694.828 1.819-.211.153.25.203.331.356.619-2.498 2.378-5.271 2.588-4.408-.146zm4.742-8.169c-.532.453-1.32.443-1.761-.022-.441-.465-.367-1.208.164-1.661.532-.453 1.32-.442 1.761.022.439.466.367 1.209-.164 1.661z"/></svg>
</label>
</li>
<li class="author">
<a href="https://semenchenkov.github.io/">
© Semenchenko Elena
</a>
</li>
</ul>
<div class="info">
<h3 > walking skeleton <br> Episode 1. </h3>
<ul>
<li> - only css</li>
<li> - fixed width/height</li>
<li> - modern browser</li>
</ul>
<span>to be continued ...</span>
</div>
<div class="episode">
<div class="man">
<div class="grid-s">
<div class="grid">
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
<i class="x"></i>
</div>
<div class="grid">
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
<i class="y"></i>
</div>
</div>
<div class="axis">
<div class="ab torso">
<div class="ab neck"> <!-- <<< Шея -->
<div class="ab head"> <!-- <<< Голова >>> --> </div>
</div>
<div class="ab arm arm_left"> <!-- <<< Рука левая -->
<div class="ab shoulder shoulder_left">
<div class="ab forearm forearm_left">
<div class="ab hend hend_left">
</div>
</div>
</div>
</div>
<div class="ab body"></div> <!-- <<< Тело -->
<div class="ab arm arm_right"> <!-- <<< Рука правая -->
<div class="ab shoulder shoulder_right">
<div class="ab forearm forearm_right">
<div class="ab hend hend_right">
</div>
</div>
</div>
</div>
<!-- <<< Ноги >>> -->
<div class="leg-s">
<div class="ab leg leg_left">
<div class="ab hip hip_left">
<div class="ab knee knee_left"> </div>
<div class="ab shin shin_left">
<div class="ab foot foot_left">
<div class="ab toe toe_left"> </div>
</div>
</div>
</div>
</div>
<div class="ab leg leg_right">
<div class="ab hip hip_right">
<div class="ab knee knee_right"> </div>
<div class="ab shin shin_right">
<div class="ab foot foot_right">
<div class="ab toe toe_right"> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="level">
</div>
</div>
</div>
</body>
</html>
/*!*/ /* ------------------------------------------ <<<= Helper style */
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
body {
background: #fff;
font-size: 1rem;
line-height: 1.5rem;
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
font-style: normal;
}
.container {
position: relative;
height: 100%;
}
.control__list {
position: absolute;
z-index: 7;
top: 2rem;
list-style-type: none;
}
.control__item {
display: block;
width: 5rem;
padding: .5rem .75rem;
margin: .5rem 0;
text-align: center;
text-transform: lowercase;
cursor: pointer;
font-size: .75rem;
color: #333;
}
.control__item svg {
-webkit-transition: all .27s ease-out;
transition: all .27s ease-out;
fill: aliceblue;
}
[type="checkbox"] {
display: none;
}
#grid:checked ~ .episode .man .grid-s {
display: block;
}
#grid:checked ~ .episode .man .grid {
background: rgba(255, 255, 255, .12);
}
#info:checked ~ .control__list .control__item_info svg,
#fast:checked ~ .control__list .control__item_fast svg,
#grid:checked ~ .control__list .control__item_grid svg,
.control__item:hover svg {
fill: coral;
}
.info {
position: absolute;
top: 7rem;
left: 7rem;
z-index: 10;
font-size: .75rem;
padding: 1rem 2rem;
border-radius: 5px;
background: aliceblue;
color: #333;
border: 1px solid rgba(183, 179, 179, 0.34);
-webkit-box-shadow: inset 0px -5px 20px rgba(17, 17, 17, 0.17);
box-shadow: inset 0px -5px 20px rgba(17, 17, 17, 0.17);
opacity: 0;
-webkit-transition: all .27s ease-in-out;
transition: all .27s ease-in-out;
-webkit-transform: translateX(-150%);
transform: translateX(-150%);
}
#info:checked ~ .info {
opacity: 1;
-webkit-transform: translateX(0%);
transform: translateX(0%);
}
.info h3 {
text-transform: uppercase;
}
.info ul {
list-style-type: none;
padding: 0;
}
.info span {
color: coral;
font-style: italic;
}
.author a {
display: block;
font-size: .8rem;
color: aliceblue;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
-webkit-transition: all .27s ease-in-out;
transition: all .27s ease-in-out;
-webkit-transform-origin: 7rem 5rem;
transform-origin: 7rem 5rem;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.author a:hover {
color: coral;
}
/* ------------------------------------------ <<<= Эпизод */
.episode {
height: 700px;
width: 700px;
padding: 2rem;
overflow: hidden;
position: relative;
border-top: 2rem solid #111;
border-bottom: 2rem solid #111;
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/bg.png);
background-repeat: repeat-x;
background-position: 0px 0px;
-webkit-background-size: auto 100%;
background-size: auto 100%;
animation: bg 25s linear infinite;
}
@keyframes bg {
0% { background-position: 0px 0px; }
100% { background-position: -1034px 0px; }
}
/* ------------------------------------------ <<<= Трава */
.level {
height: .5rem;
position: absolute;
left: 0;
right: 0;
bottom: .75rem;
}
/* ------------------------------------------ <<<= Обертка персонажа */
.man {
width: 27rem; /*!*/
height: 34rem; /*!*/
margin-left: 5rem; /*!*/
position: absolute;
bottom: .25rem;
}
/* ------------------------------------------ <<<= Сетка */
.grid {
position: absolute;
left: 0;
right: 0;
top: .85rem;
bottom: 0;
background: rgba(255, 255, 255, 0);
}
.grid-s {
display: none;
}
.grid i {
display: block;
background: rgba(238, 238, 238, 0.52);
}
.x {
width: 100%;
float: none;
height: 1px;
}
.x+.x {
margin-top: 2rem;
}
.y {
width: 1px;
height: 100%;
float: left;
}
.y+.y {
margin-left: 2rem;
}
/* ------------------------------------------ <<<= Вспомогательные классы */
.ab {
position: absolute;
width: 1.7rem;
border-radius: 10px;
/* background: rgba(187, 187, 187, 0.32);
border: 1px solid #bbb; */
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
}
.ab_left {
background: rgba(187, 187, 187, 0.72);
border: 1px solid #bbb;
}
.ab_right {
background: rgba(119, 119, 119, 0.72);
border: 1px solid #bbb;
}
/* ------------------------------------------ <<<= Ось персонажа */
.axis {
width: 1px; /*!*/
height: 100%; /*!*/
position: relative;
margin-left: 12.4rem;
}
/* ------------------------------------------ <<<= Анимация */
.head {
-webkit-transform-origin: 40% 100%;
transform-origin: 40% 100%;
}
/* ------------------------------------------ <<<= Анимация торс */
.torso {
-webkit-transform-origin: 0% 100%;
transform-origin: 0% 100%;
}
.arm,
.hip,
.shoulder {
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
}
.forearm {
-webkit-transform-origin: 10px 5px;
transform-origin: 10px 5px;
}
.hend {
-webkit-transform-origin: 7px 2px;
transform-origin: 7px 2px;
}
.shin,
.foot {
-webkit-transform-origin: 17px -2px;
transform-origin: 17px -2px;
}
.toe {
-webkit-transform-origin: 12px 8px;
transform-origin: 12px 8px;
}
/* ------------------------------------------ <<<= Анимация голова */
.head {
-webkit-animation-name: head;
animation-name: head;
}
/* ------------------------------------------ <<<= Анимация торс */
.torso {
-webkit-animation-name: torso;
animation-name: torso;
}
/* ------------------------------------------ <<<= Анимация рука */
.shoulder_left {
-webkit-animation-name: shoulder-left;
animation-name: shoulder-left;
}
.shoulder_right {
-webkit-animation-name: shoulder-right;
animation-name: shoulder-right;
}
.forearm_left {
-webkit-animation-name: forearm-left;
animation-name: forearm-left;
}
.forearm_right {
-webkit-animation-name: forearm-right;
animation-name: forearm-right;
}
.hend_left {
-webkit-animation-name: hend-left;
animation-name: hend-left;
}
.hend_right {
-webkit-animation-name: hend-right;
animation-name: hend-right;
}
/* ------------------------------------------ <<<= Анимация бедро */
.hip_left {
-webkit-animation-name: hip-left;
animation-name: hip-left;
}
.hip_right {
-webkit-animation-name: hip-right;
animation-name: hip-right;
}
/* ------------------------------------------ <<<= Анимация голень */
.shin_right {
-webkit-animation-name: shin-right;
animation-name: shin-right;
}
.shin_left {
-webkit-animation-name: shin-left;
animation-name: shin-left;
}
/* ------------------------------------------ <<<= Анимация колено */
.knee_right {
-webkit-animation-name: knee-right;
animation-name: knee-right;
}
.knee_left {
-webkit-animation-name: knee-left;
animation-name: knee-left;
}
/* ------------------------------------------ <<<= Анимация стопа */
.foot_right {
-webkit-animation-name: foot-right;
animation-name: foot-right;
}
.foot_left {
-webkit-animation-name: foot-left;
animation-name: foot-left;
}
/* ------------------------------------------ <<<= Анимация ступня */
.toe_right {
-webkit-animation-name: toe-right;
animation-name: toe-right;
}
.toe_left {
-webkit-animation-name: toe-left;
animation-name: toe-left;
}
@-webkit-keyframes head {
50% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); }
}
@-webkit-keyframes torso {
50% { -webkit-transform: rotate(5deg) translateY(7px); transform: rotate(5deg) translateY(7px); }
}
@-webkit-keyframes shoulder-left {
0%, 100% { -webkit-transform: rotate(-25deg); transform: rotate(-25deg); }
50% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
}
@-webkit-keyframes shoulder-right {
0%, 100% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
50% { -webkit-transform: rotate(-25deg); transform: rotate(-25deg); }
}
@-webkit-keyframes forearm-left {
0%, 100% { -webkit-transform: rotate(-40deg); transform: rotate(-40deg); }
50% { -webkit-transform: rotate(15deg); transform: rotate(15deg); }
}
@-webkit-keyframes forearm-right {
0%, 100% { -webkit-transform: rotate(15deg); transform: rotate(15deg); }
50% { -webkit-transform: rotate(-40deg); transform: rotate(-40deg); }
}
@-webkit-keyframes hend-right {
0%, 100% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
50% { -webkit-transform: rotate(-20deg); transform: rotate(-20deg); }
}
@-webkit-keyframes hend-left {
0%, 100% { -webkit-transform: rotate(-20deg); transform: rotate(-20deg); }
50% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
}
@-webkit-keyframes hip-right {
0% { -webkit-transform: rotate(-20deg); ransform: rotate(-20deg); }
50% { -webkit-transform: rotate(20deg); ransform: rotate(20deg); }
100% { -webkit-transform: rotate(-20deg); ransform: rotate(-20deg); }
}
@-webkit-keyframes hip-left {
0% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
50% { -webkit-transform: rotate(-20deg); transform: rotate(-20deg); }
100% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
}
@-webkit-keyframes shin-right {
0%, 50% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
75% { -webkit-transform: rotate(50deg); transform: rotate(50deg); animation-timing-function: ease-in;}
}
@-webkit-keyframes shin-left {
0%, 50% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
25% { -webkit-transform: rotate(50deg); transform: rotate(50deg); animation-timing-function: ease-in;}
}
@-webkit-keyframes knee-right {
0%, 50% { -webkit-transform: translateY(0px); transform: translateY(0px); }
75% { -webkit-transform: rotate(32deg) translateY(5px); transform: rotate(32deg) translateY(5px); animation-timing-function: ease-in;}
}
@-webkit-keyframes knee-left {
0%, 50% { -webkit-transform: translateY(0px); transform: translateY(0px); }
25% { -webkit-transform: rotate(32deg) translateY(5px); transform: rotate(32deg) translateY(5px); animation-timing-function: ease-in;}
}
@-webkit-keyframes foot-right {
5% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
15% { -webkit-transform: rotate(15deg); transform: rotate(15deg); }
25% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
45% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
95% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); animation-timing-function: ease-in;}
}
@-webkit-keyframes foot-left {
55% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
60% { -webkit-transform: rotate(10deg); transform: rotate(10deg); animation-timing-function: ease-in;}
85% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
5% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
}
@-webkit-keyframes toe-left {
5% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
50% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
25% { -webkit-transform: rotate3d(1, -1, 1, -45deg); transform: rotate3d(1, -1, 1, -45deg); animation-timing-function: ease-in-out;}
}
@-webkit-keyframes toe-right {
5% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
50% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
75% { -webkit-transform: rotate3d(1, -1, 1, -45deg); transform: rotate3d(1, -1, 1, -45deg); animation-timing-function: ease-in-out;}
}
@keyframes head {
50% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); }
}
@keyframes torso {
50% { -webkit-transform: rotate(5deg) translateY(7px); transform: rotate(5deg) translateY(7px); }
}
@keyframes shoulder-left {
0%, 100% { -webkit-transform: rotate(-25deg); transform: rotate(-25deg); }
50% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
}
@keyframes shoulder-right {
0%, 100% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
50% { -webkit-transform: rotate(-25deg); transform: rotate(-25deg); }
}
@keyframes forearm-left {
0%, 100% { -webkit-transform: rotate(-40deg); transform: rotate(-40deg); }
50% { -webkit-transform: rotate(15deg); transform: rotate(15deg); }
}
@keyframes forearm-right {
0%, 100% { -webkit-transform: rotate(15deg); transform: rotate(15deg); }
50% { -webkit-transform: rotate(-40deg); transform: rotate(-40deg); }
}
@keyframes hend-right {
0%, 100% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
50% { -webkit-transform: rotate(-20deg); transform: rotate(-20deg); }
}
@keyframes hend-left {
0%, 100% { -webkit-transform: rotate(-20deg); transform: rotate(-20deg); }
50% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
}
@keyframes hip-right {
0% { -webkit-transform: rotate(-20deg); ransform: rotate(-20deg); }
50% { -webkit-transform: rotate(20deg); ransform: rotate(20deg); }
100% { -webkit-transform: rotate(-20deg); ransform: rotate(-20deg); }
}
@keyframes hip-left {
0% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
50% { -webkit-transform: rotate(-20deg); transform: rotate(-20deg); }
100% { -webkit-transform: rotate(20deg); transform: rotate(20deg); }
}
@keyframes shin-right {
0%, 50% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
75% { -webkit-transform: rotate(50deg); transform: rotate(50deg); animation-timing-function: ease-in;}
}
@keyframes shin-left {
0%, 50% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
25% { -webkit-transform: rotate(50deg); transform: rotate(50deg); animation-timing-function: ease-in;}
}
@keyframes knee-right {
0%, 50% { -webkit-transform: translateY(0px); transform: translateY(0px); }
75% { -webkit-transform: rotate(32deg) translateY(5px); transform: rotate(32deg) translateY(5px); animation-timing-function: ease-in;}
}
@keyframes knee-left {
0%, 50% { -webkit-transform: translateY(0px); transform: translateY(0px); }
25% { -webkit-transform: rotate(32deg) translateY(5px); transform: rotate(32deg) translateY(5px); animation-timing-function: ease-in;}
}
@keyframes foot-right {
5% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
15% { -webkit-transform: rotate(15deg); transform: rotate(15deg); }
25% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
45% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
95% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); animation-timing-function: ease-in;}
}
@keyframes foot-left {
55% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
60% { -webkit-transform: rotate(10deg); transform: rotate(10deg); animation-timing-function: ease-in;}
85% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); }
5% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
}
@keyframes toe-left {
5% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
50% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
25% { -webkit-transform: rotate3d(1, -1, 1, -45deg); transform: rotate3d(1, -1, 1, -45deg); animation-timing-function: ease-in-out;}
}
@keyframes toe-right {
5% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
50% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
75% { -webkit-transform: rotate3d(1, -1, 1, -45deg); transform: rotate3d(1, -1, 1, -45deg); animation-timing-function: ease-in-out;}
}
.head,
.torso,
.shoulder,
.forearm,
.hend,
.hip,
.shin,
.foot,
.toe,
.knee {
-webkit-animation-duration: 2.7s;
animation-duration: 2.7s;
}
#fast:checked ~ .episode {
-webkit-animation-duration: 15s;
animation-duration: 15s;
}
#fast:checked ~ .episode .man .head,
#fast:checked ~ .episode .man .torso,
#fast:checked ~ .episode .man .shoulder,
#fast:checked ~ .episode .man .forearm,
#fast:checked ~ .episode .man .hend,
#fast:checked ~ .episode .man .hip,
#fast:checked ~ .episode .man .shin,
#fast:checked ~ .episode .man .foot,
#fast:checked ~ .episode .man .toe,
#fast:checked ~ .episode .man .knee {
-webkit-animation-duration: 2s;
animation-duration: 2s;
}
/* ------------------------------------------ <<<= Позиционирование */
.head {
top: 1rem;
height: 3.4rem;
}
.neck {
top: -1.7rem;
height: 1.7rem;
}
.torso {
top: 6.1rem;
z-index: 2;
height: 13.05rem;
}
.arm {
top: 1.07rem;
left: 1.5rem;
}
.shoulder {
height: 5.95rem;
}
.forearm {
top: 5.95rem;
height: 5.1rem;
}
.hend {
top: 5.1rem;
height: 2.55rem;
}
.leg {
top: 11.15rem;
left: 1.9rem;
}
.hip {
top: 0rem;
height: 9.35rem;
}
.shin {
top: 8.85rem;
height: 6.8rem;
}
.knee {
height: 1.7rem;
width: .7rem;
left: 1.7rem;
top: 7.65rem;
}
.foot {
top: 6.02rem;
width: 3.4rem;
height: 1.7rem;
left: -.7rem;
}
.toe {
top: 0rem;
left: 3.4rem;
width: 1.7rem;
height: 1.7rem;
}
.shoulder_left,
.forearm_left,
.hend_left,
.hip_left,
.shin_left,
.knee_left,
.foot_left,
.toe_left {
z-index: -1;
}
.leg_right,
.hip_right,
.shin_right,
.knee_right,
.foot_right,
.toe_right {
z-index: 3;
}
.arm_right,
.shoulder_right,
.forearm_right,
.hend_right {
z-index: 5;
}
/* ------------------------------------------ <<<= Кость */
.head,
.neck,
.body,
.shoulder,
.forearm,
.hend,
.hip,
.shin,
.knee,
.foot,
.toe {
background-position: center;
background-repeat: no-repeat;
background-color: transparent;
-webkit-background-size: cover;
background-size: cover;
}
.head {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/head.png);
border: none;
width: 4.4rem;
height: 4.4rem;
left: -.8rem;
top: -3.24rem;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
}
.neck {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/neck.png);
border: none;
top: -.7rem;
left: 50%;
margin-left: -1rem;
}
.torso {
width: 5rem;
left: 0rem;
}
.body {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/torso.png);
border: none;
height: 13.05rem;
width: 5rem;
}
.shoulder_right,
.shoulder_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/shoulder-r.png);
border: none;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
}
.forearm_right,
.forearm_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/forearm-r.png);
border: none;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
top: 5.45rem;
left: .15rem;
}
.hend_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/hend-l.png);
border: none;
background-size: 80%;
top: 4.9rem;
}
.hend_right {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/hend-r.png);
border: none;
left: .51rem;
top: 4.75rem;
}
.head_right {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/head-r.png);
border: none;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
}
.hip_right,
.hip_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/hip-r.png);
border: none;
}
.shin_right,
.shin_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/shin-r.png);
border: none;
-webkit-background-size: 80%;
background-size: 80%;
left: -5px;
}
.knee_right,
.knee_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/knee-r.png);
border: none;
left: 16px;
top: 7.9rem;
-webkit-background-size: 80%;
background-size: 80%;
}
.foot_right {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/foot-r.png);
border: none;
left: -.25rem;
}
.foot_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/foot-l.png);
border: none;
left: .1rem;
}
.toe_right {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/toe-r.png);
border: none;
-webkit-background-size: 80%;
background-size: 80%;
top: .5rem;
left: 2.5rem;
}
.toe_left {
background-image: url(https://raw.githubusercontent.com/lime7/skelet/master/images/toe-l.png);
border: none;
-webkit-background-size: 80%;
background-size: 80%;
top: .25rem;
left: 2.55rem;
}
Also see: Tab Triggers