HTML and CSS Reference
In-Depth Information
dynamic pseudo-class taking effect; you can also change the styles with
JavaScript.
Clicking the Change Left but-
ton starts an animation.
Over 10 seconds, the element moves
to the left.
Similarly, clicking Change Top
starts another animation.
Over 10 seconds, the element moves
down from the top of the page.
Here's the HTML for the page:
<menu>
<button onclick="clickme('changeleft')">Change left</button>
<button onclick="clickme('changetop')">Change top</button>
<button onclick="clickme('changecolor')">Change color</button>
<button onclick="reset()">Reset</button>
</menu>
<div id="animateme">Animate Me</div>
Search WWH ::




Custom Search