Wanted something simple and straightforward for a drawer and navicon. Navicon is pretty straightforward using t-origin, and the drawer works but I'm sure everything can be improved.
A Pen by John Stewart on CodePen.
Playing with Skrollr
A Pen by John Stewart on CodePen.
Javascript Direction Aware Hover Goodness.
A Pen by John Stewart on CodePen.
{ | |
"name": "Project-Name", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.5", | |
"grunt-contrib-sass": "^0.8.1", | |
"grunt-contrib-watch": "^0.6.1" | |
} | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Whatever</title> | |
</head> | |
<body> | |
<canvas id="canvas" width="500" height="500" style="display: block; margin: auto; border: 1px solid #000;"></canvas> | |
<script type="text/javascript"> | |
var canvas = document.getElementById("canvas"), |
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
<?php $content = $view->style_plugin->rendered_fields; ?> |
@mixin font-size($size){ | |
font-size: $size + px; | |
font-size: ($size / 16)+ rem; | |
} |
IE9+ FF 27.0+ Safari 5+ Chrome 27+ Opera 18+ |
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |