title: Load wordpress content dynamically with ajax and CSS3 animations
body: <p>Right, so I'm deciding to set myself a challenge as a form of learning curve. I've never used ajax before, but I feel it's something I really must learn, so what better chance to do it than on a new portfolio site.</p>
  
  <p>The main concept of the website involves the content of the website sliding behind folds on the edges of the 960, so you would click on a link and the current content all slides out into the fold it is hidden partially under, the folds would then adjust size to match the new content blocks, and the new content slides in from under the folds. I have this done in a simply manner for the news so far simply using the Wordpress loop and some basic jquery. (still can't manage to get the fold to adjust it's height properly before the new content coms in)</p>
  
  <p>I have this (http://www.deluxeblogtips.com/2010/05/how-to-ajaxify-wordpress-theme.html) as a basis to start with, but it doesn't appear to quite achieve my intended goal.</p>
  
  <p>Save setting up some silly jsfiddle, here's the site as it stands <a href="http://paradoxdevelopment.org/" rel="nofollow">http://paradoxdevelopment.org/</a></p>
  
  <p>EDIT: Sorry got distracted explaining and forgot to ask the exact question:</p>
  
  <p>How can I make it so that when you click on an internal link, it causes this chain of events:</p>
  
  <p>Content box slides out-> Content changes -> Fold grows -> Content box slides in with new content</p>
  
  <p>EDIT 2: I realised I didn't really make myself clear again. I have managed to get my head round the ajax to load in the content, the problem is the content loads up in different ways for different pages. For Examples:</p>
  
  <p>The home page has 3 recent sites slide down from a vertical fold at the top, a news post which slides in from the left, and the list of news posts which slide in from the right.</p>
  
  <p>The Work/Play pages have a vertical fold at the top from which blocks slide down.</p>
  
  <p>Contact is a simple full width, so fold on either side filling the 960. The same for the about page for now, although this may have a sidebar in future.</p>
  
  <p>How can I make it so the AJAX can detect what is currently loaded so it knows how to react?</p>
  
  <p>Thank you for any and all help in advance!</p>