From 865c413721eaca45a77eb62f3c43357097126d49 Mon Sep 17 00:00:00 2001 From: Sean Johnson Date: Fri, 11 Aug 2017 17:38:33 -0700 Subject: [PATCH] Cleaned carousel animation. --- src/styl/carousel/carousel.styl | 13 +------------ test/html/index.html | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/styl/carousel/carousel.styl b/src/styl/carousel/carousel.styl index 2e8f42a..df984f3 100644 --- a/src/styl/carousel/carousel.styl +++ b/src/styl/carousel/carousel.styl @@ -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; diff --git a/test/html/index.html b/test/html/index.html index e19ce07..d6cbee9 100644 --- a/test/html/index.html +++ b/test/html/index.html @@ -368,7 +368,7 @@

Drawer

Carousel

-