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.

Other Popular <strong>Animation</strong>s<br />

Time for action – creating and styling the page<br />

In this part <strong>of</strong> the example we'll create the underlying page that the animation will run on<br />

and add the styling.<br />

1. First we'll create the default page and add the CSS for the example. Add the<br />

following elements to the <strong>of</strong> our template file:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

2. Save this file as proximity.html. Next we'll add some CSS. In a new file, add the<br />

following code:<br />

/* base classes (scripting disabled) */<br />

#proximity {<br />

width:960px; margin:auto; border:1px solid #000;<br />

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

border-radius:8px;<br />

}<br />

#proximity img { border:1px solid #000; }<br />

/* scripting enabled classes */<br />

#proximity.slider {<br />

width:550px; height:250px; position:relative; overflow:hidden;<br />

[ 208 ]

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

Saved successfully!

Ooh no, something went wrong!