background preloader

Html5 cool stuff + code

Facebook Twitter

CSSWARP - CSS Text to Path Generator - StumbleUpon. HTML5 Snippets. Animated Button. <title>CSS3 animated button demo</title> body { padding: 2em 5em; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 250%; background: #eee; a:link, a:visited { text-decoration: none; color: #fff; border: none; a img { div.mod { margin: 0 0 30px 0;

Animated Button

Simple touch and drag object. Element.addEventListener("touchstart", touchStart, false); element.addEventListener("touchmove", touchMove, false); element.addEventListener("touchend", touchEnd, false); element.addEventListener("touchcancel", touchCancel, false); function touchStart(event){ e.preventDefault(); function touchMove( e ) { var targetEvent = e.touches.item(0); var box = document.getElementById("square"); = "#F66"; = targetEvent.clientX - 100 + "px"; targetEvent.clientY - 100+ "px"; box.innerHTML = "Dragging"; return false; function touchEnd(e){ = "#F00"; box.innerHTML = ""; #square{ width:200px; height:200px; background-color:#F00; position:absolute; color:white; font-family:Verdana; padding:10; <div id="square" ontouchstart="touchStart(event);" ontouchmove="touchMove(event);" ontouchend="touchEnd(event);" ontouchcancel="touchCancel(event);" >Drag this (works with a multitouch device like iphone or android)

Simple touch and drag object

Hover Effect Trasition. .view-fifth img {

Hover Effect Trasition