🐛 修复生命周期悬浮边框与 iOS 风格展开动画
This commit is contained in:
1 parent
931b8b9d06
commit
5ed1141b06
1 file changed
+5
-4
@@ -1870,10 +1870,11 @@ const visibleDetailTimeline = computed(() =>
|
|||||||
isLifecycleExpanded.value ? detailTimelineRows.value : detailTimelineRows.value.slice(0, 3)
|
isLifecycleExpanded.value ? detailTimelineRows.value : detailTimelineRows.value.slice(0, 3)
|
||||||
)
|
)
|
||||||
|
|
||||||
const LIFECYCLE_ENTER_MS = 160
|
// iOS-like motion: a soft spring-feel enter, with a shorter decisive exit.
|
||||||
const LIFECYCLE_LEAVE_MS = 120
|
const LIFECYCLE_ENTER_MS = 360
|
||||||
const lifecycleEasing = 'cubic-bezier(0.22, 1, 0.36, 1)'
|
const LIFECYCLE_LEAVE_MS = 240
|
||||||
const lifecycleExitEasing = 'cubic-bezier(0.4, 0, 1, 1)'
|
const lifecycleEasing = 'cubic-bezier(0.2, 0.8, 0.2, 1)'
|
||||||
|
const lifecycleExitEasing = 'cubic-bezier(0.4, 0, 0.8, 0.2)'
|
||||||
const reducedMotionQuery = window.matchMedia('(prefers-reduced-motion: reduce)')
|
const reducedMotionQuery = window.matchMedia('(prefers-reduced-motion: reduce)')
|
||||||
|
|
||||||
const getAnimationDelay = (element: Element) => {
|
const getAnimationDelay = (element: Element) => {
|
||||||
|
|||||||
Reference in new issue
Block a user