Skip to content

Commit c0815a0

Browse files
committed
feat: QPopover animation enhancement
1 parent b21bb78 commit c0815a0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/css/core/motion.styl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,29 @@
9393

9494
.animate-popup-up, .animate-popup-down
9595
animation-timing-function cubic-bezier(0.23, 1, 0.32, 1)
96+
> *
97+
animation q-fade .82s cubic-bezier(.785, .135, .15, .86)
9698
.animate-popup-down
97-
animation q-popup-down .42s /* rtl:ignore */
99+
animation q-popup-down .36s /* rtl:ignore */
98100
transform-origin left top 0px /* rtl:ignore */
99101
.animate-popup-up
100-
animation q-popup-up .42s /* rtl:ignore */
102+
animation q-popup-up .36s /* rtl:ignore */
101103
transform-origin left bottom 0px /* rtl:ignore */
102104

103105
@keyframes q-popup-down
104106
0%
105107
opacity 0
106-
transform translateY(-20px) scaleY(.3)
108+
transform translateY(-10px) scaleY(.3)
107109
pointer-events none
108-
100%
110+
30%
109111
opacity 1
110112

111113
@keyframes q-popup-up
112114
0%
113115
opacity 0
114-
transform translateY(20px) scaleY(.3)
116+
transform translateY(10px) scaleY(.3)
115117
pointer-events none
116-
100%
118+
30%
117119
opacity 1
118120

119121
.animated

0 commit comments

Comments
 (0)