Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fadein(), set 'display: table' instead of block

Tags:

jquery

Right now when I fade in my overlay div, it is automatically set to display: block;. But I want it to be display: table. Is there any jQuery function like fadein() that does that?

jQuery

$.when($("#overlay").fadeIn(200)).done(function() {
    setTimeout(function() {
        //ToDo
    });
}, 250);
like image 977
Kid Diamond Avatar asked Nov 28 '13 14:11

Kid Diamond


1 Answers

$("#overlay").fadeIn(200).css('display','table');

Change the CSS property after the fadeIn.

like image 172
AfromanJ Avatar answered Nov 02 '22 08:11

AfromanJ