22. Using HTML5 and CSS3
/* A List Apart: Forward Thinking Form
Validation http://bit.ly/bHNs9T */
<input id="postcode" name="postcode"
type="number" min="1001" max="8000"
maxlength="4" required>
22
41. jQuery Plugin for CSS Transitions
/* http://bit.ly/cX8Xqf */
// Makes all paragraph elements grow a border and then atrophy
away.
$("p").animateWithCSS(
{border: "5px solid #555"}, // CSS properties to animate
1000, // Duration in ms
"cubic‐bezier", // The timing function
function(){ // Callback
$("p").animateWithCSS({border: "0px"}, 350);
}
);
41