Skip to content

Commit

Permalink
Merge pull request #5910 from Matt-Yorkley/silky-mooth-sidebar-scroll…
Browse files Browse the repository at this point in the history
…ing-for-danni

Add scrolling animate on sidebar hide
  • Loading branch information
luisramos0 committed Aug 19, 2020
2 parents 9771fd7 + ed346b3 commit eb2d8e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/assets/stylesheets/darkswarm/expanding-sidebar.scss
Expand Up @@ -16,12 +16,14 @@
width: 100%;
background-color: $shop-sidebar-overlay;
opacity: 0;
transition: opacity $transition-sidebar;
visibility: hidden;
transition: all $transition-sidebar;
}

&.shown {
.background {
opacity: 1;
visibility: visible;
}

.sidebar,
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/menu/_cart_sidebar.html.haml
@@ -1,4 +1,4 @@
.expanding-sidebar.cart-sidebar{ng: {controller: 'CartCtrl', show: 'showCartSidebar', class: "{'shown': showCartSidebar, 'hidden': !showCartSidebar}"}}
.expanding-sidebar.cart-sidebar{ng: {controller: 'CartCtrl', class: "{'shown': showCartSidebar}"}}
.background{ng: {click: 'toggleCartSidebar()'}}
.sidebar
.cart-header
Expand Down

0 comments on commit eb2d8e6

Please sign in to comment.