diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 10:26:46 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 10:26:46 +0800 |
commit | dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129 (patch) | |
tree | d79350e446448c09018a2ca5a9e186d9c025a096 /ui | |
parent | 61b4b1f947230a8d5157fab27ee8ec82e0826e02 (diff) | |
download | tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.gz tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.bz2 tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.lz tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.xz tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.zst tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.zip |
Adjust sidebar transition using @cjeria\'s feedback
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/app.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 7a855813f..21eb44b8b 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -128,27 +128,27 @@ App.prototype.renderSidebar = function() { }, [ h('style', ` .sidebar-enter { - transition: transform 500ms ease-in-out; + transition: transform 300ms ease-in-out; transform: translateX(-100%); } .sidebar-enter.sidebar-enter-active { - transition: transform 500ms ease-in-out; + transition: transform 300ms ease-in-out; transform: translateX(0%); } .sidebar-leave { - transition: transform 500ms ease-in-out; + transition: transform 200ms ease-out; transform: translateX(0%); } .sidebar-leave.sidebar-leave-active { - transition: transform 500ms ease-in-out; + transition: transform 200ms ease-out; transform: translateX(-100%); } `), h(ReactCSSTransitionGroup, { transitionName: 'sidebar', - transitionEnterTimeout: 500, - transitionLeaveTimeout: 500, + transitionEnterTimeout: 300, + transitionLeaveTimeout: 200, }, [ // content this.props.sidebarOpen ? h(WalletView, { @@ -162,9 +162,7 @@ App.prototype.renderSidebar = function() { bottom: '0px', opacity: '1', visibility: 'visible', - // transition: 'transform 1s ease-in', willChange: 'transform', - // transform: 'translateX(300px)', overflowY: 'auto', boxShadow: 'rgba(0, 0, 0, 0.15) 2px 2px 4px', width: '85%', @@ -186,7 +184,6 @@ App.prototype.renderSidebar = function() { bottom: '0px', opacity: '1', visibility: 'visible', - // transition: 'opacity 0.3s ease-out, visibility 0.3s ease-out', backgroundColor: 'rgba(0, 0, 0, 0.3)', } }, []) : undefined, @@ -202,7 +199,6 @@ App.prototype.renderAppBar = function () { const state = this.state || {} const isNetworkMenuOpen = state.isNetworkMenuOpen || false - console.log("___rendering app header;;;") return ( h('.full-width', { |