function slideUp(el, speed = DEFAULT_SPEED)
{
    // 1. set our max height and apply
    el.style.maxHeight = `${el.clientHeight}px`;

    return new Promise(resolve =>
    {
        _apply(el, 'slideUp', speed).then(() =>
        {
            // set hidden, tidy our maxHeight, and return
            el.style.display   = 'none';
            el.setAttribute('aria-hidden', 'true');
            el.style.maxHeight = null;

            resolve();
        });
    });
}
/**
 * Performs a slide animation where the element slides up to nothingness and disappears.
 *
 * @param   {HTMLElement} el - the unfortunate victim
 * @param   {Number} speed - the time (in ms) to run the effect over
 * @return  {Promise} a Promise that is resolved when the effect completes
 */
Performs a slide animation where the element slides up to nothingness and disappears.
@param   {HTMLElement} el - the unfortunate victim
@param   {Number} speed - the time (in ms) to run the effect over
@return  {Promise} a Promise that is resolved when the effect completes
Performs a slide animation where the element slides up to nothingness and disappears . @param { HTMLElement } el - the unfortunate victim @param { Number } speed - the time ( in ms ) to run the effect over @return { Promise } a Promise that is resolved when the effect completes
function slideUp(el, speed = DEFAULT_SPEED)
{
    el.style.maxHeight = `${el.clientHeight}px`;
    return new Promise(resolve =>
    {
        _apply(el, 'slideUp', speed).then(() =>
        {
            el.style.display   = 'none';
            el.setAttribute('aria-hidden', 'true');
            el.style.maxHeight = null;
            resolve();
        });
    });
}
function slideUp ( el , speed = DEFAULT_SPEED ) { el . style . maxHeight = ` ${ el . clientHeight } ` ; return new Promise ( resolve => { _apply ( el , 'slideUp' , speed ) . then ( ( ) => { el . style . display = 'none' ; el . setAttribute ( 'aria-hidden' , 'true' ) ; el . style . maxHeight = null ; resolve ( ) ; } ) ; } ) ; }
Performs a slide animation where the element slides up to nothingness and disappears.
Performs a slide animation where the element slides up to nothingness and disappears .
// 1. set our max height and apply // set hidden, tidy our maxHeight, and return