Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery fadeIn() doesn't work

Tags:

jquery

I have a simple script but the fadein() part is not working. Not getting any errors though..

$('<ol/>', {
  'class': 'raw-list',
  html: items.join('')
 }).appendTo('.json').fadeIn(1000);
});
like image 412
ndesign11 Avatar asked Dec 05 '22 12:12

ndesign11


1 Answers

Try to hide it first with the following code :

$('<ol/>', {
  'class': 'raw-list',
  html: items.join('')
})
.hide()
.fadeIn(1000)
.appendTo('.json');
like image 156
adeneo Avatar answered Dec 28 '22 23:12

adeneo