From f9ad6ed63d035fedf03cdb1f78e133add1b94c10 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 15 Mar 2017 14:24:14 +0800 Subject: Minor update --- src/carousels.less | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/carousels.less') diff --git a/src/carousels.less b/src/carousels.less index 99b0a9c..c106f3e 100644 --- a/src/carousels.less +++ b/src/carousels.less @@ -13,7 +13,7 @@ position: relative; .carousel-item { - animation: carousel-slideout 1s 1; + animation: carousel-slideout 1s ease-in-out 1; height: 100%; left: 0; margin: 0; @@ -55,7 +55,7 @@ &:nth-of-type(2):checked ~ .carousel-container .carousel-item:nth-of-type(2), &:nth-of-type(3):checked ~ .carousel-container .carousel-item:nth-of-type(3), &:nth-of-type(4):checked ~ .carousel-container .carousel-item:nth-of-type(4) { - animation: carousel-slidein .75s 1; + animation: carousel-slidein .75s ease-in 1; opacity: 1; z-index: 99; } @@ -127,10 +127,10 @@ @keyframes carousel-slideout { 0% { opacity: 1; - transform: translateX(0) scale(1); + transform: translateX(0); } 100% { - opacity: 0; - transform: translateX(-50%) scale(.95); + opacity: 1; + transform: translateX(-50%); } } -- cgit v1.3.1-26-gb76a