Merge lp:~huwshimi/juju-gui/more-animations into lp:juju-gui/experimental

Proposed by Huw Wilkins
Status: Merged
Merged at revision: 1209
Proposed branch: lp:~huwshimi/juju-gui/more-animations
Merge into: lp:juju-gui/experimental
Diff against target: 143 lines (+103/-1)
2 files modified
lib/views/browser/browser-icon.less (+65/-1)
lib/views/browser/main.less (+38/-0)
To merge this branch: bzr merge lp:~huwshimi/juju-gui/more-animations
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+196475@code.launchpad.net

Description of the change

Add animations to browser

I had a bit of a realisation about how we could do open animations for the browser panels. It seems to QA accross browsers and even though the panels don't animate on close I think it's worth having.

I'm hoping this might be enough that we don't have to worry about animations on close...

There is one point which might be considered a bug in that the panels will animate in on page load instead of remaining in the open state. I think this is an OK trade off, but others may feel differently.

https://codereview.appspot.com/31930043/

To post a comment you must log in.
Revision history for this message
Huw Wilkins (huwshimi) wrote :

Reviewers: mp+196475_code.launchpad.net,

Message:
Please take a look.

Description:
Add animations to browser

I had a bit of a realisation about how we could do open animations for
the browser panels. It seems to QA accross browsers and even though the
panels don't animate on close I think it's worth having.

I'm hoping this might be enough that we don't have to worry about
animations on close...

There is one point which might be considered a bug in that the panels
will animate in on page load instead of remaining in the open state. I
think this is an OK trade off, but others may feel differently.

https://code.launchpad.net/~huwshimi/juju-gui/more-animations/+merge/196475

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/31930043/

Affected files (+105, -1 lines):
   A [revision details]
   M lib/views/browser/browser-icon.less
   M lib/views/browser/main.less

Revision history for this message
Jeff Pihach (hatch) wrote :

LGTM QA OK

I think this is great good work! The animation in on page load looks
awesome (IMHO) and even though it doesn't animate closed one could
pretty easily make an argument that the user wants it gone so closing
really fast is a good thing :)

https://codereview.appspot.com/31930043/

Revision history for this message
Jeff Pihach (hatch) wrote :

*** Submitted:

Add animations to browser

I had a bit of a realisation about how we could do open animations for
the browser panels. It seems to QA accross browsers and even though the
panels don't animate on close I think it's worth having.

I'm hoping this might be enough that we don't have to worry about
animations on close...

There is one point which might be considered a bug in that the panels
will animate in on page load instead of remaining in the open state. I
think this is an OK trade off, but others may feel differently.

R=jeff.pihach
CC=
https://codereview.appspot.com/31930043

https://codereview.appspot.com/31930043/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/views/browser/browser-icon.less'
2--- lib/views/browser/browser-icon.less 2013-10-30 02:47:12 +0000
3+++ lib/views/browser/browser-icon.less 2013-11-25 06:57:49 +0000
4@@ -1,3 +1,51 @@
5+@-webkit-keyframes knot-min-slide-in {
6+ from {
7+ left: -40px;
8+ }
9+ to {
10+ left: 0;
11+ }
12+}
13+@keyframes knot-min-slide-in {
14+ from {
15+ left: -40px;
16+ }
17+ to {
18+ left: 0;
19+ }
20+}
21+@-webkit-keyframes knot-sidebar-slide-in {
22+ from {
23+ left: 0;
24+ }
25+ to {
26+ left: @bws-sidebar-width;
27+ }
28+}
29+@keyframes knot-sidebar-slide-in {
30+ from {
31+ left: 0;
32+ }
33+ to {
34+ left: @bws-sidebar-width;
35+ }
36+}
37+@-webkit-keyframes knot-content-slide-in {
38+ from {
39+ left: 0;
40+ }
41+ to {
42+ left: @bws-sidebar-width + @bws-panel-width;
43+ }
44+}
45+@keyframes knot-content-slide-in {
46+ from {
47+ left: 0;
48+ }
49+ to {
50+ left: @bws-sidebar-width + @bws-panel-width;
51+ }
52+}
53 .bws-icon {
54 position: absolute;
55 display: block;
56@@ -8,12 +56,28 @@
57 box-shadow: 3px 0 2px rgba(0, 0, 0, 0.1);
58 border-top-right-radius: 4px;
59 border-bottom-right-radius: 4px;
60- z-index: 610;
61+ z-index: 600;
62
63+ &:hover i.sprite {
64+ margin-left: 5px;
65+ }
66 i.sprite {
67+ .transition(margin-left 0.2s ease-out);
68 display: block;
69 }
70 }
71 .content-visible .bws-icon {
72 left: @bws-sidebar-width + @bws-panel-width;
73 }
74+#subapp-browser-min .bws-icon {
75+ -webkit-animation: knot-min-slide-in 0.5s;
76+ animation: knot-min-slide-in 0.5s;
77+}
78+#subapp-browser .bws-icon {
79+ -webkit-animation: knot-sidebar-slide-in 0.5s;
80+ animation: knot-sidebar-slide-in 0.5s;
81+}
82+#subapp-browser .content-visible .bws-icon {
83+ -webkit-animation: knot-content-slide-in 0.5s;
84+ animation: knot-content-slide-in 0.5s;
85+}
86
87=== modified file 'lib/views/browser/main.less'
88--- lib/views/browser/main.less 2013-11-05 20:04:11 +0000
89+++ lib/views/browser/main.less 2013-11-25 06:57:49 +0000
90@@ -1,3 +1,35 @@
91+@-webkit-keyframes sidebar-slide-in {
92+ from {
93+ left: -@bws-sidebar-width;
94+ }
95+ to {
96+ left: 0;
97+ }
98+}
99+@keyframes sidebar-slide-in {
100+ from {
101+ left: -@bws-sidebar-width;
102+ }
103+ to {
104+ left: 0;
105+ }
106+}
107+@-webkit-keyframes sidebar-details-slide-in {
108+ from {
109+ left: -@bws-panel-width;
110+ }
111+ to {
112+ left: @bws-sidebar-width;
113+ }
114+}
115+@keyframes sidebar-details-slide-in {
116+ from {
117+ left: -@bws-panel-width;
118+ }
119+ to {
120+ left: @bws-sidebar-width;
121+ }
122+}
123 #subapp-browser {
124 .customize-scrollbar;
125 .type9;
126@@ -131,6 +163,8 @@
127 width: @bws-sidebar-width;
128 border-right: 1px solid #a5a5a5;
129 box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
130+ -webkit-animation: sidebar-slide-in 0.5s;
131+ animation: sidebar-slide-in 0.5s;
132
133 .bws-searchbox {
134 width: 100%;
135@@ -167,4 +201,8 @@
136 .bws-view-data {
137 left: @bws-sidebar-width;
138 }
139+ .content-visible .bws-view-data {
140+ -webkit-animation: sidebar-details-slide-in 0.5s;
141+ animation: sidebar-details-slide-in 0.5s;
142+ }
143 }

Subscribers

People subscribed via source and target branches