Skip to content

Commit cd77998

Browse files
committed
added perspective and transparency to panel
1 parent f02b7be commit cd77998

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/assets/styles/panel.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,14 @@
124124
height: var(--panel-height);
125125
perspective: 1000px;
126126
margin: auto;
127-
transform: scale(0.8);
127+
128+
& > letter-panel {
129+
display: block;
130+
width: 100%;
131+
height: 100%;
132+
margin: auto;
133+
transform-style: preserve-3d;
134+
}
128135
}
129136

130137
& .panel {
@@ -139,7 +146,7 @@
139146
position: absolute;
140147
width: var(--panel-width);
141148
height: var(--panel-height);
142-
backface-visibility: hidden;
149+
backface-visibility: visible;
143150
display: grid;
144151
place-items: center;
145152
font-size: 3rem;
@@ -148,6 +155,7 @@
148155
border-radius: 0.5rem;
149156
box-shadow: 0 2px 8px var(--shadow);
150157
transition: transform 0.6s;
158+
opacity: 0.7;
151159
}
152160

153161
& .panel__cell:nth-child(10n + 1) {

0 commit comments

Comments
 (0)