Skip to content

Instantly share code, notes, and snippets.

View laukstein's full-sized avatar
🏠
Working from home

Binyamin Laukstein laukstein

🏠
Working from home
View GitHub Profile
@laukstein
laukstein / dabblet.css
Created February 9, 2012 11:46
CSS3 spinner
/* CSS3 spinner */
@keyframes rotate{
from{
transform:rotate(0deg) translate(-9px) rotate(0deg);
}
to{
transform:rotate(360deg) translate(-9px) rotate(-360deg);
}
}
@laukstein
laukstein / dabblet.css
Created February 9, 2012 07:34
CSS3 spinner
@keyframes rotate{
from{
transform:rotate(0deg) translate(-10px) rotate(0deg);
background-color:green;
}
to{
transform:rotate(360deg) translate(-10px) rotate(-360deg);
background-color:yellow;
}
}
<?php
$menu_name = 'main_nav';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
?>
<nav>
<ul class="main-nav">
<?php
@laukstein
laukstein / dabblet.css
Created February 9, 2012 11:12
CSS3 spinner
/* CSS3 spinner */
@keyframes rotate{
from{
transform:rotate(0deg) translate(-9px) rotate(0deg);
}
to{
transform:rotate(360deg) translate(-9px) rotate(-360deg);
}
}
@laukstein
laukstein / dabblet.css
Created January 29, 2012 06:20
Animate to natural width
/* Animate to natural width */
body { background: black; padding: 100px; margin: 0; }
.progress-bar {
border: 2px solid red;
border-radius: 14px;
overflow: hidden;
}
.progress-bar > div {
@laukstein
laukstein / LICENSE.txt
Created November 29, 2011 06:15 — forked from 140bytes/LICENSE.txt
Ajax SEO snippet in 140 bytes
GPL and MIT LICENSE
/**
* http://www.20thingsilearned.com/js/twentythings.min.js
* The history class is in charge of the browser
* history and URL's.
*/
TT.history = {};
/** */
TT.history.TABLE_OF_CONTENTS = 'table-of-things';
TT.history.HOME = 'home';