Convert slideup,slidedown and appendTo jquery method to javascript method? -


i want convert jquery code javascript code, converted many lines don't know how convert slideup, slidedown , appendto pure javascript.

jquery

$('#recentpostbreaking li:first').slideup( function () { $(this).appendto($('#recentpostbreaking ul')).slidedown(); }); 

i idea below url no use https://gist.github.com/ludder/4226288

function slidedown(elem) {     elem.style.maxheight = '1000px';     // we're using timer set opacity = 0 because setting max-height = 0 doesn't (completely) hide element.     elem.style.opacity   = '1'; }  /**  * slide element (like jquery's slideup)  * @param  {node} elem element  * @return {[type]}      [description]  */ function slideup(elem) {     elem.style.maxheight = '0';     once( 1, function () {         elem.style.opacity = '0';     }); } 


Comments