Add 'flash' to differentiate video from photo mode

This commit is contained in:
Paul Kaplan committed 2018-05-01 10:33:14 -04:00
1 parent 254726d9ff
commit 16621261b5
2 files changed
+22 -2

No files matched your search

+19 -2
View File
@@ -121,7 +121,7 @@ $main-button-size: 2.75rem;
.button-row button {
padding: 0.75rem 1rem;
border-radius: 0.25rem;
background: white;
background: $ui-white;
border: 1px solid $ui-black-transparent;
font-weight: 600;
font-size: 0.85rem;
@@ -131,5 +131,22 @@ $main-button-size: 2.75rem;
.button-row button.ok-button {
background: $motion-primary;
border: $motion-primary;
color: white;
color: $ui-white;
}
@keyframes flash {
0% { opacity: 1; }
100% { opacity: 0; }
}
.flash-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: $ui-white;
animation-name: flash;
animation-duration: 0.5s;
animation-fill-mode: forwards; /* Leave at 0 opacity after animation */
}
@@ -72,6 +72,9 @@ const CameraModal = ({intl, ...props}) => (
ref={props.canvasRef}
width="960"
/>
{props.capture ? (
<div className={styles.flashOverlay} />
) : null}
</Box>
{props.capture ?
<Box className={styles.buttonRow}>