Skip to content

Commit

Permalink
perf(animation): improve animation styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Jul 14, 2023
1 parent af8d198 commit 9cd1352
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
@import './../node_modules/@aurodesignsystem/webcorestylesheets/dist/breakpoints';
@import './../node_modules/@aurodesignsystem/webcorestylesheets/dist/core';

// Support for auroElement styles
// @import './node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement';

// container styles - defines the look of the outer custom component

:host {
.trigger {
cursor: pointer;
Expand All @@ -24,7 +19,12 @@
.content {
width: 100%;
transition: all 0.5s ease-in-out;
transition-property: opacity, height;
transition-property: height;
}

.componentWrapper {
height: 100%;
overflow: hidden;
}
}

Expand All @@ -46,7 +46,5 @@
:host([aria-expanded=false]) {
.content {
height: 0 !important;
overflow: hidden;
opacity: 0;
}
}

0 comments on commit 9cd1352

Please sign in to comment.