Created
September 22, 2015 02:24
-
-
Save dmirtyisme/202f63d5b0b38539d543 to your computer and use it in GitHub Desktop.
Flickity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="main-gallery"> | |
<div class="gallery-cell"></div> | |
<div class="gallery-cell"></div> | |
<div class="gallery-cell"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.main-gallery').flickity({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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