﻿$(document).ready(function() {

    var primera = true;
    var intervalo = setInterval(noticias, 200);
    $(".info-home").css("opacity", "0");

    function noticias() {
        if (primera == true)
            primera = false;
        else {
            $(".info-home").animate({ top: "-=4px", opacity: "1" }, 200);
            clearInterval(intervalo);
        }
    }

    $(".info-home").hover(function() {
        $(this).animate({ opacity: 0.5, top: "-=4px" }, 150);
    }, function() {
        $(this).animate({ opacity: 1, top: "+=4px" }, 200);
    });
});