Skip to content

Instantly share code, notes, and snippets.

*, *:before, *:after {
box-sizing: border-box;
}
html {
overflow-y: scroll;
}
body {
background: #c1bdba;
// html //
<canvas id="canvas"></canvas>
// CSS //
canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
<html>
<body>
<div id="background"></div>
<div id="logocontainer" onclick=fill()>
<div id="pelogo">Pe</div>
<div class="loader" style="left:2vh; top:0; height:2vh; width:0; animation:slide1 1s linear forwards infinite"></div>
<div class="loader" style="right:0; top:2vh; width:2vh; height:0; animation:slide2 1s linear forwards infinite; animation-delay:0.5s"></div>
<div class="loader" style="right:2vh; bottom:0; height:2vh; width:0; animation:slide3 1s linear forwards infinite"></div>
<div class="loader" style="left:0; bottom:2vh; width:2vh; height:0; animation:slide4 1s linear forwards infinite; animation-delay:0.5s"></div>
</div>
<figure class="snip1543">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample108.jpg" alt="sample108" />
<figcaption>
<h3>Inverness McKenzie</h3>
<p>The only skills I have the patience to learn are those that have no real application in life.</p>
</figcaption>
<a href="#"></a>
</figure>
<figure class="snip1543 hover"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample100.jpg" alt="sample100" />
<figcaption>
@alexsul2008
alexsul2008 / index.html
Created August 16, 2016 00:46
Эффект наведения на кнопку || http://codepen.io/alexsul/pen/xOrvmJ
<div class="button"><span>hover me</span>
<div class="border o"></div>
<div class="border tw"></div>
<div class="border th"></div>
<div class="border f"></div>
</div>
<div class="row">
<div class="example-1 card">
<div class="wrapper">
<div class="date">
<span class="day">12</span>
<span class="month">Aug</span>
<span class="year">2016</span>
</div>
<div class="data">
<div class="content">
@alexsul2008
alexsul2008 / index.html
Created August 15, 2016 23:34
Google Map jQuery Theme
<!-- Google Map API -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOU-API-KEY&amp;sensor=false"></script>
@alexsul2008
alexsul2008 / goals.js
Created August 15, 2016 23:31
Цели для Яндекс.Метрики
//Цели для Яндекс.Метрики и Google Analytics
$(".count_element").on("click", (function() {
ga("send", "event", "goal", "goal");
yaCounterXXXXXXXX.reachGoal("goal");
return true;
}));
<style>
/* ---------------------------------------------- /*
* Mouse animate icon
/* ---------------------------------------------- */
.mouse-icon {
border: 2px solid #000;
border-radius: 16px;
height: 40px;
width: 24px;
display: block;
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px