 View demo Download source
View demo Download source
Today  we want to share a neat experimental portfolio template with you. The  main idea is to have a grid layout that we create with jQuery Masonry.  Clicking to view more, we expand the according item to fullscreen in  order to show a longer description of the item and a representative  fullscreen background image.
Each item has a little slideshow of  thumbs which will be animated to the right position once the portfolio  item gets “expanded”. If you know Flipboard for the iPad, then you might  recognize this effect we got inspired with.
The beautiful images are by Kyle van Horn, check out 
his Flickr Photostream.
jQuery Masonry is by David deSandro and you can find it 
here.
The HTML for an item in the portfolio is the following:
| 01 | <divclass="item block"data-bgimage="images/1.jpg"> | 
| 02 |     <divclass="thumbs-wrapper"> | 
| 04 |             <imgsrc="images/thumbs/1.jpg"/> | 
| 05 |             <imgsrc="images/thumbs/2.jpg"/> | 
| 08 |     <h2class="title">Personal Works</h2> | 
| 09 |     <pclass="subline">Concept <spanclass="fancy">&</span> Design</p> | 
| 12 |             Some short introduction | 
| 13 |             <ahref="#"class="more_link">View project</a> | 
| 16 |     <divclass="project-descr"> | 
| 17 |         <p>A longer description...</p> | 
We use a jQuery template for the fullscreen structure:
| 02 | <scriptid="fullviewTmpl"type="text/x-jquery-tmpl"> | 
| 04 |     <divclass="full-view"> | 
| 05 |         <spanclass="full-view-exit">Exit full screen view</span> | 
| 07 |             <h2class="title">${title}</h2> | 
| 08 |             <divclass="full-nav"> | 
| 09 |                 <spanclass="full-nav-prev">Previous</span> | 
| 10 |                 <spanclass="full-nav-pages"> | 
| 11 |                     <spanclass="full-nav-current">${current}</span>/ | 
| 12 |                     <spanclass="full-nav-total">${total}</span> | 
| 14 |                 <spanclass="full-nav-next">Next</span> | 
| 16 |             <pclass="subline">${subline}</p> | 
| 17 |             <spanclass="loading-small"></span> | 
| 19 |         <divclass="project-descr-full"> | 
| 20 |             <divclass="thumbs-wrapper"> | 
| 21 |                 <divclass="thumbs">{{html thumbs}}</div> | 
| 23 |             <divclass="project-descr-full-wrapper"> | 
| 24 |                 <divclass="project-descr-full-content"> | 
When loading the page, we have the initial grid view:

And when we click on “View Project”, the fullscreen mode will be loaded:

We hope you like this little experiment and find it useful!
View demo Download source
 
No comments:
Post a Comment