Skip to content

Instantly share code, notes, and snippets.

(function($){
var __placeholder__ = {
init : function(){
console.log('hello world');
}
};
$(document).ready(function() {
__placeholder__.init();
});
@krambuhl
krambuhl / viewport-type.scss
Last active October 28, 2016 22:33
example of viewport based type sizing using viewport units
// requires: respond.scss
// https://gist.github.com/krambuhl/9dd229f391aceb3012b4
$vptext-viewport: 960px;
$vptext-min: 640px;
$vptext-max: 1180px;
@mixin viewport-text($font-size: 24px) {
font-size: #{($font-size / $vptext-viewport * 100) + vw};
@alexmattorr
alexmattorr / button
Last active August 29, 2015 13:56
Interactive Button
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>How to create an animated css & javascript button!</title>
</head>
<style>
/*active affect gets rid of the box shadow and moves down 5px, this gives the impression (animation) of actually pushing a button.*/
#button:active {