<?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>Jon Gaulin &#187; Tutorials</title>
	<atom:link href="http://www.jongaulin.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jongaulin.com</link>
	<description>Web Developer living in Toronto Ontario, come back regularly for up to date web design tutorials, freebies and inpiration</description>
	<lastBuildDate>Mon, 11 Oct 2021 17:02:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Firefly Jquery Plugin</title>
		<link>http://www.jongaulin.com/2012/03/07/firefly-jquery-plugin/</link>
		<comments>http://www.jongaulin.com/2012/03/07/firefly-jquery-plugin/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 08:30:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://jongaulin.com/?p=627</guid>
		<description><![CDATA[Noise is an important part of most designs when it comes to websites. It helps direct the ...]]></description>
				<content:encoded><![CDATA[<div id="demo-buttons-container">
<img src="/wp-content/uploads/2011/11/try-it.png" /><br />
<a href="/articles/firefly/" class="demo-button" target="_blank"></a><a href="/articles/firefly/firefly.zip" class="download-button"></a>
</div>
<p><br class="clear" /></p>
<p>Noise is an important part of most designs when it comes to websites. It helps direct the user’s attention to certain parts of the site without overwhelming them. I&#8217;ve recently started seeing sites use a type of Javascript animation that is really appealing to me. It&#8217;s subtle and at the same time has a huge impact on the design. </p>
<p><span id="more-627"></span></p>
<p>The plugin is called Firefly by <a href="http://motyar.blogspot.com/2010/04/firefly-jquery-animation-plugin.html" rel="nofollow" target="_blank">Motyar</a>. It&#8217;s incredibly easy to add to your site and can really bring the design to life. </p>
<p>To add it on your website you will first need to include your jquery file, you can download the recent version of jquery from the site <a href="http://jquery.com/" target="_blank" rel="nofollow">http://jquery.com/</a>.</p>
<p>Once you have that installed head over to the plugin page on GitHub and download the plugin <a href="https://github.com/motyar/firefly" target="_blank" rel="nofollow">https://github.com/motyar/firefly</a>.</p>
<p>Once you have both javascript files, simply include them in your code like so:</p>
<pre lang="html4strict">
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.firefly.js"></script>
</pre>
<p>And then call the plugins function with this:</p>
<pre lang="javascript">
$(document).ready(function() {
	$.firefly(); 	
});
</pre>
<p>The plugin allows for customization with two options &#8216;images&#8217; and &#8216;total&#8217;. Images, lets you call whichever image you want to float on the screen. Total, allows you to define the amount of images to pull onto the screen at a time.</p>
<pre lang="javascript">
$(document).ready(function() {
	$.firefly({images : ['1.jpg', '2.jpg'],total : 40}); 	
});
</pre>
<p>And that&#8217;s it, you now have floating pixels on your website. You can use this plugin to add particles to a photography site, add fireflies to a field background image, add water debris, stars&#8230; the list goes on, its use is only limited by your imagination. Here are a couple example sites:</p>
<h3>Quazar Web Design</h3>
<p><a href="http://www.quazarwebdesign.com/" class="top-design-thumb" target="_blank" rel="nofollow"><img src="/inspiration/feb/1.jpg" /></a></p>
<h3>FireFly</h3>
<p><a href="http://www.itsfirefly.com/" class="top-design-thumb" target="_blank" rel="nofollow"><img src="/articles/firefly/example1.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jongaulin.com/2012/03/07/firefly-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Free Minimalist Portfolio</title>
		<link>http://www.jongaulin.com/2011/11/24/free-minimalist-portfolio/</link>
		<comments>http://www.jongaulin.com/2011/11/24/free-minimalist-portfolio/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 08:30:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://jongaulin.com/?p=399</guid>
		<description><![CDATA[Best viewed in Chrome and Safari Basic HTML knowledge required Includes HTML, CSS and javascript files Also ...]]></description>
				<content:encoded><![CDATA[<div id="demo-buttons-container">
<img src="/wp-content/uploads/2011/11/try-it.png" /><br />
<a href="/demos/minimalfolio/index.html" class="demo-button" target="_blank"></a><a href="/demos/minimalfolio/minimalfolio-demo.zip" class="download-button"></a>
</div>
<p><br class="clear" /></p>
<ul>
<li>Best viewed in Chrome and Safari</li>
<li>Basic HTML knowledge required</li>
<li>Includes HTML, CSS and javascript files</li>
<li>Also includes photoshop file</li>
</ul>
<p>When it comes to web design I&#8217;m a huge fan of both minimalism as well as heavy imagery. If you&#8217;re a photographer, artist or designer, minimalism is a great way to emphasize your work.It allows the user to focus on a single aspect of the site at a time while still remaining visually pleasing.</p>
<p><span id="more-399"></span></p>
<p>I recently put together a minimalist portfolio design which I haven&#8217;t yet been able to use. I started with just the design and decided to chop it up and code it to feature on the blog. </p>
<p>The design itself is fairly simple but also very easy on the eyes. As for the code, I used Codrops&#8217; &#8216;Slicebox&#8217;. A great slideshow plugin that utilizes the CSS3 3D transform property. You can read up on some of the documentation on their <a href="http://tympanus.net/codrops/2011/09/05/slicebox-3d-image-slider/" target="_blank" rel="nofollow">site</a>. I&#8217;m also using the <a href="http://bxslider.com/" target="_blank" rel="nofollow">bxslider</a> along with <a href="http://fancybox.net/" target="_blank" rel="nofollow">fancybox</a> for the subfeature thumbnail image slides.</p>
<p>Feel free to download the source files and use them for your project. They&#8217;re very easy to customize, simply replace the image paths in the array:</p>
<pre lang="javascript">
var thumbImages = [
     "image/large-1.jpg",
     "image/large-2.jpg",
     "image/large-3.jpg",
     "image/large-4.jpg",
     "image/large-5.jpg",
     "image/large-6.jpg"
];
</pre>
<p>with you&#8217;re own images and you&#8217;re good to go.</p>
<p>For the thumbnails you can use your full sized images and it will resize it accordingly. Just replace the image paths:</p>
<pre lang="html4strict">
<div id="sb-slider" class="sb-slider">
     <img src="image/img-1.jpg" />
     <img src="image/img-2.jpg" />
     <img src="image/img-3.jpg" />
     <img src="image/img-4.jpg" />
</div>
</pre>
<h2>About Page</h2>
<p>The about page is pretty straight forward, you can replace the text and image to customize it.</p>
<h2>Portfolio Page</h2>
<p>The portfolio page is similar to the home page, with regards to the image replacement. Simply replace the images in the array:</p>
<pre lang="javascript">
var portfolioImage = [
     "image/large-1.jpg",
     "image/large-2.jpg",
     "image/large-3.jpg",
     "image/large-4.jpg",
     "image/large-5.jpg",
     "image/large-6.jpg"
];
</pre>
<p>with you&#8217;re own images.</p>
<h2>Contact Page</h2>
<p>The contact page form is set up visually but you will need to add <a href="http://phpmailer.worxware.com/" target="_blank" rel="nofollow">phpmailer</a> or some form of mailer for the functionality.</p>
<p>If you have any questions feel free to send me a message or post in the comments.</p>
<p>Enjoy <a href="http://jongaulin.com/category/freebies/"> <img src='http://www.jongaulin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </a></p>
<h2>EDIT:</h2>
<p>There was a bug with the Slicebox plugin that made it break in Firefox 10. I&#8217;ve made a quick modification to the plugin for now until I can find a better solution to the problem. Here&#8217;s the fix:</p>
<p>On line 93 of the plugin (jquery.slicebox.js) replace:</p>
<pre lang="javascript">
if( Modernizr.csstransforms3d )
</pre>
<p>With:</p>
<pre lang="javascript">
if( Modernizr.csstransforms3d &#038;&#038; navigator.userAgent.indexOf("Firefox") == -1 )
</pre>
<p>And on line 101 of the index.html page replace:</p>
<pre lang="javascript">
if( !Modernizr.csstransforms3d )
</pre>
<p>With</p>
<pre lang="javascript">
if( !Modernizr.csstransforms3d || navigator.userAgent.indexOf("Firefox") != -1 )
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jongaulin.com/2011/11/24/free-minimalist-portfolio/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Fullscreen slider</title>
		<link>http://www.jongaulin.com/2011/11/17/fullscreen-image-and-content-slider/</link>
		<comments>http://www.jongaulin.com/2011/11/17/fullscreen-image-and-content-slider/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 08:00:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://jongaulin.com/?p=246</guid>
		<description><![CDATA[Often times when a client asks for special customizations or animations to their site, I will dig ...]]></description>
				<content:encoded><![CDATA[<div id="demo-buttons-container">
<a href="/demos/fullscreen-slider/step-3/slideshow-step-3.html" class="demo-button" target="_blank"></a><a href="/demos/fullscreen-slider/step-3/step-3.zip" class="download-button"></a>
</div>
<p><br class="clear" /></p>
<p>Often times when a client asks for special customizations or animations to their site, I will dig for a jQuery plugin that accomplishes my goal. However, on occasion, when the customizations become overly original, I will need to put something together on my own. At least with the help of multiple plugins.</p>
<p><span id="more-246"></span></p>
<p>Recently I was asked to put together a micro site for a company and in the requirements they asked for the following:</p>
<ol>
<li>A full screen image scroller, with proportionate images.</li>
<li>Scrolling content that corresponds with each of the images.</li>
<li>The ability to flip through content pages on a per slide basis.</li>
<li>Image thumbnail navigation for each of the images.</li>
<li>And i think thats it&#8230;. oh, and to make it compatible in IE7 and up&#8230;</li>
</ol>
<p>I searched high and low for a simple plugin that could achieve all of these things and found many candidates. But the customizations were too vast and specific for any one plugin to accomplish. I decided to pick the project apart and find solutions for each of the tasks at hand.</p>
<p>Here are the plugins I used for the project:</p>
<ol>
<li><a href="http://srobbin.com/blog/jquery-plugins/jquery-backstretch/" target="_blank">Srobbins Jquery Backstretch</a></li>
<li><a href="http://bxslider.com/" target="_blank">BX Slider</a></li>
<li><a href="http://lab.smashup.it/flip" target="_blank">Flip.js</a></li>
</ol>
<p>I&#8217;ve divided this tutorial into three sections each one adding a new plugin to the page.</p>
<p>We&#8217;ll begin by putting together a page with the full screen slider.</p>
<div class="divider"></div>
<h3><strong>Step 1</strong> &#8211; Full Screen Image Slider</h3>
<p><a class="top-design-thumb" href="/demos/fullscreen-slider/step-1/slideshow-step-1.html" target="_blank"><img src="/wp-content/uploads/2011/11/step-1-thumb.jpg" style="margin-bottom:20px;" alt="" /></a></p>
<p><a href="/demos/fullscreen-slider/step-1/slideshow-step-1.html" class="demo-button" target="_blank">Demo</a><a href="/demos/fullscreen-slider/step-1/step-1.zip" class="download-button">Download</a><br />
<br class="clear" /></p>
<p>Let&#8217;s start by setting up the fullscreen slider. In the demo you&#8217;ll notice i&#8217;m using a combination of Backstretch and a simple image preloader. Without the preloader, a new visitor may not see the images before the slider transitions to the next slide. So to be safe we preload all the images before initiating the slider. <br />
First we&#8217;ll include the scripts:</p>
<pre lang="javascript">
&lt;script src="js/jquery-1.7.min.js"&gt;&lt;/script&gt;
&lt;script src="js/jquery.backstretch.min.js"&gt;&lt;/script&gt;
&lt;script src="js/preloader.js"&gt;&lt;/script&gt; 
</pre>
<p>To make things a little easier I put the preloader into its own file and called it onto the page. <a href="/demos/fullscreen-slider/step-1/js/preloader.js" target="_blank">Download the preloader here</a>.<br />
And here&#8217;s how I did it:</p>
<p>Javascript:</p>
<pre lang="Javascript">
$(document).ready(function(){
$(function() {

var images = [
	"images/img_1.jpg",
	"images/img_2.jpg",
	"images/img_3.jpg",
	"images/img_4.jpg"
];
var index = 0;
var transitionSpeed = 500;
var imageIntervals = 5000;
var startIntervals;
var intervalSetTime;

$.preload(images, {
    init: function(loaded, total) {
     $("#indicator").html("<img src='images/load.gif' />");
    },
	
   loaded_all: function(loaded, total) {
    $('#indicator').fadeOut('slow', function() {
	
     var index = 0;
     $.backstretch(images[index], {speed: transitionSpeed });
			
     startIntervals = function (){
        intervalSetTime = setInterval(function() {
        index = (index >= images.length - 1) ? 0 : index + 1;
        $.backstretch(images[index]);
        }, imageIntervals)};
					
        startIntervals();
			
    });
   }
  });
});
});
</pre>
<p>CSS:</p>
<pre lang="CSS">
  #logo{
    width:273px; 
    height:100px; 
    margin:40px 0px 0px 40px;
  }
  #indicator{
    width:48px; 
    position:absolute; 
    left:50%; 
    margin:200px 0px 0px -24px;
  }
</pre>
<p>HTML:</p>
<pre lang="html4strict">
&lt;div id=&quot;logo&quot;&gt;&lt;img src=&quot;images/logo.png&quot; /&gt;&lt;/div&gt; 
&lt;div id=&quot;indicator&quot;&gt;&lt;/div&gt;
</pre>
<p>Setting up the backstretch javascript is very simple. Just copy the javascript code and replace the image array paths according to the images you want pulled to the page.</p>
<p>Replace image paths:</p>
<pre lang="Javascript">
var images = [
	"images/img_1.jpg",
	"images/img_2.jpg",
	"images/img_3.jpg",
	"images/img_4.jpg"
];
</pre>
<p>You can set the transition speed and pause time by changing the &#8216;transitionSpeed&#8217; and &#8216;imageIntervals&#8217; variables</p>
<p>Replace speed variable:</p>
<pre lang="Javascript">
var transitionSpeed = 500;
</pre>
<p>And the pause time:</p>
<pre lang="Javascript">
var imageIntervals = 5000;
</pre>
<p>That&#8217;s about it for step 1, you should now have a fully functional Full Screen Image slider&#8230; that&#8217;s a mouth full</p>
<div class="divider"></div>
<h3><strong>Step 2</strong> &#8211; Full Screen Image Slider with content</h3>
<p><a class="top-design-thumb" href="/demos/fullscreen-slider/step-2/slideshow-step-2.html" target="_blank"><img src="/demos/fullscreen-slider/step-2/images/thumb.jpg" style="margin-bottom:20px;" alt="" /></a></p>
<p><a href="/demos/fullscreen-slider/step-2/slideshow-step-2.html" class="demo-button" target="_blank">Demo</a><a href="/demos/fullscreen-slider/step-2/step-2.zip" class="download-button">Download</a><br />
<br class="clear" /></p>
<p>The following instructions are in addition to step 1.</p>
<p>Now that we have our full screen image slider up and running, we can start with the content. For this example I&#8217;m using hipster ipsum as filler text, you can only look at so much lorem ipsum before it bores you to tears. First off we need to include our &#8216;bxslider&#8217; file:</p>
<pre lang="Javascript">
&lt;script src="js/jquery.bxSlider.min.js"&gt;&lt;/script&gt; 
</pre>
<p>Once we have that we&#8217;ll need to add 2 variables to the mix &#8216;slider&#8217; and &#8216;contentOpen&#8217;. Here&#8217;s how they&#8217;ll look: </p>
<pre lang="Javascript">
var slider;
var contentOpen = false;
</pre>
<p>Now we can initialize the bxslider which will contain the content relevant to the slide. You can read the documentation for the bxslider on their <a href="http://bxslider.com/" target="_blank">site</a>. Here&#8217;s how it looks:</p>
<pre lang="Javascript">
slider = $('#slider1').bxSlider({
    mode: 'fade',
    controls: false,
    pause: imageIntervals
});
</pre>
<p>Next we will need to generate the thumbnails. To do this I pull the regular sized images from the &#8216;images&#8217; array, size them to 75px width and append them into the &#8216;thumb-container&#8217;, which i placed at the bottom right of the site. Here&#8217;s how it looks:</p>
<pre lang="Javascript">
for (i=0;i<=images.length - 1;i++){
    $('#thumb-container').append('&lt;a href="javascript:goToContent('+ i +')"&gt;&lt;img src="'+ images[i] +'?size=thumb" alt="Image '+ i +'" /&gt;&lt;/a&gt;');
}
</pre>
<p>Note: the '?size=thumb' needs to be added to the image name to work properly in IE. Strange? I know.</p>
<p>Once we have the thumbnails generated we can fade it in with the rest of the content after the preloader does its thing:</p>
<pre lang="Javascript">
$('#thumb-container').fadeIn('slow');
</pre>
<p>This part is pretty cool, the bx slider was built with some public functions that allow us to go to the next slide, previous slider, a specified slide, and a bunch of other options. What's good about this is we can use the goToNextSlide() function to work seamlessly with our image slider intervals:</p>
<pre lang="Javascript">
slider.goToNextSlide()
</pre>
<p>Insert that into the startIntervals function and we now have the content transitioning at the same intervals as the image slider.</p>
<p>Next we add our function that links our thumbnails to our slides. This function is called in our thumbnail 'For' loop:</p>
<pre lang="Javascript">
function goToContent(slideNum){
    clearInterval(intervalSetTime);
    index = slideNum;
    $.backstretch(images[index]);
    slider.goToSlide(slideNum);
    if (contentOpen == false){
        startIntervals();
    }
};
</pre>
<p>And last but not least, our content show and content hide functions. I added the show function to a button under the logo and the hide function to the close graphic within the content box:</p>
<pre lang="Javascript">
function showContent(){
    $('.content-bg').fadeIn('slow');
    clearInterval(intervalSetTime);
    contentOpen = true;
};
function closeContent(){
    $('.content-bg').fadeOut('slow');
    startIntervals();
    contentOpen = false;
};
</pre>
<p>Here's the HTML for the page:</p>
<pre>
&lt;div id="left-side"&gt;
	&lt;div id="logo"><img src="images/logo.png" /&gt;&lt;/div&gt;
	&lt;a href="javascript:showContent();" class="content-button"&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div id="indicator"&gt;&lt;/div&gt;
&lt;div id="slider1"&gt;
 &lt;div class="content-container"&gt;
     &lt;div class="content-bg"&gt;
     <--! Content 1 -->
          &lt;div class="close-button" onclick="closeContent()"&gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="content-container"&gt;
     &lt;div class="content-bg"&gt;
     <--! Content 2 -->
          &lt;div class="close-button" onclick="closeContent()"&gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="content-container"&gt;
     &lt;div class="content-bg"&gt;
     <--! Content 3 -->
          &lt;div class="close-button" onclick="closeContent()"&gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="content-container"&gt;
     &lt;div class="content-bg"&gt;
     <--! Content 4 -->
          &lt;div class="close-button" onclick="closeContent()"&gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;div id="thumb-container"&gt;&lt;/div&gt;
</pre>
<p>And the css:</p>
<pre lang="css">
body{color:#fff; font-family:Arial, Helvetica, sans-serif;}
h1, h2, h3{padding:0px; margin:0px;}
#left-side{width:274px; height:400px; float:left; margin:40px 0px 0px 40px; display:none; z-index:10; position:relative;}
.content-button{width:273px; height:64px; float:left; margin-top:10px; background:url(images/content-button.png); outline:none;}
.content-button:hover{background-position:0px -64px;}
#slider1 .content-container{width:780px; height:540px; float:left; margin:40px 0px 0px 5px;}
.content-container h2{color: #ccc;font-weight: bold;text-transform: uppercase; font-size:30px; padding-bottom:20px;}
.content-container p{color:#ccc; font-size:12px; line-height:18px;}
.content-bg{width:700px; height:420px; float:left; background:url(images/content-bg.png); padding:40px; display:none;}
.close-button{width:20px; height:20px; float:left; background:url(images/close.png); position:absolute; cursor:pointer; top:0px; right:0px; margin:10px 15px 0px 0px;}
#thumb-container{position:absolute; bottom:0px; right:20px; background:url(images/content-bg.png); padding:15px 15px 0px 5px; margin-left:20px; display:none;}
#thumb-container img{float:left; width:75px; padding:0px 0px 15px 10px; opacity:.8; border:0px;}
#thumb-container img:hover{opacity:1;}
.bx-wrapper{float:left;}
</pre>
<p>Onto step three...</p>
<div class="divider"></div>
<h3><strong>Step 3</strong> - Full Screen Image Slider with content flipper</h3>
<p><a class="top-design-thumb" href="/demos/fullscreen-slider/step-3/slideshow-step-3.html" target="_blank"><img src="/demos/fullscreen-slider/step-3/images/thumb.jpg" style="margin-bottom:20px;" alt="" /></a></p>
<p><a href="/demos/fullscreen-slider/step-3/slideshow-step-3.html" class="demo-button" target="_blank">Demo</a><a href="/demos/fullscreen-slider/step-3/step-3.zip" class="download-button">Download</a><br />
<br class="clear" /></p>
<p>The following instructions are in addition to step 1 and step 2.</p>
<p>For the final step we're going to add a flip effect to the content box. Using ajax we'll change the content in the box while the flip animation is running.</p>
<p>First off lets insert the necessary scripts for the flip animation</p>
<pre lang="Javascript">
&lt;script src="js/jquery-ui-1.7.2.custom.min.js"&gt;&lt;/script&gt;
&lt;script src="js/jquery.flip.min.js"&gt;&lt;/script&gt;
</pre>
<p>Now let's see the variables</p>
<pre lang="Javascript">
var content = [
     "content/content-1.html",
     "content/content-2.html",
     "content/content-3.html",
     "content/content-4.html"
];
var flipSpeed = 300;
</pre>
<p>Note: Keep in mind the content number is used in the following loop to populate the initial content.</p>
<p>Once we have our variables set we can add in our loop. This will pull the html content from our content files into the content container... I feel like I should say content again. </p>
<pre lang="Javascript">
for (i=1;i<=content.length;i++){
    $("#content-" + i).load(content[i - 1]);
};
</pre>
<p>Now that the for loop has populated the content containers we can add our flip effect to pull alternate content on click.</p>
<p>Here's the script that populates the 'More' content:</p>
<pre lang="Javascript">
function contentMore(contentNum){
    $("#content-" + contentNum).flip({
        direction:'rl',
        color:'#000',
        speed:flipSpeed,
        onAnimation: function(){
            $("#content-" + contentNum).load('content/content-more-'+ + contentNum +'.html');
        },
        onEnd: function(){
            $("#content-" + contentNum).css('background-color','transparent');
        },
    });
};
</pre>
<p>Note: The file name structure for the 'More' content files must contain a number to coincide with the initial content.</p>
<p>You can read more about the flip plugin on their <a href="http://lab.smashup.it/flip" target="_blank">site</a>.</p>
<p>Next we'll add a public function that allows us to return to the previous flip.</p>
<pre lang="Javascript">
function contentBack(contentNum){
    $("#content-" + contentNum).revertFlip()
};
</pre>
<p>Now we only have to add the corresponding html and css:</p>
<p>CSS:</p>
<pre lang="css">
.content-container a:link,
.content-container a:visited{color:#fff; font-size:12px; text-decoration:none;}
.content-container a:hover{color:#ccc;}
.content-wrap{height:400px;}
.more{width:89px; float:right; height:31px; background-image:url(images/more.png); text-indent:-9999px;}
.more:hover{background-position:0px -31px;}
.back{width:89px; float:left; height:31px; background-image:url(images/back.png); text-indent:-9999px;}
.back:hover{background-position:0px -31px;}
</pre>
<p>HTML:</p>
<pre lang="html4strict">
&lt;div id=&quot;left-side&quot;&gt; 
&lt;div id=&quot;logo&quot;&gt;&lt;img src=&quot;images/logo.png&quot; /&gt;&lt;/div&gt;
&lt;a href=&quot;javascript:showContent();&quot; class=&quot;content-button&quot;&gt;&lt;/a&gt; 
&lt;/div&gt; 
&lt;div id=&quot;indicator&quot;&gt;&lt;/div&gt; 
&lt;div id=&quot;slider1&quot;&gt; 
&lt;div class=&quot;content-container&quot;&gt; 
&lt;div class=&quot;content-bg&quot; id=&quot;content-1&quot;&gt;&lt;/div&gt; 
&lt;/div&gt; 
&lt;div class=&quot;content-container&quot;&gt; 
&lt;div class=&quot;content-bg&quot; id=&quot;content-2&quot;&gt;&lt;/div&gt; 
&lt;/div&gt; 
&lt;div class=&quot;content-container&quot;&gt; 
&lt;div class=&quot;content-bg&quot; id=&quot;content-3&quot;&gt;&lt;/div&gt; 
&lt;/div&gt; 
&lt;div class=&quot;content-container&quot;&gt; 
&lt;div class=&quot;content-bg&quot; id=&quot;content-4&quot;&gt;&lt;/div&gt; 
&lt;/div&gt; 
&lt;/div&gt; 
&lt;div id=&quot;thumb-container&quot;&gt;&lt;/div&gt;
</pre>
<p>And that's it, we have a working Full Screen Image and Content Slider. If you have any questions feel free to send me a message or post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jongaulin.com/2011/11/17/fullscreen-image-and-content-slider/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
