Skip to content

Commit 4789c1b

Browse files
author
wfbn8821
committed
fix: Remove overlay on visible cards
1 parent a498c2a commit 4789c1b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-card-scroll",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A React component to navigate horizontally between cards of same width",
55
"main": "lib/index.js",
66
"scripts": {

src/styles.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ $grid-gutter-width: 1.875rem !default; // 30px
1717
z-index 1s cubic-bezier(0,.7,.7,1);
1818
box-sizing: border-box;
1919
}
20-
:global(.rcs-center):after, :global(.rcs-left-stack):after, :global(.rcs-right-stack):after{
20+
:global(.rcs-left-stack):after, :global(.rcs-right-stack):after{
2121
content: "";
2222
position: absolute;
2323
top: 0;
2424
left: 0;
2525
right: 0;
2626
height: 100%;
2727
background-color: #fff;
28-
opacity: 0;
29-
transition: opacity 1s cubic-bezier(0,.7,.7,1);
30-
}
31-
:global(.rcs-left-stack):after, :global(.rcs-right-stack):after{
3228
opacity: 0.7;
29+
transition: opacity 1s cubic-bezier(0,.7,.7,1);
3330
}
3431
}
3532

0 commit comments

Comments
 (0)