<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codrops &#187; slider</title>
	<atom:link href="http://tympanus.net/codrops/tag/slider/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Wed, 23 May 2012 09:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Collective #6</title>
		<link>http://tympanus.net/codrops/collective/collective-6/</link>
		<comments>http://tympanus.net/codrops/collective/collective-6/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 13:40:43 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[responsive]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[tooltips]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?post_type=collective&#038;p=8295</guid>
		<description><![CDATA[Responsive Images * Free Fonts &#038; Icons * CSS Tutorials * Better design process * jQuery Slideshow]]></description>
			<content:encoded><![CDATA[<div class="ct-coll-item">
<article>
<h2>Envision.js</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.humblesoftware.com/envision"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_1.jpg" alt="Collective6_1" title="" width="233" height="156" class="alignnone size-full wp-image-8296" /></a></p>
<p>Envision.js is a library for creating fast, dynamic and interactive HTML5 visualizations.  It is a rewrite of HumbleFinance, a library for HTML5 canvas finance visualization.</p>
<p>	   <a class="ct-coll-link" href="http://www.humblesoftware.com/envision">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item ct-coll-item-multi ct-coll-item-dribbble">
<nav>
		<a href="#" class="ct-coll-nav-prev">Prev</a><br />
		<a href="#" class="ct-coll-nav-next">Next</a><br />
	</nav>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.graphicbox.it/resources/mun-typeface-free-experimental-font-to-download/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont1.jpg" alt="Collective6_FreeFont1" title="" width="330" height="248" class="alignnone size-full wp-image-8310" /></a></p>
<p>Mun typeface by Vincenzo Vuono</p>
</article>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.myfonts.com/fonts/durotype/flexo/demo/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont2.jpg" alt="Collective6_FreeFont2" title="" width="330" height="248" class="alignnone size-full wp-image-8311" /></a></p>
<p>Flexo Caps DEMO by Ben Blom</p>
</article>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.dafont.com/bounce.font"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont3.jpg" alt="Collective6_FreeFont3" title="" width="330" height="248" class="alignnone size-full wp-image-8312" /></a></p>
<p>Bounce by Ryan Maelhorn</p>
</article>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.dafont.com/amboss.font"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont4.jpg" alt="Collective6_FreeFont4" title="" width="330" height="248" class="alignnone size-full wp-image-8313" /></a></p>
<p>Amboss by  Andreas Siess</p>
</article>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.myfonts.com/fonts/marta-podkowinska/henry/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont5.jpg" alt="Collective6_FreeFont5" title="" width="330" height="248" class="alignnone size-full wp-image-8314" /></a></p>
<p>Henry by Marta Podkowinska</p>
</article>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.myfonts.com/fonts/hoftype/foro/extra-light/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont6.jpg" alt="Collective6_FreeFont6" title="" width="330" height="248" class="alignnone size-full wp-image-8315" /></a></p>
<p>Foro Extra Light by Hoftype</p>
</article>
<article>
<h2>Awesome Free Fonts</h2>
<p>		<a class="ct-coll-thumb" href="http://www.fontsquirrel.com/fonts/sofia-pro"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_FreeFont7.jpg" alt="Collective6_FreeFont7" title="" width="330" height="248" class="alignnone size-full wp-image-8316" /></a></p>
<p>Sofia Pro by Mostardesign</p>
</article>
</div>
<div class="ct-coll-item">
<article>
<h2>Responsive &#038; Retina Content Images using simple CSS &#038; a spacer PNG*</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.mattstow.com/responsive-and-retina-content-images.html"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_13.jpg" alt="Collective6_13" title="" width="260" height="145" class="alignnone size-full wp-image-8308" /></a></p>
<p>Matt Stow shows us how to to use a trick for loading the right-sized images using a spacer PNG.</p>
<p>	   <a class="ct-coll-link" href="http://www.mattstow.com/responsive-and-retina-content-images.html">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Happy Easter!</h2>
<p>	   <a class="ct-coll-thumb" href="http://marynaaleksandrova.info/labs/happy-easter/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_14.jpg" alt="Collective6_14" title="" width="230" height="125" class="alignnone size-full wp-image-8309" /></a></p>
<p><a href="http://marynaaleksandrova.info/">Maryna Aleksandrova</a> gives us some adorable Easter greetings with this CSS3 animation of &#8220;dancing&#8221; eggs! Don&#8217;t forget to turn on your sound.</p>
<p>	   <a class="ct-coll-link" href="http://marynaaleksandrova.info/labs/happy-easter/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>On Responsive Images</h2>
<p>Chris Coyier talks about some possible approaches for serving inline images on websites – the responsive way. Interesting pros and cons and of course, followed by a fruitful discussion.</p>
<p>	   <a class="ct-coll-link" href="http://css-tricks.com/on-responsive-images/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Micro Icon Set</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.icondeposit.com/theicondeposit:27"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_12.jpg" alt="Collective6_12" title="" width="201" height="158" class="alignnone size-full wp-image-8307" /></a></p>
<p>Matt Gentile gives us this set of 110 vecor icons.</p>
<p>	   <a class="ct-coll-link" href="http://www.icondeposit.com/theicondeposit:27">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Responsive Layouts, Responsively Wireframed</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.thismanslife.co.uk/projects/lab/responsivewireframes/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_2.jpg" alt="Collective6_2" title="" width="260" height="187" class="alignnone size-full wp-image-8297" /></a></p>
<p>An interactive experiment with responsive design techniques using simple layout wireframes.</p>
<p>	   <a class="ct-coll-link" href="http://www.thismanslife.co.uk/projects/lab/responsivewireframes/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Pure CSS Tool Tips Revisited</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.impressivewebs.com/pure-css-tool-tips/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_3.jpg" alt="Collective6_3" title="" width="200" height="112" class="alignnone size-full wp-image-8298" /></a></p>
<p>Louis Lazaris perfectionizes CSS tooltips and shows us how we can create a better, bulletproof solution. </p>
<p>	   <a class="ct-coll-link" href="http://www.impressivewebs.com/pure-css-tool-tips/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Unquoted Font Family Names in CSS</h2>
<p>	   <a class="ct-coll-thumb" href="http://mathiasbynens.be/notes/unquoted-font-family"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_4.jpg" alt="Collective6_4" title="" width="200" height="115" class="alignnone size-full wp-image-8299" /></a></p>
<p>Understand some very interesting facts about font names in CSS, what&#8217;s valid and what not and when you can drop the quotes.</p>
<p>	   <a class="ct-coll-link" href="http://mathiasbynens.be/notes/unquoted-font-family">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>WReader Code Lab</h2>
<p>	   <a class="ct-coll-thumb" href="http://petelepage.com/webapp-codelab/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_5.jpg" alt="Collective6_5" title="" width="202" height="163" class="alignnone size-full wp-image-8300" /></a></p>
<p>If you want to learn how to create modern web applications, this might just be the course for you. With a set of exercises you can dive into all the latest development techniques and design fundamentals. </p>
<p>	   <a class="ct-coll-link" href="http://petelepage.com/webapp-codelab/">Do it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Rhinoslider</h2>
<p>	   <a class="ct-coll-thumb" href="http://rhinoslider.com/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_6.jpg" alt="Collective6_6" title="" width="300" height="114" class="alignnone size-full wp-image-8301" /></a></p>
<p>This jQuery slider/slideshow comes with a handful of interesting effects and a really useful generator that allows for a custom build of the script.</p>
<p>	   <a class="ct-coll-link" href="http://rhinoslider.com/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>WebPutty</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.webputty.net/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_7.jpg" alt="Collective6_7" title="" width="200" height="58" class="alignnone size-full wp-image-8302" /></a></p>
<p>WebPutty is a simple CSS editing and hosting service that gives you a syntax-highlighting CSS editor you can use from anywhere, the power of SCSS and Compass, a side-by-side preview pane, and instant publishing with minification, compression, and automatic cache control.You can&#8217;t create a new account anymore but you can get your own copy of WebPutty since it&#8217;s been made open source. </p>
<p>	   <a class="ct-coll-link" href="http://www.webputty.net/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Style Tiles</h2>
<p>	   <a class="ct-coll-thumb" href="http://styletil.es/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_8.jpg" alt="Collective6_8" title="" width="290" height="188" class="alignnone size-full wp-image-8303" /></a></p>
<p>Samantha Warren shares a remarkable new design process approach with us: Style Tiles. She suggests that the current way of creating too detailed designs for clients can be replaced by the process common in architecture or interior design, a process that will convey just the right amount of the idea to the client. Make sure to also read <a href="http://badassideas.com/style-tiles-as-a-web-design-process-tool/">this</a> in order to have a better picture of what Style Tiles can look like.</p>
<p>	   <a class="ct-coll-link" href="http://styletil.es/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Jigsoar Iconset</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.jigsoaricons.com/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_11.jpg" alt="Collective6_11" title="" width="300" height="183" class="alignnone size-full wp-image-8306" /></a></p>
<p>Jigsoar is a free icon set with 60 vector shapes for your next web development project. It is licensed under the Creative Commons Attribution 3.0 License.</p>
<p>	   <a class="ct-coll-link" href="http://www.jigsoaricons.com/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Mobile Navigation Design &amp; Tutorial</h2>
<p>	   <a class="ct-coll-thumb" href="http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_9.jpg" alt="Collective6_9" title="" width="150" height="144" class="alignnone size-full wp-image-8304" /></a></p>
<p>Learn how to tackle the challenges of a responsive navigation and create a mobile navigation with jQuery in this tutorial.</p>
<p>	   <a class="ct-coll-link" href="http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>pep.jquery.js</h2>
<p>	   <a class="ct-coll-thumb" href="http://pep.briangonzalez.org/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective6_10.jpg" alt="Collective6_10" title="" width="180" height="185" class="alignnone size-full wp-image-8305" /></a></p>
<p>A lightweight plugin for kinetic-drag on mobile devices and the desktop (click &#038; drag). It uses jQuery&#8217;s animate functions along with CSS3 animations and it has built-in support for custom start, stop, and drag events; a debugger and the ability to customize your own kinetic easing functions.</p>
<p>	   <a class="ct-coll-link" href="http://pep.briangonzalez.org/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>HTML5 Drag and Drop&#8230; with real upload</h2>
<p>Remy Sharp shows us how to &#8220;drag-and-drop and upload&#8221; but with the actual upload part.</p>
<p>	   <a class="ct-coll-link" href="http://html5doctor.com/drag-and-drop-to-server/">Read it</a><br />
   </article>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/collective/collective-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parallax Content Slider with CSS3 and jQuery</title>
		<link>http://tympanus.net/codrops/2012/03/15/parallax-content-slider-with-css3-and-jquery/</link>
		<comments>http://tympanus.net/codrops/2012/03/15/parallax-content-slider-with-css3-and-jquery/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 05:14:08 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[parallax]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=7937</guid>
		<description><![CDATA[A simple parallax content slider with different animations for each slider element and a background parallax effect.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/ParallaxContentSlider/"><br />
<img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Parallax-Content-Slider.jpg" alt="" title="Parallax Content Slider with CSS3 and jQuery" width="580" height="315" class="alignnone size-full wp-image-7939" /><br />
</a></p>
<p><a class="demo" href="http://tympanus.net/Development/ParallaxContentSlider/">View demo</a> <a class="download" href="http://tympanus.net/Development/ParallaxContentSlider/ParallaxContentSlider.zip">Download source</a></p>
<p>Today we want to share a simple parallax content slider with you. Using CSS animations, we&#8217;ll control the animation of each single element in the slider and create a parallax effect by animating the background of the slider itself.</p>
<p>The idea for this comes from the slider of the <strong><a href="http://www.kendoui.com/">Kendo UI</a></strong> homepage, a framework for modern HTML UI. After we got some requests and questions about how to do something like that, we decided to recreate the effect.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>How it works</h3>
<p>The slider contains several slides and each one will have an h2 element, a paragraph, a link and a division with an image:</p>
<pre class="brush:xml">
&lt;div id="da-slider" class="da-slider"&gt;

	&lt;div class="da-slide"&gt;
		&lt;h2&gt;Some headline&lt;/h2&gt;
		&lt;p&gt;Some description&lt;/p&gt;
		&lt;a href="#" class="da-link"&gt;Read more&lt;/a&gt;
		&lt;div class="da-img"&gt;
			&lt;img src="images/1.png" alt="image01" /&gt;
		&lt;/div&gt;
	&lt;/div&gt;

	&lt;div class="da-slide"&gt;
		&lt;!-- ... --&gt;
	&lt;/div&gt;

	&lt;!-- ... --&gt;

	&lt;nav class="da-arrows"&gt;
		&lt;span class="da-arrows-prev"&gt;&lt;/span&gt;
		&lt;span class="da-arrows-next"&gt;&lt;/span&gt;
	&lt;/nav&gt;

&lt;/div&gt;
</pre>
<p>The core of this slider is the animations for each one of the elements. We&#8217;ll control the behavior of the elements by giving a &#8220;direction class&#8221; to the respective slide. For example, when we slide the current slide to the right, we will give it the class &#8220;da-slide-toright&#8221;. There will be four different classes for each of the possible slide directions and origins:</p>
<ul>
<li>.da-slide-fromright</li>
<li>.da-slide-fromleft</li>
<li>.da-slide-toright</li>
<li>.da-slide-toleft</li>
</ul>
<p>Given these classes, we can control the animation of each element:</p>
<pre class="brush:css">
/* Slide in from the right*/
.da-slide-fromright h2{
	animation: fromRightAnim1 0.6s ease-in 0.8s both;
}
.da-slide-fromright p{
	animation: fromRightAnim2 0.6s ease-in 0.8s both;
}
.da-slide-fromright .da-link{
	animation: fromRightAnim3 0.4s ease-in 1.2s both;
}
.da-slide-fromright .da-img{
	animation: fromRightAnim4 0.6s ease-in 0.8s both;
}

/* Adjust animations for different behavior of each element: */
@keyframes fromRightAnim1{
	0%{ left: 110%; opacity: 0; }
	100%{ left: 10%; opacity: 1; }
}
@keyframes fromRightAnim2{
	0%{ left: 110%; opacity: 0; }
	100%{ left: 10%; opacity: 1; }
}
@keyframes fromRightAnim3{
	0%{ left: 110%; opacity: 0; }
	1%{ left: 10%; opacity: 0; }
	100%{ left: 10%; opacity: 1; }
}
@keyframes fromRightAnim4{
	0%{ left: 110%; opacity: 0; }
	100%{ left: 60%; opacity: 1; }
}
</pre>
<h3>Options</h3>
<p>The following options are available when calling the cslider plugin:</p>
<pre class="brush:js">
$('#da-slider').cslider({

	current		: 0,
	// index of current slide

	bgincrement	: 50,
	// increment the background position
	// (parallax effect) when sliding

	autoplay	: false,
	// slideshow on / off

	interval	: 4000
	// time between transitions

});
</pre>
<p>The parallax effect is created by moving the background of the slider to the opposite direction when sliding. With  <strong>bgincrement</strong> you can control the amount of pixels it will be moved.</p>
<h3>Demos</h3>
<ol>
<li><strong><a href="http://tympanus.net/Development/ParallaxContentSlider/index.html">Demo 1: Default options</a></strong></li>
<li><strong><a href="http://tympanus.net/Development/ParallaxContentSlider/index2.html">Demo 2: Slideshow (different animations)</a></strong></li>
</ol>
<p><em>Notice that we are using a simple fallback for browsers that don&#8217;t support CSS animations and transitions.</em></p>
<p>We hope you like our little experiment and find it useful!</p>
<p><a class="demo" href="http://tympanus.net/Development/ParallaxContentSlider/">View demo</a> <a class="download" href="http://tympanus.net/Development/ParallaxContentSlider/ParallaxContentSlider.zip">Download source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2012/03/15/parallax-content-slider-with-css3-and-jquery/feed/</wfw:commentRss>
		<slash:comments>85</slash:comments>
		</item>
		<item>
		<title>Collective #3</title>
		<link>http://tympanus.net/codrops/collective/collective-3/</link>
		<comments>http://tympanus.net/codrops/collective/collective-3/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 06:24:25 +0000</pubDate>
		<dc:creator>Pedro Botelho</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[webgl]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?post_type=collective&#038;p=7866</guid>
		<description><![CDATA[jQuery Slider Plugin * Free fonts * SASS insights * WebGL demystified * CSS social buttons * Slick graphs * Ribbon Menu]]></description>
			<content:encoded><![CDATA[<div class="ct-coll-item">
<article>
<h2>Code Pad</h2>
<p>	   <a class="ct-coll-thumb" href="http://codepad.co/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Code-Pad.jpg" alt="Code-Pad" title="" width="220" height="102" class="alignnone size-full wp-image-7869" /></a></p>
<p>Code Pad is a new platform for developers to share and save code snippets. If you want to get in now, you&#8217;ll have to request an invite.</p>
<p>	   <a class="ct-coll-link" href="http://codepad.co/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>UIKit: Modern UI components</h2>
<p>	   <a class="ct-coll-thumb" href="http://visionmedia.github.com/uikit/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/UIKit.jpg" alt="UIKit" title="" width="146" height="149" class="alignnone size-full wp-image-7879" /></a></p>
<p>Some really helpful UI components for many kind of web applications. Very easy to use and to style.</p>
<p>	   <a class="ct-coll-link" href="http://visionmedia.github.com/uikit/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Hagin: Free Font from Fontfabric</h2>
<p>	   <a class="ct-coll-thumb" href="http://fontfabric.com/hagin-free-font/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Hagin-Font.jpg" alt="Hagin-Font" title="" width="280" height="156" class="alignnone size-full wp-image-7873" /></a></p>
<p>Beautiful &#8220;old school&#8221; style serif font from Fontfabric.</p>
<p>	   <a class="ct-coll-link" href="http://fontfabric.com/hagin-free-font/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Sequence: The jQuery Slider Plugin with Infinite Style</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.sequencejs.com/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/SequenceJS.jpg" alt="SequenceJS" title="" width="290" height="193" class="alignnone size-full wp-image-7877" /></a></p>
<p>Ian Lunn developed this open source jQuery slider plugin that let&#8217;s you take control over the CSS3 transitions for the slides making it easy to build a unique slider. It can be used in responsive layouts and it has support for touch devices.</p>
<p>	   <a class="ct-coll-link" href="http://www.sequencejs.com/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Musings on Preprocessing</h2>
<p>	   <a class="ct-coll-thumb" href="http://css-tricks.com/musings-on-preprocessing/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Musings-on-Preprocessing.jpg" alt="Musings-on-Preprocessing" title="" width="230" height="159" class="alignnone size-full wp-image-7876" /></a></p>
<p>Chris Coyier shares his helpful thoughts and experiences on SASS. A must-read in-depth article followed by a great discussion.</p>
<p>	   <a class="ct-coll-link" href="http://css-tricks.com/musings-on-preprocessing/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>WebGL Fundamentals</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.html5rocks.com/en/tutorials/webgl/webgl_fundamentals/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/WebGL-Fundamentals.jpg" alt="WebGL-Fundamentals" title="" width="236" height="133" class="alignnone size-full wp-image-7880" /></a></p>
<p>Curious about WebGL? This article by Gregg Tavares will give you a really great introduction into the topic and demystify the 2D API&#8230;yes, <strong>2D</strong>!</p>
<p>	   <a class="ct-coll-link" href="http://www.html5rocks.com/en/tutorials/webgl/webgl_fundamentals/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>CSS Ribbon Menu</h2>
<p>	   <a class="ct-coll-thumb" href="http://jacklmoore.com/notes/css3-ribbon-menu/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/CSS-Ribbon-Menu.jpg" alt="CSS-Ribbon-Menu" title="" width="230" height="62" class="alignnone size-full wp-image-7871" /></a></p>
<p>In this tutorial, Jack Moore will show you how to create a slick CSS ribbon menu using transitions and pseudo-elements. </p>
<p>	   <a class="ct-coll-link" href="http://jacklmoore.com/notes/css3-ribbon-menu/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>turn.js</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.turnjs.com/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/turnJS.jpg" alt="turnJS" title="" width="140" height="186" class="alignnone size-full wp-image-7878" /></a></p>
<p>This jQuery plugin makes it possible to create smooth book-like page transitions. It&#8217;s a lightweight plugin and it uses hardware acceleration and works on tablets and smartphones.</p>
<p>	   <a class="ct-coll-link" href="http://www.turnjs.com/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>bear css</h2>
<p>	   <a class="ct-coll-thumb" href="http://bearcss.com/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Bear-css.jpg" alt="Bear-css" title="" width="240" height="162" class="alignnone size-full wp-image-7867" /></a></p>
<p>Bear css will generate a CSS template based on your provided markup and the HTML elements used. You can upload your HTML and bear css will create a CSS file for you that you can download. </p>
<p>	   <a class="ct-coll-link" href="http://bearcss.com/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Zocial CSS social buttons</h2>
<p>	   <a class="ct-coll-thumb" href="http://zocial.smcllns.com/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Zocial.jpg" alt="Zocial" title="" width="200" height="170" class="alignnone size-full wp-image-7881" /></a></p>
<p>These CSS buttons are delicious. Sam Collins shares his set of 42 CSS3 font-face vector icon buttons that are easiliy editable and have a beautiful style.</p>
<p>	   <a class="ct-coll-link" href="http://zocial.smcllns.com/">Get them</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Better Background Images For Responsive Web Design</h2>
<p>	   <a class="ct-coll-thumb" href="http://elliotjaystocks.com/blog/better-background-images-for-responsive-web-design/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/BetterBackgroundImages.jpg" alt="BetterBackgroundImages" title="" width="200" height="97" class="alignnone size-full wp-image-7868" /></a></p>
<p>An interesting article by Elliot Jay Stocks about the problems of the CSS background-size property and how to solve them. </p>
<p>	   <a class="ct-coll-link" href="http://elliotjaystocks.com/blog/better-background-images-for-responsive-web-design/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Glisse.js</h2>
<p>	   <a class="ct-coll-thumb" href="http://glisse.victorcoulon.fr/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/GlisseJS.jpg" alt="GlisseJS" title="" width="280" height="216" class="alignnone size-full wp-image-7872" /></a></p>
<p>Glisse.js is a simple, responsive and fully customizable jQuery photo viewer with great CSS3 image transitions.</p>
<p>	   <a class="ct-coll-link" href="http://glisse.victorcoulon.fr/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>CSS3 Pseudo-Classes and HTML5 Forms</h2>
<p>	   <a class="ct-coll-thumb" href="http://html5doctor.com/css3-pseudo-classes-and-html5-forms/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/CSS3-Pseudo-Classes-and-HTML5-Forms.jpg" alt="CSS3-Pseudo-Classes-and-HTML5-Forms" title="" width="230" height="98" class="alignnone size-full wp-image-7870" /></a></p>
<p>Peter Gasston will teach you some nifty things about forms and how to make use of some great features of CSS3 and HTML5.</p>
<p>	   <a class="ct-coll-link" href="http://html5doctor.com/css3-pseudo-classes-and-html5-forms/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Free Font: Metropolis 1920</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.behance.net/gallery/Metropolis-1920/3244285"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/Metropolis.jpg" alt="Metropolis" title="" width="240" height="216" class="alignnone size-full wp-image-7874" /></a></p>
<p>An absolutely sexy art deco style font by Josip Kelava.</p>
<p>	   <a class="ct-coll-link" href="http://www.behance.net/gallery/Metropolis-1920/3244285">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Developing Game Audio with the Web Audio API</h2>
<p>Another superb tutorial by HTML5 Rocks: Boris Smus will show you how to use the Web Audio API for game audio development.</p>
<p>	   <a class="ct-coll-link" href="http://www.html5rocks.com/en/tutorials/webaudio/games/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Morris.js</h2>
<p>	   <a class="ct-coll-thumb" href="http://oesmith.github.com/morris.js/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/03/MorrisJS.jpg" alt="MorrisJS" title="" width="270" height="158" class="alignnone size-full wp-image-7875" /></a></p>
<p>Morris.js is a lightweight library that uses jQuery and Raphaël to make stunning graphs easily.</p>
<p>	   <a class="ct-coll-link" href="http://oesmith.github.com/morris.js/">Check it out</a><br />
   </article>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/collective/collective-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elastislide &#8211; A Responsive jQuery Carousel Plugin</title>
		<link>http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/</link>
		<comments>http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 17:02:45 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[fluid]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[responsive]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[thumbnails]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=5677</guid>
		<description><![CDATA[With the responsive awakening in web design it becomes important to not only take care of the visual part of a website but also of the functionality. Elastislide is a responsive jQuery carousel that will adapt its size and its behavior in order to work on any screen size. Inserting the carousels structure into a container with a fluid width will also make the carousel fluid. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/Elastislide/" title="Elastislide" target="_blank"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/09/elastislide.jpg" alt="" title="Elastislide" width="580" height="315" class="aligncenter size-full wp-image-5680" /></a></p>
<p><a class="demo" href="http://tympanus.net/Development/Elastislide/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/Elastislide/Elastislide.zip">Download source</a></p>
<p>With the responsive awakening in web design it becomes important to not only take care of the visual part of a website but also of the functionality. Elastislide is a responsive jQuery carousel that will adapt its size and its behavior in order to work on any screen size. Inserting the carousel&#8217;s structure into a container with a fluid width will also make the carousel fluid. </p>
<p>In a carousel, one could think that simply making its container &#8220;shorter&#8221; will solve the problem on smaller screens, but in some cases (e.g. when we have bigger images) it might be reasonable to resize the items as well. This and other options are part of Elastislide&#8217;s properties.</p>
<p>Elastislide uses the <a href="http://www.netcu.de/jquery-touchwipe-iphone-ipad-library" target="_blank">jQuery Touchwipe Plugin</a> which allows you to obtain the wipe event on an iPhone, iPad or iPod Touch. </p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<p>The images are by Karrie Nodalo and you can find her awesome photos here:<br />
<a href="http://www.flickr.com/photos/karrienodalo/" target="_blank">Karrie Nodalo&#8217;s Photostream on Flickr</a><br />
Her images are licensed under the <a target="_blank" href="http://creativecommons.org/licenses/by/2.0/deed.en_GB">Attribution 2.0 Generic License</a>.</p>
<h3>The HTML Structure</h3>
<p>The Markup for the carousel consists of a main wrapper that will adjust to the width of any fluid container you put it into. (If you put the carousel in a container with a fixed width, it will not adapt. So make sure that your container has a fluid layout.)<br />
The carousel element will have an unordered list with linked images:</p>
<pre class="brush:xml">
&lt;div id="carousel" class="es-carousel-wrapper"&gt;
	&lt;div class="es-carousel"&gt;
		&lt;ul&gt;
			&lt;li&gt;
				&lt;a href="#"&gt;
					&lt;img src="images/medium/1.jpg" alt="image01" /&gt;
				&lt;/a&gt;
			&lt;/li&gt;
			&lt;li&gt;...&lt;/li&gt;
			...
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>Use your preferred ID and call the plugin like this:</p>
<pre class="brush:js">
$('#carousel').elastislide({
	imageW 	: 180
});
</pre>
<p>where <strong>imageW</strong> is the width of the thumbnails.</p>
<h3>Options</h3>
<p>Elastislide has the following default options:</p>
<pre class="brush:js">
speed		: 450,
// animation speed

easing		: '',
// animation easing effect

imageW		: 190,
// the images width

margin		: 3,
// image margin right

border		: 2,
// image border

minItems	: 1,
// the minimum number of items to show.
// when we resize the window, this will
// make sure minItems are always shown
// (unless of course minItems is higher
// than the total number of elements)

current		: 0,
// index of the current item
// when we resize the window,
// the plugin will make sure that
// this item is visible 

onClick		: function() { return false; }
// click item callback
// Example of how to get the index
// of the clicked element:
/*
$('#carousel').elastislide({
    onClick  :  function( $item ) {
        alert( 'The clicked item´s index is ' + $item.index() )
    }
});
*/
</pre>
<p>It is also possible to dynamically add new items to the carousel. The following is an example on how to achieve that:</p>
<pre class="brush:js">
var $items	= $('&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/large/1.jpg" alt="image01" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/large/2.jpg" alt="image01" /&gt;&lt;/a&gt;&lt;/li&gt;');
$('#carousel').append($items).elastislide( 'add', $items );
</pre>
<p>I hope you like this plugin and find it useful!</p>
<p><a class="demo" href="http://tympanus.net/Development/Elastislide/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/Elastislide/Elastislide.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/feed/</wfw:commentRss>
		<slash:comments>131</slash:comments>
		</item>
		<item>
		<title>Slicebox &#8211; A fresh 3D image slider with graceful fallback</title>
		<link>http://tympanus.net/codrops/2011/09/05/slicebox-3d-image-slider/</link>
		<comments>http://tympanus.net/codrops/2011/09/05/slicebox-3d-image-slider/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 16:40:59 +0000</pubDate>
		<dc:creator>Pedro Botelho</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[fallback]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[transform]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=5657</guid>
		<description><![CDATA[With the CSS3 3D transformations we can create some neat effects by transforming elements in three-dimensional space. Slicebox makes use of the 3D transforms properties and allows different kind of effects. The main idea is to create three-dimensional image slices that will rotate and reveal the next image as another side of the 3d object. In case the browser does not support 3D transformations, a simple slider will be used as fallback.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/Slicebox/" target="_blank"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/09/slicebox.jpg" alt="" title="Slicebox" width="580" height="315" class="aligncenter size-full wp-image-5659" /></a><br />
<a class="demo" href="http://tympanus.net/Development/Slicebox/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/Slicebox/Slicebox.zip">Download source</a></p>
<p>With the CSS3 3D transformations we can create some neat effects by transforming elements in three-dimensional space. Slicebox makes use of the 3D transforms properties and allows different kind of effects. The main idea is to create three-dimensional image slices that will rotate and reveal the next image as another side of the 3d object. In case the browser does not support 3D transformations, a simple slider will be used as fallback.</p>
<p>Please note that you can only see the cool 3d effect of Slicebox in a browser that supports those CSS3 properties (currently Chrome and Safari). </p>
<p>The images used in the demos are by <a title="Flickr Photostream of Rick Harris" href="http://www.flickr.com/photos/rickharris/" target="_blank">Rick Harris</a>. They are licensed under the <a title="Images licensed under CC BY-SA 2.0" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en_GB" target="_blank">Attribution-ShareAlike 2.0 Generic (CC BY-SA 2.0)</a>.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>Usage</h3>
<p>In order to use Slicebox, put your images in a container with the class &#8220;sb-slider&#8221;:</p>
<pre class="brush:xml">
&lt;div id="sb-slider" class="sb-slider"&gt;
	&lt;img src="images/1.jpg" title="Creative Lifesaver"/&gt;
	&lt;img src="images/2.jpg" title="Honest Entertainer"/&gt;
	&lt;img src="images/3.jpg" title="Brave Astronaut"/&gt;
	&lt;img src="images/4.jpg" title="Affectionate Decision Maker"/&gt;
	&lt;img src="images/5.jpg" title="Faithful Investor"/&gt;
	&lt;img src="images/6.jpg" title="Groundbreaking Artist"/&gt;
	&lt;img src="images/7.jpg" title="Selfless Philantropist"/&gt;
&lt;/div&gt;
</pre>
<p>Then you can call the plugin with</p>
<pre class="brush:js">
$('#sb-slider').slicebox();
</pre>
<h3>Options</h3>
<p>Slicebox comes with a set of options that you can adjust for various types of effects:</p>
<pre class="brush:js">
orientation			: 'v',
// (v)ertical or (h)orizontal.

perspective			: 1200,
// -webkit-perspective value.

slicesCount			: 1,
// needs to be an odd number between 1 and 15
// (if you want the limit higher, change the _validate function).

disperseFactor		: 0,
// each slice will move x pixels left / top (depending on orientation).
// The middle slice doesn't move.
// The middle slice's neighbors will move disperseFactor pixels.

colorHiddenSides	: '#222',
// color of the hidden sides.

sequentialRotation	: false,
// the animation will start from left to right.
// The left most slice will be the first one to rotate.

sequentialFactor	: 0,
// if sequentialRotation is true this will
// be the interval between each rotation in ms.

speed3d				: 800,
// animation speed3d.

speed				: 600,
// fallback speed. You might want to set
// a different speed for the fallback animation...

fallbackEasing		: 'easeOutExpo',
// fallback easing.

slideshow			: false,
// if true the box will be rotating automatically.

slideshowTime		: 2000
// interval for the slideshow in ms.
</pre>
<p>Check out each example and you will see how to create different behaviors with the options.</p>
<p>Hope you find it useful, feedback is welcome!</p>
<p><a class="demo" href="http://tympanus.net/Development/Slicebox/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/Slicebox/Slicebox.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/09/05/slicebox-3d-image-slider/feed/</wfw:commentRss>
		<slash:comments>178</slash:comments>
		</item>
		<item>
		<title>Circular Content Carousel with jQuery</title>
		<link>http://tympanus.net/codrops/2011/08/16/circular-content-carousel/</link>
		<comments>http://tympanus.net/codrops/2011/08/16/circular-content-carousel/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 16:19:39 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[circular]]></category>
		<category><![CDATA[content slider]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=5478</guid>
		<description><![CDATA[Today we want to share a simple circular content carousel with you. The idea is to have some content boxes that we can slide infinitely (circular). When clicking on the "more" link, the respective item moves to the left and a content area will slide out. Now we can navigate through the carousel where each step will reveal the next or previous content box with its expanded content. Clicking on the closing cross will slide the expanded content area back in and animate the item to its original position.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/CircularContentCarousel/" target="_blank"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/08/CircularContentCarousel.jpg" alt="" title="CircularContentCarousel" width="580" height="315" class="aligncenter size-full wp-image-5487" /></a><br />
<a class="demo" href="http://tympanus.net/Development/CircularContentCarousel/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/CircularContentCarousel/CircularContentCarousel.zip">Download source</a></p>
<p>Today we want to share a simple circular content carousel with you. The idea is to have some content boxes that we can slide infinitely (circular). When clicking on the &#8220;more&#8221; link, the respective item moves to the left and a content area will slide out. Now we can navigate through the carousel where each step will reveal the next or previous content box with its expanded content. Clicking on the closing cross will slide the expanded content area back in and animate the item to its original position.</p>
<p>The beautiful animal icon set in the ZIP file are by <a href="http://cyberella74.deviantart.com/art/Archigraphs-Animals-Icons-139629985" target="_blank">Cyberella</a> and they are licensed under the <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" target="_blank">Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) License</a>.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>The HTML Structure</h3>
<p>The structure consists of a main container and a wrapper for the items. Each item contains </p>
<pre class="brush:xml">
&lt;div id="ca-container" class="ca-container"&gt;
	&lt;div class="ca-wrapper"&gt;
		&lt;div class="ca-item ca-item-1"&gt;
			&lt;div class="ca-item-main"&gt;
				&lt;div class="ca-icon"&gt;&lt;/div&gt;
				&lt;h3&gt;Stop factory farming&lt;/h3&gt;
				&lt;h4&gt;
					&lt;span class="ca-quote"&gt;&ldquo;&lt;/span&gt;
					&lt;span&gt;Some text...&lt;/span&gt;
				&lt;/h4&gt;
					&lt;a href="#" class="ca-more"&gt;more...&lt;/a&gt;
			&lt;/div&gt;
			&lt;div class="ca-content-wrapper"&gt;
				&lt;div class="ca-content"&gt;
					&lt;h6&gt;Animals are not commodities&lt;/h6&gt;
					&lt;a href="#" class="ca-close"&gt;close&lt;/a&gt;
					&lt;div class="ca-content-text"&gt;
						&lt;p&gt;Some more text...&lt;/p&gt;
					&lt;/div&gt;
					&lt;ul&gt;
						&lt;li&gt;&lt;a href="#"&gt;Read more&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href="#"&gt;Share this&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href="#"&gt;Become a member&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href="#"&gt;Donate&lt;/a&gt;&lt;/li&gt;
					&lt;/ul&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
		&lt;div class="ca-item ca-item-2"&gt;
			...
		&lt;/div&gt;
		...
	&lt;/div&gt;&lt;!-- ca-wrapper --&gt;
&lt;/div&gt;&lt;!-- ca-container --&gt;
</pre>
<p>The initial view of the content carousel:<br />
<img src="http://tympanus.net/codrops/wp-content/uploads/2011/08/CircularContentCarousel1.jpg" alt="" title="CircularContentCarousel1" width="580" height="252" class="aligncenter size-full wp-image-5485" /></p>
<p>When we click on &#8220;more&#8230;&#8221;, another content area will slide out and move the respective item to the left:<br />
<img src="http://tympanus.net/codrops/wp-content/uploads/2011/08/CircularContentCarousel2.jpg" alt="" title="CircularContentCarousel2" width="580" height="252" class="aligncenter size-full wp-image-5486" /></p>
<p>The default options are the following:</p>
<pre class="brush:js">
$('#ca-container').contentcarousel({
	// speed for the sliding animation
	sliderSpeed		: 500,
	// easing for the sliding animation
	sliderEasing	: 'easeOutExpo',
	// speed for the item animation (open / close)
	itemSpeed		: 500,
	// easing for the item animation (open / close)
	itemEasing		: 'easeOutExpo',
	// number of items to scroll at a time
	scroll			: 1
});
</pre>
<p>We hope you enjoy this simple carousel and find it useful!</p>
<p><a class="demo" href="http://tympanus.net/Development/CircularContentCarousel/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/CircularContentCarousel/CircularContentCarousel.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/08/16/circular-content-carousel/feed/</wfw:commentRss>
		<slash:comments>151</slash:comments>
		</item>
		<item>
		<title>Content Rotator with jQuery</title>
		<link>http://tympanus.net/codrops/2011/07/29/content-rotator/</link>
		<comments>http://tympanus.net/codrops/2011/07/29/content-rotator/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 15:44:03 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[autoplay]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[rotator]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=5386</guid>
		<description><![CDATA[Today we want to share a fancy content rotator with you. It shows some image with a headline and sub-headline in each slide and allows navigating through the slides using the thumbnails that also contain a headline. Hiding the thumbnails will reveal a scrollable text container and the navigation arrows will move up so that one can navigate to the previous or next slides. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/ContentRotator/example1.html" title="Content Rotator with jQuery" target="_blank"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/07/contentRotator.jpg" alt="" title="contentRotator" width="580" height="315" class="aligncenter size-full wp-image-5388" /></a><br />
<a class="demo" href="http://tympanus.net/Development/ContentRotator/example1.html" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/ContentRotator/ContentRotator.zip">Download source</a></p>
<p>Today we want to share a fancy content rotator with you. It shows some image with a headline and sub-headline in each slide and allows navigating through the slides using the thumbnails that also contain a headline. Hiding the thumbnails will reveal a scrollable text container and the navigation arrows will move up so that one can navigate to the previous or next slides. </p>
<p>The beautiful images are by <a href="http://www.behance.net/gallery/Pretty-woman/1486807" title="Pretty Woman by Andrey and Lili" target="_blank">Andrey &#038; Lili</a>. The images are licensed under the <a href="http://creativecommons.org/licenses/by-nc/3.0/" title="Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)" target="_blank">Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) License</a>.</p>
<p>We also use the <a href="http://brandonaaron.net/code/mousewheel/docs" title="jQuery Mousewheel Plugin Documentation" target="_blank">jQuery Mousewheel Plugin by Brandon Aaron</a> and the <a href="http://jscrollpane.kelvinluck.com/" title="jScrollPane" target="_blank">jScrollPane Plugin</a> by <a href="http://www.kelvinluck.com/" title="Kevin Luck" target="_blank">Kevin Luck</a>.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>Examples</h3>
<p>We have two examples, one with autoplay and one without:</p>
<ul>
<li><a href="http://tympanus.net/Development/ContentRotator/example2.html" target="_blank">Example with autoplay</a></li>
<li><a href="http://tympanus.net/Development/ContentRotator/example1.html" target="_blank">Example without autoplay</a></li>
</ul>
<p>For the HTML structure we will have a main container, the content wrapper and the container for the thumbs. Each cr-content-container needs an ID assigned which we will reference in each thumb with <strong>data-content</strong>:</p>
<pre class="brush:xml">
&lt;div class="cr-container" id="cr-container"&gt;
	&lt;div class="cr-content-wrapper" id="cr-content-wrapper"&gt;
		&lt;div class="cr-content-container" id="content-1" style="display:block;"&gt;
			&lt;img src="images/1.jpg"class="cr-img"/&gt;
			&lt;div class="cr-content"&gt;
				&lt;div class="cr-content-headline"&gt;
					&lt;h2&gt;The slide title&lt;/h2&gt;
					&lt;h3&gt;
						&lt;span&gt;Some sub-title&lt;/span&gt;
						&lt;a href="#" class="cr-more-link"&gt; read more &rarr;&lt;/a&gt;
					&lt;/h3&gt;
				&lt;/div&gt;
				&lt;div class="cr-content-text"&gt;
					&lt;p&gt;Some text here...&lt;/p&gt;
				&lt;/div&gt;
			&lt;/div&gt;&lt;!-- cr-content --&gt;
		&lt;/div&gt;&lt;!-- cr-content-container --&gt;
		&lt;div class="cr-content-container" id="content-2"&gt;
			...
		&lt;/div&gt;&lt;!-- cr-content-container --&gt;
		...
	&lt;/div&gt;&lt;!-- cr-content-wrapper --&gt;
	&lt;div class="cr-thumbs"&gt;
		&lt;div data-content="content-1" class="cr-selected"&gt;
			&lt;img src="images/thumbs/1.jpg"/&gt;
			&lt;h4&gt;The slide title&lt;/h4&gt;
		&lt;/div&gt;
		&lt;div data-content="content-2"&gt;
			&lt;img src="images/thumbs/2.jpg"/&gt;
			&lt;h4&gt;Another slide title&lt;/h4&gt;
		&lt;/div&gt;
		...
	&lt;/div&gt;&lt;!-- cr-thumbs --&gt;
&lt;/div&gt;&lt;!-- cr-container --&gt;
</pre>
<p>The default options are the following:</p>
<pre class="brush:js">
$('#cr-container').crotator({
	// slideshow on
	autoplay 			: false,
	// slideshow interval
	slideshow_interval 	: 3000,
	// if true the thumbs will be shown initially
	openThumbs			: true,
	// speed that the thumbs are shown / hidden
	toggleThumbsSpeed	: 300
});
</pre>
<p>We hope you like this little content rotator and find it useful!</p>
<p><a class="demo" href="http://tympanus.net/Development/ContentRotator/example1.html" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/ContentRotator/ContentRotator.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/07/29/content-rotator/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Rotating Image Slider with jQuery</title>
		<link>http://tympanus.net/codrops/2011/04/28/rotating-image-slider/</link>
		<comments>http://tympanus.net/codrops/2011/04/28/rotating-image-slider/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 15:32:06 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[rotating]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[transform]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=4701</guid>
		<description><![CDATA[View demo Download source In the following tutorial we will create an asymmetrical image slider with a little twist: when sliding the pictures we will slightly rotate them and delay the sliding of each element. The unusual shape of the slider is created by some elements placement and the use of thick borders. We will [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://tympanus.net/Tutorials/RotatingImageSlider/"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/04/RotatingImageSlider.jpg" alt="" title="RotatingImageSlider" width="580" height="315" class="aligncenter size-full wp-image-4704" /></a><br />
<a class="demo" href="http://tympanus.net/Tutorials/RotatingImageSlider/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Tutorials/RotatingImageSlider/RotatingImageSlider.zip">Download source</a></p>
<p>In the following tutorial we will create an asymmetrical image slider with a little twist: when sliding the pictures we will slightly rotate them and delay the sliding of each element. The unusual shape of the slider is created by some elements placement and the use of thick borders. We will also add an autoplay option and the mousewheel functionality.</p>
<p>We&#8217;ll use the <a target="_blank" href="https://github.com/heygrady/transform/wiki">jQuery 2D Transformation Plugin</a> for rotating the images and the <a target="_blank" href="https://github.com/brandonaaron/jquery-mousewheel">jQuery Mousewheel Plugin</a> by Brandon Aaron for the mousewheel control.</p>
<p>The beautiful photos are by Andrew and Lili and you can see their Behance profile here:<br />
<a target="_blank" href="http://www.behance.net/AndrewLili">http://www.behance.net/AndrewLili</a><br />
The images are licensed under the <a target="_blank" href="http://creativecommons.org/licenses/by-nc/3.0/">Creative Commons Attribution-NonCommercial 3.0 Unported License</a>.</p>
<p>Allrighty! Let&#8217;s start with the HTML!</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>The Markup</h3>
<p>First, we will wrap all our slider elements in a wrapper with the class &#8220;rm_wrapper&#8221;:</p>
<pre class="brush:xml">
&lt;div class="rm_wrapper"&gt;
...
&lt;/div&gt;
</pre>
<p>Inside of that wrapper we will have a container for the actual slider list, some mask and corner elements, the heading and a hidden div that will contain all the image sets:</p>
<pre class="brush:xml">
&lt;div id="rm_container" class="rm_container"&gt;
	&lt;ul&gt;
		&lt;li data-images="rm_container_1" data-rotation="-15"&gt;
			&lt;img src="images/1.jpg"/&gt;
		&lt;/li&gt;
		&lt;li data-images="rm_container_2" data-rotation="-5"&gt;
			&lt;img src="images/2.jpg"/&gt;
		&lt;/li&gt;
		&lt;li data-images="rm_container_3" data-rotation="5"&gt;
			&lt;img src="images/3.jpg"/&gt;
		&lt;/li&gt;
		&lt;li data-images="rm_container_4" data-rotation="15"&gt;
			&lt;img src="images/4.jpg"/&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;div id="rm_mask_left" class="rm_mask_left"&gt;&lt;/div&gt;
	&lt;div id="rm_mask_right" class="rm_mask_right"&gt;&lt;/div&gt;
	&lt;div id="rm_corner_left" class="rm_corner_left"&gt;&lt;/div&gt;
	&lt;div id="rm_corner_right" class="rm_corner_right"&gt;&lt;/div&gt;
	&lt;h2&gt;Fashion Explosion 2012&lt;/h2&gt;
	&lt;div style="display:none;"&gt;
		&lt;div id="rm_container_1"&gt;
			&lt;img src="images/1.jpg"/&gt;
			&lt;img src="images/5.jpg"/&gt;
			&lt;img src="images/6.jpg"/&gt;
			&lt;img src="images/7.jpg"/&gt;
		&lt;/div&gt;
		&lt;div id="rm_container_2"&gt;
			&lt;img src="images/2.jpg"/&gt;
			&lt;img src="images/8.jpg"/&gt;
			&lt;img src="images/9.jpg"/&gt;
			&lt;img src="images/10.jpg"/&gt;
		&lt;/div&gt;
		&lt;div id="rm_container_3"&gt;
			&lt;img src="images/3.jpg"/&gt;
			&lt;img src="images/11.jpg"/&gt;
			&lt;img src="images/12.jpg"/&gt;
			&lt;img src="images/13.jpg"/&gt;
		&lt;/div&gt;
		&lt;div id="rm_container_4"&gt;
			&lt;img src="images/4.jpg"/&gt;
			&lt;img src="images/14.jpg"/&gt;
			&lt;img src="images/15.jpg"/&gt;
			&lt;img src="images/16.jpg"/&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>So the unordered lists will have the first set of four images where each list element has some data attributes for the image sets and the rotation degree. We will use that data to know which images come next and how much each image should be rotated.</p>
<p>The mask and corner divs will be absolute elements that we will place on top of the slider, slightly rotated in order to cover some areas. Since we will use the same background color for these elements like the body&#8217;s background color, we will create the illusion of the images being shaped in a certain way.</p>
<p>Then we&#8217;ll add the elements for the navigation and the autoplay controls:</p>
<pre class="brush:xml">
&lt;div class="rm_nav"&gt;
	&lt;a id="rm_next" href="#" class="rm_next"&gt;&lt;/a&gt;
	&lt;a id="rm_prev" href="#" class="rm_prev"&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div class="rm_controls"&gt;
	&lt;a id="rm_play" href="#" class="rm_play"&gt;Play&lt;/a&gt;
	&lt;a id="rm_pause" href="#" class="rm_pause"&gt;Pause&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>Let&#8217;s take a look at the CSS.</p>
<h3>The CSS</h3>
<p>First, we&#8217;ll reset some styles and define the properties for the body. (Remember, if we would have another background color, we would want to change the background and border colors of some of the elements in our slider, too.)</p>
<pre class="brush:css">
@import url('reset.css');
body{
	background:#f0f0f0;
	color:#000;
	font-family: 'PT Sans Narrow', Arial, sans-serif;
	font-size:16px;
}
a{
	color:#000;
	text-decoration:none;
}
h1{
	padding:10px;
	margin:20px;
	font-size:40px;
	text-transform:uppercase;
	text-shadow:0px 0px 1px #fff;
	color:#333;
	background:transparent url(../images/line.png) repeat-x bottom left;
}
</pre>
<p>The main wrapper will have the following style:</p>
<pre class="brush:css">
.rm_wrapper{
	width:1160px;
	margin:0 auto;
	position:relative;
}
</pre>
<p>The container for the slider will have any overflow hidden, which will help shaping our slider since we will cut off the outer sides of it:</p>
<pre class="brush:css">
.rm_container{
	width:1050px;
	overflow:hidden;
	position:relative;
	height:530px;
	margin:0 auto;
}
</pre>
<p>The heading will have the following style:</p>
<pre class="brush:css">
.rm_container h2{
	background:transparent url(../images/lines.png) repeat top left;
	padding:10px 30px;
	position:absolute;
	bottom:170px;
	right:0px;
	color:#000;
	font-size:36px;
	text-transform:uppercase;
	text-shadow:1px 0px 1px #fff;
}
</pre>
<p>Let&#8217;s define the width for the ul to be bigger than the container since we want to make the list element float next to each other:</p>
<pre class="brush:css">
.rm_container ul{
	width:1170px;
}
</pre>
<p>By giving a negative left margin and a thick border to the list element, we will overlap the images and cut off the right sides so that we create our asymmetrical shapes by rotating the elements then. The border color will be the same like the background color of the body (or the container). </p>
<pre class="brush:css">
.rm_container ul li{
	float:left;
	margin-left:-80px;
	position:relative;
	overflow:hidden;
	width:310px;
	height:465px;
	border:30px solid #f0f0f0;
	border-width:50px 30px 0px 30px;
	background-color:#f0f0f0;
}
</pre>
<p>We&#8217;ll position the images absolutely:</p>
<pre class="brush:css">
.rm_container ul li img{
	position:absolute;
	top:0px;
	left:0px;
}
</pre>
<p>In the following we will style the mask and the corner elements. They will be all positioned absolutely and we&#8217;ll give them the grey background color. By rotating them, we&#8217;ll make the images to appear as being &#8220;shaped&#8221;:</p>
<pre class="brush:css">
.rm_mask_right, .rm_mask_left{
	position: absolute;
	height: 110px;
	background: #f0f0f0;
	width: 530px;
	bottom: -30px;
	left: 0px;
	-moz-transform:rotate(-3deg);
	-webkit-transform:rotate(-3deg);
	transform:rotate(-3deg);
}
.rm_mask_right{
	left:auto;
	right:0px;
	-moz-transform:rotate(3deg);
	-webkit-transform:rotate(3deg);
	transform:rotate(3deg);
}
.rm_corner_right, .rm_corner_left{
	background: #f0f0f0;
	position:absolute;
	width:200px;
	height:100px;
	bottom:0px;
	left:-65px;
	-moz-transform:rotate(45deg);
	-webkit-transform:rotate(45deg);
	transform:rotate(45deg);
}
.rm_corner_right{
	left:auto;
	right:-65px;
	-moz-transform:rotate(-45deg);
	-webkit-transform:rotate(-45deg);
	transform:rotate(-45deg);
}
</pre>
<p>The navigation elements will be placed to the left and right of the main container:</p>
<pre class="brush:css">
.rm_nav a{
	position:absolute;
	top:200px;
	width:38px;
	height:87px;
	cursor:pointer;
	opacity:0.7;
}
.rm_nav a:hover{
	opacity:1.0;
}
.rm_nav a.rm_next{
	background:transparent url(../images/next.png) no-repeat top left;
	right:0px;
}
.rm_nav a.rm_prev{
	background:transparent url(../images/prev.png) no-repeat top left;
	left:0px;
}
</pre>
<p>The pause/play control will be placed to the top left of the main container:</p>
<pre class="brush:css">
.rm_controls{
	position:absolute;
	top:0px;
	left:-40px;
	height:20px;
}
.rm_controls a{
	cursor:pointer;
	opacity:0.7;
	padding-left:24px;
	font-size:16px;
	text-transform:uppercase;
	height:20px;
	float:left;
	line-height:20px;
}
.rm_controls a:hover{
	opacity:1.0;
}
.rm_controls a.rm_play{
	display:none;
	background:transparent url(../images/play.png) no-repeat center left;
}
.rm_controls a.rm_pause{
	background:transparent url(../images/pause.png) no-repeat center left;
}
</pre>
<p>And that&#8217;s all the style! Let add the spice!</p>
<h3>The JavaScript</h3>
<p>The main idea for the slider functionality is to add another image before the current one with a slightly increased rotation degree than the current item. Then we will animate the rotation and make the new images appear.<br />
So let&#8217;s start by caching some elements and checking if we are dealing with a special needs browser in order to deal with some issues:</p>
<pre class="brush:js">
//our 4 items
var $listItems 		= $('#rm_container &gt; ul &gt; li'),
	totalItems		= $listItems.length,

	//the controls
	$rm_next		= $('#rm_next'),
	$rm_prev		= $('#rm_prev'),
	$rm_play		= $('#rm_play'),
	$rm_pause		= $('#rm_pause'),

	//the masks and corners of the slider
	$rm_mask_left	= $('#rm_mask_left'),
	$rm_mask_right	= $('#rm_mask_right'),
	$rm_corner_left	= $('#rm_corner_left'),
	$rm_corner_right= $('#rm_corner_right'),

	//check if the browser is &lt;= IE8
	ieLte8			= ($.browser.msie &#038;&#038; parseInt($.browser.version) &lt;= 8),
</pre>
<p>Then we will define our main function:</p>
<pre class="brush:js">
RotateImageMenu	= (function() {
...
})();

RotateImageMenu.init();
</pre>
<p>And then we define the following in our function:</p>
<pre class="brush:js">
	//difference of animation time between the items
var	timeDiff			= 300,
	//time between each image animation (slideshow)
	slideshowTime		= 3000,
	slideshowInterval,
	//checks if the images are rotating
	isRotating			= false,
	//how many images completed each slideshow iteration
	completed			= 0,
	/*
	all our images have 310 of width and 465 of height.
	this could / should be dynamically calculated
	if we would have different image sizes.

	we will set the rotation origin at
	x = width/2 and y = height*2
	*/
	origin				= ['155px', '930px'],
	init				= function() {
		configure();
		initEventsHandler();
	},
	//initialize some events
	initEventsHandler	= function() {
		/*
		next and previous arrows:
		we will stop the slideshow if active,
		and rotate each items images.
		1 	rotate right
		-1 	rotate left
		*/
		$rm_next.bind('click', function(e) {
			stopSlideshow();
			rotateImages(1);
			return false;
		});
		$rm_prev.bind('click', function(e) {
			stopSlideshow();
			rotateImages(-1);
			return false;
		});
		/*
		start and stop the slideshow
		*/
		$rm_play.bind('click', function(e) {
			startSlideshow();
			return false;
		});
		$rm_pause.bind('click', function(e) {
			stopSlideshow();
			return false;
		});
		/*
		adds events to the mouse and left / right keys
		*/
		$(document).bind('mousewheel', function(e, delta) {
			if(delta &gt; 0) {
				stopSlideshow();
				rotateImages(0);
			}
			else {
				stopSlideshow();
				rotateImages(1);
			}
			return false;
		}).keydown(function(e){
			switch(e.which){
				case 37:
					stopSlideshow();
					rotateImages(0);
					break;
				case 39:
					stopSlideshow();
					rotateImages(1);
					break;
			}
		});
	},
	/*
	rotates each items images.
	we set a delay between each item animation
	*/
	rotateImages		= function(dir) {
		//if the animation is in progress return
		if(isRotating) return false;

		isRotating = true;

		$listItems.each(function(i) {
			var $item 				= $(this),
				/*
				the delay calculation.
				if rotation is to the right,
				then the first item to rotate is the first one,
				otherwise the last one
				*/
				interval			= (dir === 1) ? i * timeDiff : (totalItems - 1 - i) * timeDiff;

			setTimeout(function() {
					//the images associated to this item
				var	$otherImages		= $('#' + $item.data('images')).children('img'),
					totalOtherImages	= $otherImages.length;

					//the current one
					$img				= $item.children('img:last'),
					//keep track of each items current image
					current				= $item.data('current');
					//out of bounds
					if(current &gt; totalOtherImages - 1)
						current = 0;
					else if(current &lt; 0)
						current = totalOtherImages - 1;

					//the next image to show and its
					//initial rotation (depends on dir)
					var otherRotation	= (dir === 1) ? '-30deg' : '30deg',
						$other			= $otherImages.eq(current).clone();

					//for IE &lt;= 8 we will not rotate,
					//but fade out / fade in ...
					//better than nothing :)
					if(!ieLte8)
						$other.css({
							rotate	: otherRotation,
							origin	: origin
						});

					(dir === 1) ? ++current : --current;

					//prepend the next image to the &lt;li&gt;
					$item.data('current', current).prepend($other);

					//the final rotation for the current image
					var rotateTo		= (dir === 1) ? '80deg' : '-80deg';

					if(!ieLte8) {
						$img.animate({
							rotate	: rotateTo
						}, 1200, function(){
							$(this).remove();
							++completed;
							if(completed === 4) {
								completed = 0;
								isRotating = false;
							}
						});
						$other.animate({
							rotate	: '0deg'
						}, 600);
					}
					else {
						$img.fadeOut(1200, function(){
							$(this).remove();
							++completed;
							if(completed === 4) {
								completed = 0;
								isRotating = false;
							}
						});
					}

			}, interval );
		});

	},
	//set initial rotations
	configure			= function() {
		if($.browser.msie &#038;&#038; !ieLte8)
			rotateMaskCorners();
		else if(ieLte8)
			hideMaskCorners();

		$listItems.each(function(i) {
			//the initial current is 1
			//since we already showing the first image
			var $item = $(this).data('current', 1);

			if(!ieLte8)
			$item.transform({rotate: $item.data('rotation') + 'deg'})
				 .find('img')
				 .transform({origin: origin});
		});
	},
	//rotates the masks and corners
	rotateMaskCorners	= function() {
		$rm_mask_left.transform({rotate: '-3deg'});
		$rm_mask_right.transform({rotate: '3deg'});
		$rm_corner_left.transform({rotate: '45deg'});
		$rm_corner_right.transform({rotate: '-45deg'});
	},
	//hides the masks and corners
	hideMaskCorners		= function() {
		$rm_mask_left.hide();
		$rm_mask_right.hide();
		$rm_corner_left.hide();
		$rm_corner_right.hide();
	},
	startSlideshow		= function() {
		clearInterval(slideshowInterval);
		rotateImages(1);
		slideshowInterval	= setInterval(function() {
			rotateImages(1);
		}, slideshowTime);
		//show the pause button and hide the play button
		$rm_play.hide();
		$rm_pause.show();
	},
	stopSlideshow		= function() {
		clearInterval(slideshowInterval);
		//show the play button and hide the pause button
		$rm_pause.hide();
		$rm_play.show();
	};

return {init : init};
</pre>
<p>As you noticed, we will treat older browsers a bit differently so that the slider works properly. </p>
<p>And that&#8217;s it! We really hope you enjoyed the tutorial and like the result!</p>
<p><a class="demo" href="http://tympanus.net/Tutorials/RotatingImageSlider/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Tutorials/RotatingImageSlider/RotatingImageSlider.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/04/28/rotating-image-slider/feed/</wfw:commentRss>
		<slash:comments>126</slash:comments>
		</item>
		<item>
		<title>3D Wall Gallery</title>
		<link>http://tympanus.net/codrops/2011/02/02/3d-wall-gallery/</link>
		<comments>http://tympanus.net/codrops/2011/02/02/3d-wall-gallery/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 12:41:37 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[perspective]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=4047</guid>
		<description><![CDATA[View demoDownload source Today we want to share our latest experiment with you: the 3D Wall Gallery. Using the Safari browser the images of this gallery will be put into 3D perspective, when scrolling or sliding. When viewed with another browser, the gallery will be shown normally, retaining all the functionality. For seeing the 3D [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/3DWallGallery/" target="_blank"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/02/3dwallgallery.jpg" alt="" title="3dwallgallery" width="580" height="315" class="aligncenter size-full wp-image-4060" /></a></p>
<p><a class="demo" href="http://tympanus.net/Development/3DWallGallery/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/3DWallGallery/3DWallGallery.zip">Download source</a></p>
<p>Today we want to share our latest experiment with you: the 3D Wall Gallery. Using the Safari browser the images of this gallery will be put into 3D perspective, when scrolling or sliding. When viewed with another browser, the gallery will be shown normally, retaining all the functionality.</p>
<p><strong>For seeing the 3D effect, please try the demo in Safari.</strong></p>
<p>Summarized, you can do the following things in this gallery:</p>
<ul>
<li>Hover an image to see a description</li>
<li>Slide through the images using the jQuery UI Slider at the top</li>
<li>Use the mouse wheel to scroll through the images</li>
<li>Use the thumbnail previewer at the bottom to choose an image</li>
<li>Use the hash anchor for the image in the URL to get to it directly</li>
<li>Click on an image to slide it to the left (notice the hash anchor in the URL)</li>
<li><strong>Turn it into a 3D wall when scrolling/sliding (Safari users)</strong></li>
<li><strong>Flipping the perspective when changing the slide/scroll direction (Safari users)</strong></li>
</ul>
<p>We are using the jQuery hash change plugin by Ben Alman:<br />
<a href="http://benalman.com/projects/jquery-hashchange-plugin/" target="_blank">jQuery Hashchange Plugin</a></p>
<p>And we are also using the jQuery Mousewheel Plugin by Brandon Aaron:<br />
<a href="http://brandonaaron.net/code/mousewheel/docs" target="_blank">jQuery Mousewheel Plugin</a></p>
<p>The beautiful photography is by Alan Antiporda from Illusive Photography and you can find his Flickr Photostream here: <a target="_blank" href="http://www.flickr.com/photos/alanant">Illusive Photography Photostream</a></p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<p><img src="http://tympanus.net/codrops/wp-content/uploads/2011/02/3dwall_image0.jpg" alt="" title="3dwall_image0" width="580" height="304" class="nofancy aligncenter size-full wp-image-4048" /><br />
When viewed in the Safari browser, you will see the perspective happening while scrolling or sliding. When changing the direction of scrolling, you will notice that the perspective will tilt to the other side.</p>
<p><img src="http://tympanus.net/codrops/wp-content/uploads/2011/02/3dwall_image1.jpg" alt="" title="3dwall_image1" width="580" height="304" class="nofancy aligncenter size-full wp-image-4049" /><br />
You can navigate through the images by either using the jQuery UI slider at the top or your mousewheel. </p>
<p><img src="http://tympanus.net/codrops/wp-content/uploads/2011/02/3dwall_image2.jpg" alt="" title="3dwall_image2" width="580" height="304" class="nofancy aligncenter size-full wp-image-4050" /><br />
You can also use the thumbnails previewer to click on an image and get to it directly.</p>
<p><img src="http://tympanus.net/codrops/wp-content/uploads/2011/02/3dwall_image3.jpg" alt="" title="3dwall_image3" width="580" height="304" class="nofancy aligncenter size-full wp-image-4051" /><br />
When hovering over an image you can see a little description at the top.</p>
<p>We hope that you enjoy our little experiment and find it useful!</p>
<p><a class="demo" href="http://tympanus.net/Development/3DWallGallery/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/3DWallGallery/3DWallGallery.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/02/02/3d-wall-gallery/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Thumbnails Preview Slider with jQuery</title>
		<link>http://tympanus.net/codrops/2011/01/27/thumbnails-preview-slider/</link>
		<comments>http://tympanus.net/codrops/2011/01/27/thumbnails-preview-slider/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 14:27:37 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=3849</guid>
		<description><![CDATA[View demoDownload source In this tutorial we will show you how to create and use a thumbnails preview slider with jQuery. Since we got a lot of requests to show how to make the preview slider work separately from the full image view, we decided to make a tutorial on how to use the little [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://tympanus.net/Tutorials/ThumbnailsPreviewSlider/" target="_blank"><img class="aligncenter size-full wp-image-3870" title="thumbnailsPreviewSlider" src="http://tympanus.net/codrops/wp-content/uploads/2011/01/thumbnailsPreviewSlider2.jpg" alt="" width="580" height="315" /></a></p>
<p><a class="demo" href="http://tympanus.net/Tutorials/ThumbnailsPreviewSlider/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Tutorials/ThumbnailsPreviewSlider/ThumbnailsPreviewSlider.zip">Download source</a></p>
<p>In this tutorial we will show you how to create and use a thumbnails preview slider with jQuery. Since we got a lot of requests to show how to make the preview slider work separately from the full image view, we decided to make a tutorial on how to use the little thumbnails preview part only.</p>
<p>Check out the <a href="http://tympanus.net/codrops/2011/01/19/sweet-thumbnails-gallery/">Sweet Thumbnails Preview Gallery</a> where me make use of the thumbnails slider idea.</p>
<p>The images are by talented tibchris and you can find them on his Flickr photostream:<br />
<a href="http://www.flickr.com/photos/arcticpuppy/" target="_blank">tibchris&#8217; photostream</a></p>
<p>So, let&#8217;s start with the markup.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>The Markup</h3>
<p>The HTML structure will be built up of a main container list that will hold the dot items and a special list item for the thumbnails. The special list item will have the class &#8220;ts_thumbnails&#8221; and it will be the element that holds the little window where we will see the thumbnails once we hover over a dot.</p>
<pre class="brush:xml">&lt;ul class="ts_container"&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 1&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 2&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 3&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 4&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 5&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 6&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 7&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 8&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 9&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Image 10&lt;/a&gt;&lt;/li&gt;
	&lt;li class="ts_thumbnails"&gt;
		&lt;div class="ts_preview_wrapper"&gt;
			&lt;!-- List with thumbnails/preview items --&gt;
		&lt;/div&gt;
		&lt;span&gt;&lt;/span&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>The empty span will be the little triangle that points to the current dot.<br />
The thumbnails list which will be inside of the div with the class &#8220;ts_preview_wrapper&#8221; will have the following structure:</p>
<pre class="brush:xml">&lt;ul class="ts_preview"&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/1.jpg" alt="Thumb 1" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/2.jpg" alt="Thumb 2" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/3.jpg" alt="Thumb 3" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/4.jpg" alt="Thumb 4" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/5.jpg" alt="Thumb 5" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/6.jpg" alt="Thumb 6" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/7.jpg" alt="Thumb 7" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/8.jpg" alt="Thumb 8" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/9.jpg" alt="Thumb 9" /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src="images/thumbs1/10.jpg" alt="Thumb 10" /&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Now, let&#8217;s take a look at the style.</p>
<h3>The CSS</h3>
<p>The main container list will be of relative positioning and its width will be the sum of the all the dots&#8217; widths:</p>
<pre class="brush:css">ul.ts_container{
	list-style:none;
	margin:0;
	padding:0;
	width:170px;
	margin:20px auto;
	position:relative;
	height:17px;
}
</pre>
<p>Like we will see later, the width of a dot is 11 plus a padding on each side of 3 pixels. This is just a general style for the main that we will we using in all three showcases. If you have more than 10 dots, you will need to adapt this value to fit all the items (same for the height).</p>
<p>The list items, i.e. the dots, will float left:</p>
<pre class="brush:css">ul.ts_container li{
	float:left;
}
</pre>
<p>The dots itself will be a background image and we will indent the text so that we don&#8217;t see it:</p>
<pre class="brush:css">ul.ts_container li a{
	display:block;
	text-indent:-9000px;
	width:11px;
	height:11px;
	outline:none;
	padding:0px 3px;
	background:transparent url(../images/sliderIcons/dot.png) no-repeat top center;
}
</pre>
<p>On hover, we will change the position of the background image so that we see the lower part of it:</p>
<pre class="brush:css">ul.ts_container li a:hover,
ul.ts_container li.selected a{
	background-position:50% -11px;
}
</pre>
<p>The last list item which is our special thumbnails container will be of absolute positioning since we want to move it around. It&#8217;s initially not visible:</p>
<pre class="brush:css">ul.ts_container li.ts_thumbnails{
	display:none;
	position:absolute;
}
</pre>
<p>The empty span will be our little triangle. We will set it&#8217;s position dynamically since it depends on the size of your thumbnails:</p>
<pre class="brush:css">ul.ts_container li.ts_thumbnails span{
	background:transparent url(../images/sliderIcons/triangle.png) no-repeat top center;
	width:15px;
	height:6px;
	position:absolute;
}
</pre>
<p><strong>Tip:</strong> If you feel generally uncomfortable with using empty elements in your HTML, simply add a meaningful text to it and set the text-indent to a very low value so that it&#8217;s not visible. Your HTML will be more readable and you can sleep better :)</p>
<p>The preview wrapper will have a white border and a nice box shadow. The dimensions are, again, set dynamically since they depend on the size of your thumbnails. The overflow should be hidden, because we will have a row of thumbnails in the list inside of this wrapper:</p>
<pre class="brush:css">.ts_preview_wrapper{
	border:5px solid #fff;
	overflow:hidden;
	position:relative;
	-moz-box-shadow:0px 0px 5px #999;
	-webkit-box-shadow:0px 0px 5px #999;
	box-shadow:0px 0px 5px #999;
}
</pre>
<p>The list with all the thumbnails will be absolute, since we want to animate its left position in order to show the right thumbnail. The dimensions are calculated dynamically, for example, the width will be the sum of all thumbnails widths. But we will look into that when we define our JavaScript function.</p>
<pre class="brush:css">ul.ts_preview{
	position:absolute;
	left:0px;
	top:0px;
	margin:0;
	padding:0;
	list-style-type:none;
}
</pre>
<p>The list items that hold the thumbnails will be floating left, so that they are stacked horizontally:</p>
<pre class="brush:css">ul.ts_preview li{
	float:left;
}
</pre>
<p>The thumbnails need to be display block, to avoid any spacing in the li:</p>
<pre class="brush:css">ul.ts_preview li img{
	display:block;
}
</pre>
<p>And that&#8217;s all the style! Let make some magic and go through one example.</p>
<h3>The JavaScript</h3>
<p>The main idea of this little thumbnail slider is to be able to use it with any (reasonable) size of thumbnails and to add certain effects to it. So, we will make a plugin which will look as follows:</p>
<pre class="brush:js">(function($) {
	$.fn.thumbnailSlider = function(options) {
		var opts = $.extend({}, $.fn.thumbnailSlider.defaults, options);
		return this.each(function() {
			...
		});
	};
	$.fn.thumbnailSlider.defaults = {
		speed		: 100, //speed of each slide animation
		easing		: 'jswing', //easing effect for the slide animation
		thumb_width	: 75, //your photos width
		thumb_height: 75, //your photos height
		zoom		: false, //zoom animation for the thumbs
		zoomratio	: 1.3, //multiplicator for zoom (must be &gt; 1)
		zoomspeed	: 15000, //speed of zoom animation
		onClick		: function(){return false;} //click callback
	};
})(jQuery);
</pre>
<p>Now let&#8217;s take a deeper look at the plugin functionality. First, we need to define some variables:</p>
<pre class="brush:js">var $this 				= $(this),
	o 					= $.meta ? $.extend({}, opts, $pxs_container.data()) : opts;

var $ts_container		= $this.children('.ts_container'),
	$ts_thumbnails		= $ts_container.children('.ts_thumbnails'),
	$nav_elems			= $ts_container.children('li').not($ts_thumbnails),
	total_elems			= $nav_elems.length,
	$ts_preview_wrapper	= $ts_thumbnails.children('.ts_preview_wrapper'),
	$arrow				= $ts_thumbnails.children('span'),
	$ts_preview			= $ts_preview_wrapper.children('.ts_preview');
</pre>
<p>We also need to calculate some values that we need to set to certain elements. The &#8220;ts_thumbnails&#8221; container which is our little white frame that holds the list of thumbnails, will have a width composed of the thumbnail width and its border (which is 5 pixels on each side). The height will also contain the height of the little triangle span which is 6 pixels. The top will always be the same, a negative value since we need to &#8220;pull it up&#8221; to be above the dot list. The left value is calculated by getting the left position of the current dot and subtracting half of the thumbnails width. This will position it at the beginning of the respective dot, so we need to add half of the dot&#8217;s width in order really center it correctly above the dot:</p>
<pre class="brush:js">/*
calculate sizes for $ts_thumbnails:
width 	-&gt; width thumbnail + border (2*5)
height 	-&gt; height thumbnail + border + triangle height(6)
top		-&gt; -(height plus margin of 5)
left	-&gt; leftDot - 0.5*width + 0.5*widthNavDot
	this will be set when hovering a dot,
	and the default value will correspond to the first nav dot
*/
var w_ts_thumbnails	= o.thumb_width + 2*5,
	h_ts_thumbnails	= o.thumb_height + 2*5 + 6,
	t_ts_thumbnails	= -(h_ts_thumbnails + 5),
	$first_nav		= $nav_elems.eq(0),
	l_ts_thumbnails	= $first_nav.position().left - 0.5*w_ts_thumbnails + 0.5*$first_nav.width();
</pre>
<p>Now we need to set all those values:</p>
<pre class="brush:js">$ts_thumbnails.css({
	width	: w_ts_thumbnails + 'px',
	height	: h_ts_thumbnails + 'px',
	top		: t_ts_thumbnails + 'px',
	left	: l_ts_thumbnails + 'px'
});
</pre>
<p>Next step is to position the triangle correctly. For calculating the top of the triangle we need the height of the thumb plus its border. The left value will depend on the width of the thumbnail: we take the width plus the border and take half of that, and then we subtract half of the width of the triangle. This will center the little triangle:</p>
<pre class="brush:js">/*
calculate the top and left for the triangle/tooltip
top		-&gt; thumb height + border(2*5)
left	-&gt; (thumb width + border)/2 -width/2
*/
var t_arrow	= o.thumb_height + 2*5,
	l_arrow	= (o.thumb_width + 2*5) / 2 - $arrow.width() / 2;
$arrow.css({
	left	: l_arrow + 'px',
	top		: t_arrow + 'px',
});
</pre>
<p>The list &#8220;ts_preview&#8221; that holds all the thumbnails, needs a width and we can calculate it by multiplying the width of a thumbnail with the number of total thumbnails:</p>
<pre class="brush:js">/*
calculate the $ts_preview width -&gt; thumb width times number of thumbs
*/
$ts_preview.css('width' , total_elems*o.thumb_width + 'px');
</pre>
<p>Then we set its width and also its height, which will simply be the height of a thumbnail:</p>
<pre class="brush:js">$ts_preview_wrapper.css({
	width	: o.thumb_width + 'px',
	height	: o.thumb_height + 'px'
});
</pre>
<p>Now we will define what happens when we hover a navigation element i.e. a dot. We&#8217;ll get the index of the dot to know to which thumbnail item we need to slide to. Then we calculate the left value to which we want to slide the frame to, i.e. the &#8220;ts_thumbnails&#8221; list item. We also animate the list of thumbnails to the right position which we know because of the current index of the dot.</p>
<p>If the zoom option was chosen, we will increase the width and height of the thumbnail:</p>
<pre class="brush:js">$nav_elems.bind('mouseenter',function(){
	var $nav_elem	= $(this),
		idx			= $nav_elem.index();

	/*
	calculate the new left
	for $ts_thumbnails
	*/
	var new_left	= $nav_elem.position().left - 0.5*w_ts_thumbnails + 0.5*$nav_elem.width();

	$ts_thumbnails.stop(true)
				  .show()
				  .animate({
					left	: new_left + 'px'
				  },o.speed,o.easing);				  

	/*
	animate the left of the $ts_preview to show the right thumb
	*/
	$ts_preview.stop(true)
			   .animate({
					left	: -idx*o.thumb_width + 'px'
			   },o.speed,o.easing);

	//zoom in the thumb image if zoom is true
	if(o.zoom &amp;&amp; o.zoomratio &gt; 1){
		var new_width	= o.zoomratio * o.thumb_width,
			new_height	= o.zoomratio * o.thumb_height;

		//increase the $ts_preview width in order to fit the zoomed image
		var ts_preview_w	= $ts_preview.width();
		$ts_preview.css('width' , (ts_preview_w - o.thumb_width + new_width)  + 'px');

		$ts_preview.children().eq(idx).find('img').stop().animate({
			width		: new_width + 'px',
			height		: new_height + 'px'
		},o.zoomspeed);
	}		

}).bind('mouseleave',function(){
	//if zoom set the width and height to defaults
	if(o.zoom &amp;&amp; o.zoomratio &gt; 1){
		var $nav_elem	= $(this),
			idx			= $nav_elem.index();
		$ts_preview.children().eq(idx).find('img').stop().css({
			width	: o.thumb_width + 'px',
			height	: o.thumb_height + 'px'
		});
	}

	$ts_thumbnails.stop(true)
				  .hide();

}).bind('click',function(){
	var $nav_elem	= $(this),
		idx			= $nav_elem.index();

	o.onClick(idx);
});
</pre>
<p>And that&#8217;s it! Now, let&#8217;s take a look at some examples!</p>
<h3>Example</h3>
<p><img class="nofancy alignleft size-full wp-image-3864" title="example_demo3_thumbnailSlider" src="http://tympanus.net/codrops/wp-content/uploads/2011/01/example_demo3_thumbnailSlider.jpg" alt="" width="102" height="146" /><br />
In the demo you will see four different examples, we will show you how to apply the last one. For that, we need to set the width and the height of the thumbnails and define some other parameters. We want the image to zoom in when we hover over the dot, so the following parameters are set:</p>
<pre class="brush:js">$('#demo4').thumbnailSlider({
	thumb_width	: 174,
	thumb_height: 260,
	speed		: 200,
	zoom		: true,
	zoomspeed	: 10000,
	zoomratio	: 1.7
});
</pre>
<p>We hope you enjoyed the tutorial and find it useful!</p>
<p><a class="demo" href="http://tympanus.net/Tutorials/ThumbnailsPreviewSlider/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Tutorials/ThumbnailsPreviewSlider/ThumbnailsPreviewSlider.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/01/27/thumbnails-preview-slider/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/slider/feed/ ) in 0.29371 seconds, on May 24th, 2012 at 12:58 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 24th, 2012 at 1:58 am UTC -->
