Improved slide transition.
All checks were successful
homepanel/HomePanel/pipeline/head This commit looks good
All checks were successful
homepanel/HomePanel/pipeline/head This commit looks good
This commit is contained in:
parent
fe056d21cc
commit
e36f9c90c1
@ -9,6 +9,10 @@
|
||||
max-height: 0;
|
||||
}
|
||||
|
||||
.animated-collapse-content {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.animated-collapse.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
|
||||
@ -80,7 +80,9 @@ function AnimatedCollapse({ visible, children }) {
|
||||
maxHeight: visible && maxHeight > 0 ? `${maxHeight}px` : "0",
|
||||
}}
|
||||
>
|
||||
<div ref={contentRef}>{children}</div>
|
||||
<div ref={contentRef} className="animated-collapse-content">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -3,7 +3,8 @@
|
||||
}
|
||||
|
||||
.slide-view-container {
|
||||
width: 100%;
|
||||
margin-left: -7vw;
|
||||
margin-right: -7vw;
|
||||
display: flex;
|
||||
overflow-x: visible;
|
||||
overflow-y: hidden;
|
||||
@ -52,6 +53,8 @@
|
||||
}
|
||||
|
||||
.slide-view-item {
|
||||
padding-left: 7vw;
|
||||
padding-right: 7vw;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user