Skip to content

Commit 1bd8368

Browse files
Michael.KryvoruchkoMichael.Kryvoruchko
authored andcommitted
feat: add css var for the duration of the default transition
1 parent 4831ca6 commit 1bd8368

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/GDialogFrame.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ export default defineComponent({
141141

142142
<style lang="scss">
143143
.g-dialog-frame {
144+
--frame-transition-duration: var(--g-dialog-transition-duration, 0.2s);
145+
144146
align-items: center;
145147
display: flex;
146148
height: 100%;
@@ -166,7 +168,7 @@ export default defineComponent({
166168
&-enter-active,
167169
&-leave-active {
168170
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
169-
transition-duration: 0.2s;
171+
transition-duration: var(--frame-transition-duration);
170172
}
171173
172174
&-enter-from,

0 commit comments

Comments
 (0)