export function applyCss ( el , styles ) { Object . keys ( styles ) . forEach ( key => el . style . setProperty ( key , styles [ key ] ) ) ; } export function locateSlideImageSrc ( slide ) { if ( slide . getAttribute ( 'src' ) ) { return slide . getAttribute ( 'src' ) ; } const img = slide . querySelector ( 'img' ) ; return img ? img . currentSrc || img . getAttribute ( 'src' ) : '' ; }