02.06.2013 Views

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Fading <strong>Animation</strong>s<br />

Time for action – creating the example page<br />

This example requires significantly more HTML than before, although we still add this, as well<br />

as the styling first.<br />

1. Begin by adding the following example markup to our template file:<br />

<br />

Private Messages<br />

<br />

RecievedSubjectFromDelete TodayRe: tomorrowBobx<br />

TodayRe:<br />

tomorrowBill<br />

x<br />

TodayRe:<br />

tomorrow<br />

x<br />

YesterdayRe:<br />

tomorrow<br />

x<br />

YesterdayRe:<br />

tomorrow<br />

x<br />

<br />

<br />

2. Save this page as fadeTo.html in the main project folder.<br />

3. To create the stylesheet for this example, add the following code in a new file in<br />

your text editor:<br />

#messageList {<br />

width:540px; padding:10px 20px; margin:auto;<br />

font:normal 14px "Nimbus Sans L", "Helvetica Neue", "Franklin<br />

Gothic Medium", Sans-serif;<br />

background-color:#666; border:1px solid #aaa;<br />

-moz-border-radius:7px; -webkit-border-radius:7px;<br />

border-radius:7px;<br />

}<br />

#messageList header {<br />

color:#eee; padding-left:10px; font-size:20px;<br />

}<br />

[ 38 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!