1
I gave 3 seconds to make a more sensitive transition but it doesn’t work, it’s too gross:
$(function(){
var status = 0;
/* INICIA MENU-GRID */
$('.menu-grid').on('click',function(){
console.log(status);
if(status == 0) {
$('aside').removeClass('inativo').addClass('ativo'),3000;
status = 1;
}else {
$('aside').removeClass('ativo').addClass('inativo'),3000;
status = 0;
}
});
});
It’s easier to transition from CSS to defining these classes. No
3000
in the code (which does not do what you think).– bfavaretto
i tried to give a Transition in css but it didn’t work
– Otavio Fagundes