Skip to content

Commit

Permalink
Cleaned carousel animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnsonaz committed Aug 12, 2017
1 parent 0a09432 commit 865c413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions src/styl/carousel/carousel.styl
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,9 @@
z-index: 1;
}
}
&.carousel-animate-none {
transition: none;
& > div {
transition: none;
}
}
&.carousel-animate-slide {
& > div {
transition: transform 0.5s;
}
}
&.carousel-animate-fade {
& > div {
transition: opacity 0.5s;
transition: transform 0.5s, opacity 0.5s;
opacity: 0;
&.carousel-selected {
opacity: 1;
Expand Down
2 changes: 1 addition & 1 deletion test/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h3>Drawer</h3>
<h3>Carousel</h3>
<button id="clickCarouselBack" class="button">Back</button>
<button id="clickCarouselNext" class="button">Next</button>
<div class="carousel carousel-animate-none" style="background-color: black">
<div class="carousel carousel-animate-fade" style="background-color: black">
<div class="carousel-selected" style="background-color: red; padding: 10px;">
Content 0
<br /><input type="text" />
Expand Down

0 comments on commit 865c413

Please sign in to comment.