Demo Page

CSS3 Transitions Using :active

Click the box below and hold down the mouse button. Try clicking and holding for different lengths of time.

No JavaScript. This uses the CSS :active state to transition (or animate) the width and height values.