Update index.html
Browse files- index.html +19 -18
index.html
CHANGED
@@ -153,44 +153,44 @@
|
|
153 |
/* Switch Camera Button Styles */
|
154 |
.switch-camera-button-container {
|
155 |
position: absolute;
|
156 |
-
bottom: calc(100% + 0.
|
157 |
left: 50%;
|
158 |
-
/* transform: translateX(-50%); Will be handled by inner button for animation orgin */
|
159 |
z-index: 5;
|
160 |
opacity: 0;
|
161 |
-
transform: translateY(15px) scale(0.7); /*
|
162 |
pointer-events: none;
|
163 |
transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
|
164 |
}
|
165 |
.switch-camera-button-container.visible {
|
166 |
opacity: 1;
|
167 |
-
transform: translateY(0) scale(1);
|
168 |
pointer-events: auto;
|
169 |
}
|
170 |
.switch-camera-button-content {
|
171 |
-
width: 52px
|
172 |
-
height: 52px
|
173 |
background-color: var(--background);
|
174 |
border: 1px solid var(--border);
|
175 |
border-radius: 9999px;
|
176 |
display: flex;
|
177 |
align-items: center;
|
178 |
justify-content: center;
|
179 |
-
box-shadow: 0
|
180 |
cursor: pointer;
|
181 |
transform-origin: center; /* For hover animation */
|
182 |
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
183 |
}
|
184 |
.switch-camera-button-content:hover {
|
185 |
-
transform: scale(1.
|
186 |
-
box-shadow: 0
|
187 |
}
|
188 |
.switch-camera-button-content:active {
|
189 |
-
transform: scale(1.
|
190 |
}
|
191 |
.switch-camera-button-content svg {
|
192 |
-
width: 26px
|
193 |
-
height: 26px
|
194 |
stroke: var(--foreground);
|
195 |
transition: transform 0.3s ease-in-out;
|
196 |
}
|
@@ -264,17 +264,18 @@
|
|
264 |
<!-- Footer Controls - Order Changed -->
|
265 |
<div id="footer-controls" class="footer-controls layout-default">
|
266 |
<!-- Cam Button Wrapper (Now on the Left) -->
|
267 |
-
<div id="cam-button-wrapper" class="relative flex justify-center">
|
268 |
<div id="cam-button" class="control-button cam-button-color">
|
269 |
<!-- Cam icon will be injected here by JS -->
|
270 |
</div>
|
271 |
<div id="switch-camera-button-container" class="switch-camera-button-container">
|
272 |
<button id="switch-camera-button" aria-label="Switch Camera" class="switch-camera-button-content">
|
273 |
-
|
274 |
-
|
275 |
-
<path d="
|
276 |
-
<path d="
|
277 |
-
<path d="
|
|
|
278 |
</svg>
|
279 |
</button>
|
280 |
</div>
|
|
|
153 |
/* Switch Camera Button Styles */
|
154 |
.switch-camera-button-container {
|
155 |
position: absolute;
|
156 |
+
bottom: calc(100% + 0.65rem); /* Adjusted spacing, was 0.75rem */
|
157 |
left: 50%;
|
|
|
158 |
z-index: 5;
|
159 |
opacity: 0;
|
160 |
+
transform: translateY(15px) scale(0.7) translateX(-50%); /* Ensure centered above */
|
161 |
pointer-events: none;
|
162 |
transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
163 |
+
transform-origin: center bottom; /* Animation origin */
|
164 |
}
|
165 |
.switch-camera-button-container.visible {
|
166 |
opacity: 1;
|
167 |
+
transform: translateY(0) scale(1) translateX(-50%);
|
168 |
pointer-events: auto;
|
169 |
}
|
170 |
.switch-camera-button-content {
|
171 |
+
width: 48px; /* Reduced from 52px */
|
172 |
+
height: 48px; /* Reduced from 52px */
|
173 |
background-color: var(--background);
|
174 |
border: 1px solid var(--border);
|
175 |
border-radius: 9999px;
|
176 |
display: flex;
|
177 |
align-items: center;
|
178 |
justify-content: center;
|
179 |
+
box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); /* Slightly softer shadow */
|
180 |
cursor: pointer;
|
181 |
transform-origin: center; /* For hover animation */
|
182 |
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
183 |
}
|
184 |
.switch-camera-button-content:hover {
|
185 |
+
transform: scale(1.12) rotate(-6deg); /* Adjusted hover */
|
186 |
+
box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12);
|
187 |
}
|
188 |
.switch-camera-button-content:active {
|
189 |
+
transform: scale(1.03) rotate(0deg); /* Press down effect */
|
190 |
}
|
191 |
.switch-camera-button-content svg {
|
192 |
+
width: 22px; /* Reduced from 26px, for 48px button */
|
193 |
+
height: 22px; /* Reduced from 26px */
|
194 |
stroke: var(--foreground);
|
195 |
transition: transform 0.3s ease-in-out;
|
196 |
}
|
|
|
264 |
<!-- Footer Controls - Order Changed -->
|
265 |
<div id="footer-controls" class="footer-controls layout-default">
|
266 |
<!-- Cam Button Wrapper (Now on the Left) -->
|
267 |
+
<div id="cam-button-wrapper" class="relative flex justify-center">
|
268 |
<div id="cam-button" class="control-button cam-button-color">
|
269 |
<!-- Cam icon will be injected here by JS -->
|
270 |
</div>
|
271 |
<div id="switch-camera-button-container" class="switch-camera-button-container">
|
272 |
<button id="switch-camera-button" aria-label="Switch Camera" class="switch-camera-button-content">
|
273 |
+
<!-- New Switch Camera Icon -->
|
274 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
275 |
+
<path d="M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5"/>
|
276 |
+
<path d="M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5"/>
|
277 |
+
<path d="m17 12-3-3 3-3"/>
|
278 |
+
<path d="m7 12 3 3-3 3"/>
|
279 |
</svg>
|
280 |
</button>
|
281 |
</div>
|