Skip to content

Instantly share code, notes, and snippets.

@pauloiankoski
Created October 9, 2015 13:39
Show Gist options
  • Save pauloiankoski/577830e1bbdbd0202d65 to your computer and use it in GitHub Desktop.
Save pauloiankoski/577830e1bbdbd0202d65 to your computer and use it in GitHub Desktop.
Banner padrão
.metaslider {
.ms-image {
background-position : center center !important;
background-size : cover !important;
height : 500px;
}
}
$( '.home .metaslider img' ).each(function(){
var src = $(this).attr( 'src' );
$(this).parents( 'li' ).css( 'background-image', 'url('+src+')' );
$(this).remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment