Difference between revisions of "Template:SYSU-Software/JS/Home"
(Created page with "$(function(){ $(".CoDevelopment").hover( function() { $(".leftDescription").animate({opacity:1});; }, function() { $(".left...") |
|||
Line 1: | Line 1: | ||
$(function(){ | $(function(){ | ||
+ | |||
+ | $(".cElement").hover( | ||
+ | function(event) { | ||
+ | target = $(event.target); | ||
+ | $(target).children().animate({opacity:1}); | ||
+ | }, | ||
+ | function(event) { | ||
+ | target = $(event.target); | ||
+ | $(target).children().animate({opacity:0}); | ||
+ | } | ||
+ | ); | ||
+ | |||
$(".CoDevelopment").hover( | $(".CoDevelopment").hover( | ||
function() { | function() { |
Revision as of 14:08, 17 September 2015
$(function(){
$(".cElement").hover( function(event) { target = $(event.target); $(target).children().animate({opacity:1}); }, function(event) { target = $(event.target); $(target).children().animate({opacity:0}); } );
$(".CoDevelopment").hover( function() { $(".leftDescription").animate({opacity:1});; }, function() { $(".leftDescription").animate({opacity:0});; } );
$(".coreBank").hover( function() { $(".rightDescription").animate({opacity:1});; }, function() { $(".rightDescription").animate({opacity:0});; } );
$(".Design").hover( function() { $(".DesignDescription").animate({opacity:1});; }, function() { $(".DesignDescription").animate({opacity:0});; } );
});