Learn how to use jQuery at the Blog

Visual Kultura « visit

  • Added 8 months ago
  • 22 Lines of Code shown
  • 1 Links of Interest
http://visualkultura.com
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to Visual Kultura - http://visualkultura.com

$.fn.cycle.defaults.speed   = 300;
$(function() {
    $('div.project').each(function() {
    	$(this).cycle({
	        fx:		'scrollLeft',
	        click:	$(this),
	        timeout:	0
    		});
    	});
    });
 $(document).ready(function() {
  	$('div.project').hover(function(event) {
        var $thisCard, $tgt = $(event.target);
        if ($tgt.is('div.project')) {
          	$thisCard = $tgt;
            } else if ($tgt.parents('div.project').length) {
          	$thisCard = $tgt.parents('div.project');
            }
        $("div.project").fadeTo("fast", 0.8);
        $($thisCard).fadeTo("fast", 1.0);
      });
  	});