Template:SYSU-Software/JS/Home

$(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});;
       }
   );

});