Commit 8c692b64af926592220cde9b3788417709b6b596

Authored by Peter Lauro de Lima
2 parents 9f2247d6 85d58f03

Merge branch 'master' of https://gitlab.com/softwarepublico/noosfero-spb-theme

Star customing css news area
Showing 1 changed file with 38 additions and 0 deletions   Show diff stats
theme.js
... ... @@ -59,3 +59,41 @@ $('#link-buscar').click(function(e) {
59 59 })(jQuery);
60 60  
61 61  
  62 +// Efeito Fade nos box de softwares
  63 +
  64 +(function($){
  65 + "use strict";// Make javascript less intolerant to errors
  66 +
  67 + var TRANSITION_TIME = 250;// milliseconds
  68 +
  69 +
  70 + function show_finality() {
  71 + var finality = $(this).children(".software-block-finality");
  72 +
  73 + //finality.stop().fadeTo(TRANSITION_TIME,1);
  74 + finality.stop().fadeTo('fast', 1);
  75 + //finality.stop().animate({"top" : "0%"}, TRANSITION_TIME);
  76 + }
  77 +
  78 + function hide_finality() {
  79 + var finality = $(this).children(".software-block-finality");
  80 +
  81 + //finality.stop().fadeTo(TRANSITION_TIME,0);
  82 + finality.stop().fadeTo('fast', 0);
  83 + //finality.stop().animate({"top" : "100%"}, TRANSITION_TIME);
  84 + }
  85 +
  86 + function set_events() {
  87 + // Fade css
  88 + $('.software-block-finality').css('opacity', 0);
  89 + $('.software-block-finality').css('top', 0);
  90 + // End Fade CSS
  91 +
  92 + $(".software-block").mouseover(show_finality);
  93 + $(".software-block").mouseout(hide_finality);
  94 + }
  95 +
  96 + $(document).ready(function(){
  97 + set_events();
  98 + });
  99 +})(jQuery);
... ...