Skip to content

Instantly share code, notes, and snippets.

@dmirtyisme
Created September 22, 2015 02:24
Show Gist options
  • Save dmirtyisme/202f63d5b0b38539d543 to your computer and use it in GitHub Desktop.
Save dmirtyisme/202f63d5b0b38539d543 to your computer and use it in GitHub Desktop.
Flickity
<div class="main-gallery">
<div class="gallery-cell"></div>
<div class="gallery-cell"></div>
<div class="gallery-cell"></div>
</div>
jQuery('.main-gallery').flickity({
});
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flickity/1.1.0/flickity.pkgd.min.js"></script>
.main-gallery {
height: 400px;
.gallery-cell {
width: 100%;
height: 400px;
background: #82BAA9;
}
.flickity-prev-next-button {
width: 30px;
height: 30px;
background: transparent;
outline: none;
.arrow {
fill: white;
}
&.no-svg {
color: white;
}
&:disabled {
display: none;
}
}
.flickity-page-dots {
bottom: 15px;
.dot {
width: 10px;
height: 10px;
opacity: 1;
background: transparent;
border: 2px solid white;
margin: 0 3px;
&.is-selected {
background: #fff;
}
}
}
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/flickity/1.1.0/flickity.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment