Skip to content

Commit

Permalink
feat(ui): better item logo animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 15, 2018
1 parent e6c7546 commit 22b92ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/@vue/cli-ui/src/components/ItemLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default {
width 100%
height @width
transform scale(0)
border-radius 50%
.vue-ui-icon
width 24px
height @width
Expand Down Expand Up @@ -145,13 +146,13 @@ export default {
&.loaded
.image
animation zoom .1s
animation zoom .5s $ease
transform none
&.selected,
&.error
.wrapper
animation zoom .1s
animation zoom .5s $ease
&.selected
.wrapper
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui/src/components/SuggestionBarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export default {
.suggestion-enter-active,
.suggestion-leave-active
transition all 1.5s cubic-bezier(0.075, 0.820, 0.165, 1.000)
transition all 1.5s $ease
>>> .vue-ui-button
transition all 1.5s cubic-bezier(0.075, 0.820, 0.165, 1.000)
transition all 1.5s $ease
.content
transition all .2s
Expand Down
1 change: 1 addition & 0 deletions packages/@vue/cli-ui/src/style/vars.styl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
$padding-item = 16px
$font-mono = 'Roboto Mono', monospace
$ease = cubic-bezier(0.075, 0.820, 0.165, 1.000)

0 comments on commit 22b92ba

Please sign in to comment.