I am building a one-page website and for the Portfolio section I will be having some content(e.g 4 thumbnails) with projects, and each one will display html content using fancybox.
So I want to have two arrows, on each side going back and forth that will display more of the portfolio content but I am not sure how I should build this? It is a really common effect on portfolio websites, and is followed by a transition when the content changes.
Just a quick disclaimer… but this is certainly not the most seamless solution out there. It was just a quick solution I came up with from scratch for a problem similar to yours. Just one of the many ways to do it.
This is also based on the functionality here, but has been trimmed down quite a bit:
https://www.facebook.com/Bio35/app_201742856511228
Javascript (will need jQuery in the headers prior to this)
HTML
In the jQuery,
"scripts/item-loader.php"is basically the AJAX file that reflects the same format as<!-- display format goes here -->from the HTML. It simply retrieves the POST value ofproduct, used in the AJAX call toward the end of the Javascript, and spits out the information for the selected item.Hopefully the code speaks for itself enough. If you need clarification, let me know.