Skip to content

Commit 02697e7

Browse files
committed
Added transition effects
1 parent ba60500 commit 02697e7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

demo/src/ui-demo/Layers.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,27 @@
22
aside {
33
opacity: 0.7;
44
background-color: #e0eeee;
5+
transition: width 0.5s;
6+
7+
.description {
8+
position: relative;
9+
top: -30px;
10+
}
511
}
612

713
nav {
814
background-color: #eee0e0;
15+
transition: width 0.5s;
16+
17+
.description {
18+
position: relative;
19+
top: 30px;
20+
}
921
}
1022

1123
main {
1224
background-color: #eee;
25+
transition: left 0.5s;
1326
}
1427

1528
.description {

demo/src/ui-demo/Layers.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const LayersDemo = () => {
1414
onMouseEnter={() => setFixedSideBarHovered(true)}
1515
onMouseLeave={() => setFixedSideBarHovered(false)}
1616
as="nav">
17+
{Description("Layer 1 left")}
1718
</Space.Left>
1819

1920
<Space.Fill as="main">
@@ -27,7 +28,7 @@ export const LayersDemo = () => {
2728
onMouseEnter={() => setFloatingSideBarHovered(true)}
2829
onMouseLeave={() => setFloatingSideBarHovered(false)}
2930
as="aside">
30-
{Description("Left floated")}
31+
{Description("Layer 2 left")}
3132
</Space.Left>
3233
</Space.Layer>
3334
</Space.Fill>

0 commit comments

Comments
 (0)