mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
feat: add common height transition
This commit is contained in:
parent
b0843ea7bc
commit
bf16430fe4
@ -286,6 +286,17 @@ $scrollbar-color--hover: rgba(255,255,255,0.3);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin height-seamlessly-expand-transition($block: "height-seamlessly-expand", $duration: .3s, $delay: 0s) {
|
||||
&.#{$namespace}-#{$block}-leave-active {
|
||||
overflow: hidden;
|
||||
transition: max-height $duration $default-cubic-bezier;
|
||||
}
|
||||
&.#{$namespace}-#{$block}-enter-active {
|
||||
overflow: hidden;
|
||||
transition: max-height $duration $default-cubic-bezier;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin fade-in-width-expand-transition($block: "fade-in-width-expand", $duration: .2s, $delay: .1s) {
|
||||
&.#{$namespace}-#{$block}-leave-active {
|
||||
transition: opacity $duration $default-cubic-bezier, max-width $duration $default-cubic-bezier $delay, margin-right $duration $default-cubic-bezier, margin-left $duration $default-cubic-bezier;
|
||||
|
Loading…
Reference in New Issue
Block a user