Skip to content

Commit 4a7d0d6

Browse files
committed
Add transition to button dropdown
1 parent 01995f6 commit 4a7d0d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nebula-components/components/_btn-dropdown.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,20 @@
105105
width: 100%;
106106
height: 0;
107107
overflow: hidden;
108+
transform: scale(1, 0);
109+
transform-origin: 50% 0;
108110
opacity: 0;
109111
}
110112

111113
.#{$nb-namespace}c-btn-dropdown.is-open > .#{$nb-namespace}c-btn-dropdown__content {
112114
height: auto;
113115
overflow: visible;
116+
transform: scale(1);
114117
opacity: 1;
115-
transition: opacity $nb-transition-duration;
118+
}
119+
120+
.#{$nb-namespace}c-btn-dropdown.is-open > .#{$nb-namespace}c-btn-dropdown__content--transition {
121+
transition: transform $nb-transition-duration, opacity $nb-transition-duration;
116122
}
117123

118124
.#{$nb-namespace}c-btn-dropdown.is-open > .c-btn {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy