diff --git a/src/css/angular-carousel.scss b/src/css/angular-carousel.scss old mode 100755 new mode 100644 index 905971f..3a2ad06 --- a/src/css/angular-carousel.scss +++ b/src/css/angular-carousel.scss @@ -2,7 +2,8 @@ input[type=range] { width:300px; } -ul[rn-carousel] { +ul[rn-carousel], +ul[data-rn-carousel] { overflow:hidden; padding:0; white-space: nowrap; @@ -29,11 +30,13 @@ ul[rn-carousel] { } /* prevent flickering when moving buffer */ -ul[rn-carousel-buffered] > li { +ul[rn-carousel-buffered], +ul[data-rn-carousel-buffered] > li { display:none; } -ul[rn-carousel-transition="hexagon"] { +ul[rn-carousel-transition="hexagon"], +ul[data-rn-carousel-transition="hexagon"] { overflow:visible; } diff --git a/src/directives/rn-carousel.js b/src/directives/rn-carousel.js old mode 100755 new mode 100644 index c4e1e4b..af2650c --- a/src/directives/rn-carousel.js +++ b/src/directives/rn-carousel.js @@ -228,7 +228,7 @@ } function getSlidesDOM() { - return iElement[0].querySelectorAll('ul[rn-carousel] > li'); + return iElement[0].querySelectorAll('ul[rn-carousel] > li,ul[data-rn-carousel] > li'); } function documentMouseUpEvent(event) {