Skip to content

Instantly share code, notes, and snippets.

@brunjo
brunjo / entypo.css
Last active December 31, 2015 13:39 — forked from pnull/entypo.css
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@brunjo
brunjo / gist:2462761
Created April 22, 2012 08:42
JavaScript - detect CSS transform 3d support and supported browser prefix
//window.onload=function(){
var supportedPrefix,
supports3d = false,
prefixes = [ "Webkit", "Moz", "ms", "O" ],
div = document.createElement("div");
if ( div.style.perspective !== undefined ) {
/*Browser supports CSS transform 3d without prefix*/
supportedPrefix = "";
supports3d = true;