Skip to content

Instantly share code, notes, and snippets.

@Souravirus
Forked from jywarren/front-feature
Last active April 24, 2019 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Souravirus/1f70b1ec63da1adaa686ccff7186ab2f to your computer and use it in GitHub Desktop.
Save Souravirus/1f70b1ec63da1adaa686ccff7186ab2f to your computer and use it in GitHub Desktop.
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.css"/>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js"></script>
<div style="overflow:hidden;width:100%;"><div class="carousel">
<div class="carousel-inner">
<div clas="carousel-item active"><img alt="fanboat" src="/system/images/photos/000/024/687/original/barataria.jpg" /></div>
<div class="carousel-item"><img alt="oil testing" src="/system/images/photos/000/024/688/original/gowanus.jpg" /></div>
<div class="carousel-item"><img alt="barnraising at val verde" src="/system/images/photos/000/024/686/original/valverde.jpg" /></div>
<div class="carousel-item"><img alt="newtown creek" src="/system/images/photos/000/024/689/original/newtown.jpg" /></div>
<div class="carousel-item"><img alt="beach" src="/system/images/photos/000/024/685/original/beach.jpg" /></div>
</div>
</div></div>
<script>
$(document).ready(function() {
$('.carousel-front').slick({
autoplay: true,
fade: true,
arrows: false,
speed: 2000,
adaptiveHeight: true,
autoplaySpeed: 5000
})
// variableWidth: true,
// lazyLoad: 'ondemand',
//
//<div><img alt="beach mapping" src="/system/images/photos/000/009/670/original/beach.jpg" /></div>
});
</script>
<style>
.carousel-front img {
width:100%;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment