A quick way to add a hover responsive, fast cycling, jQuery powered slideshow to your site.
The BasicsI first saw this style slideshow as a Flash solution on Cargo Collective, which has since been updated to Javascript. As it turns out, itâs actually quite easy, making it a quick addition to any site you wish to implement it on.
Hereâs what weâll be doing:
- Super fast slideshow that only runs when hovered over.
- Overlay logo that toggles between two different states depending on hover state
- Inspiration piece for this tutorial:Â Cargo Collective
- See our end goal by visiting our demo page.
This is the structure for each slideshow, with the images are pulled from the unordered list and turned into a slideshow by jQuery Cycle Plugin.
The .link element is where a URL can be provided for when the slideshow is clicked. It is also how we will swap the logo on hovers.
<!-- Slideshow =========================--> <div class="slideshow-block"> <a href="http://website.com" class="link"></a> <ul class="slides"> <li><img src="image.jpg"/></li> <!-- Any other slides --> </ul> </div> The CSSThe dimensions for my slideshow are 200px by 150px. Depending on the sizes of your logo and slides, the below background position coordinates and overall dimensions may need to get adjusted.
- The logo is toggled between the two color variations using the background position hover technique.
- The unordered  slides list is given a class of âactiveâ when hovered over, making it visible on the page.
On the jQuery side, we want to accomplish two tasks:
Iâve included two versions of the script, one with the TV and one without (for easier copy and paste implementation). As always, when in doubt, try using the downloadable demos as a foundation to build from.
I look forward to seeing what folks are able to make happen â" enjoy!
Note: You are able to place multiple slideshows on the same page, meaning itâs feasible for you to make a gallery out of a series of thumbnail slideshows.
Powered By WizardRSS.com | Full Text RSS Feed | Amazon Plugin | Settlement Statement | WordPress Tutorials