Skip to content

Instantly share code, notes, and snippets.

View leemark's full-sized avatar
:atom:
building

Mark Lee leemark

:atom:
building
View GitHub Profile
@leemark
leemark / index.html
Created March 28, 2013 04:32
x-webkit-speech example
<input type="text" x-webkit-speech />
@leemark
leemark / style.css
Last active December 15, 2015 11:19
Zoom on hover
div{
margin: 45px;
/** prevent screen flash on child element :hover state transform **/
-webkit-transform: translate3D(0, 0, 0)
}
img {
/** basic styles **/
max-width: 200px;
margin: 1px;
@leemark
leemark / mediaqueries.html
Last active December 15, 2015 09:59
Some example media queries.
<ul>
<li data-email="jim@example.com">Jim</li>
<li data-email="julie@example.com">Julie</li>
<li data-email="jay@example.com">Jay</li>
<li data-email="jennie@example.com">Jennie</li>
</ul>
@leemark
leemark / linktarget.html
Last active December 15, 2015 08:19
Style in-page link targets using :target. http://codepen.io/leemark/pen/ncLFr
<div class="container" id="main">
<nav>
<h1>Navigation</h1>
<ul>
<li><a href="#lorem">Lorem ipsum dolor sit amet.</a></li>
<li><a href="#invenitatis">In venenatis auctor eros sed rhoncus.</a></li>
<li><a href="#utinorci">Ut in orci enim.</a></li>
<li><a href="#donecdiam">Donec diam dolor.</a></li>
<li><a href="#donectortor">Donec tortor mi.</a></li>
</ul>
@leemark
leemark / full-viewport-animated-background.html
Last active March 29, 2023 22:00
Full-screen animated gif background
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>horse</title>
<link href='http://fonts.googleapis.com/css?family=Spirax' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>Sallie Gardner at a Gallop</h1>
</body>
@leemark
leemark / form.html
Last active December 15, 2015 01:58
Some example form code - html5 input types, validation, etc.
<form>
<!-- email input type, required - the form won't submit if empty -->
<input type="email" id="youremail" placeholder="you@example.com" required />
<label for="youremail">your email</label>
<!-- url input type, optional - form will submit if empty, but if you do enter a value it needs to conform to URL type validation -->
<input type="url" id="yourwebsite" placeholder="http://example.com" />
<label for="yourwebsite">your website</label>