Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make toolbar transition bottom to top #1576

Benjamin Kingfe72160613a6
diff --git a/web/css/toolbar.css b/web/css/toolbar.css
index 2422bcd2b..67409c160 100644
--- a/web/css/toolbar.css
+++ b/web/css/toolbar.css
@@ -53,6 +53,18 @@
position: absolute;
top: 33px;
}
+.toolbar_modal_outer .modal.fade .modal-dialog {
+ -webkit-transform: translate(0, 25%);
+ transform: translate(0, 25%);
+ transition-property: transform, -webkit-transform;
+ transition-duration: 0.3s, 0.3s;
+ transition-timing-function: ease-out, ease-out;
+ transition-delay: 0s, 0s;
+}
+.toolbar_modal_outer .modal.fade.show .modal-dialog {
+ -webkit-transform: translate(0, 0);
+ transform: translate(0, 0);
+}
.toolbar_projection .modal-backdrop {
opacity: 0;
}
diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.js
index c675099f5..58ce76c14 100644
--- a/web/js/containers/toolbar.js
+++ b/web/js/containers/toolbar.js
@@ -23,6 +23,7 @@ const CUSTOM_MODAL_PROPS = {
modalClassName: 'toolbar-list-modal toolbar-modal',
backdrop: true,
bodyComponent: Projection,
+ wrapClassName: 'toolbar_modal_outer toolbar_modal_outer',
offsetRight: '40px'
},
TOOLBAR_SHARE_LINK: {
@@ -32,7 +33,7 @@ const CUSTOM_MODAL_PROPS = {
offsetRight: '198px',
modalClassName: 'toolbar-share-modal toolbar-modal toolbar-medium-modal',
clickableBehindModal: true,
- wrapClassName: 'clickable-behind-modal',
+ wrapClassName: 'clickable-behind-modal toolbar_modal_outer',
bodyComponent: ShareLinks
},
TOOLBAR_INFO: {
@@ -41,12 +42,13 @@ const CUSTOM_MODAL_PROPS = {
type: 'toolbar',
modalClassName: 'toolbar-list-modal toolbar-modal',
offsetRight: '10px',
- bodyComponent: InfoList
+ bodyComponent: InfoList,
+ wrapClassName: 'toolbar_modal_outer toolbar_modal_outer'
},
TOOLBAR_SNAPSHOT: {
headerText: 'Take a Snapshot',
backdrop: false,
- wrapClassName: 'clickable-behind-modal',
+ wrapClassName: 'clickable-behind-modal toolbar_modal_outer',
type: 'selection',
offsetRight: '70px',
modalClassName: 'toolbar-snapshot-modal toolbar-modal toolbar-medium-modal',