@zjpcy/simple-design 1.5.5 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3629,11 +3629,6 @@
3629
3629
  animation: centerAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
3630
3630
  }
3631
3631
 
3632
- /* 从浏览器顶部滑入到指定 top 位置的动画 */
3633
- .zjpcy-modal-container--from-top {
3634
- animation: fromTopAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
3635
- }
3636
-
3637
3632
  @keyframes centerAnimateIn {
3638
3633
  from {
3639
3634
  transform: scale(0.85);
@@ -3645,17 +3640,6 @@
3645
3640
  }
3646
3641
  }
3647
3642
 
3648
- @keyframes fromTopAnimateIn {
3649
- from {
3650
- transform: translateY(-100vh) scale(0.7);
3651
- opacity: 0;
3652
- }
3653
- to {
3654
- transform: translateY(0) scale(1);
3655
- opacity: 1;
3656
- }
3657
- }
3658
-
3659
3643
  /* 正常动画(从触发器位置缓慢过渡到中心) */
3660
3644
  .zjpcy-modal-container--normal {
3661
3645
  animation: normalAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
@@ -3729,11 +3713,6 @@
3729
3713
  animation: centerAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
3730
3714
  }
3731
3715
 
3732
- /* 从 top 位置回到浏览器顶部的消失动画 */
3733
- .zjpcy-modal-container--closing-from-top {
3734
- animation: fromTopAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
3735
- }
3736
-
3737
3716
  @keyframes centerAnimateOut {
3738
3717
  from {
3739
3718
  transform: scale(1);
@@ -3745,29 +3724,21 @@
3745
3724
  }
3746
3725
  }
3747
3726
 
3748
- @keyframes fromTopAnimateOut {
3749
- from {
3750
- transform: translateY(0) scale(1);
3751
- opacity: 1;
3752
- }
3753
- to {
3754
- transform: translateY(-100vh) scale(0.7);
3755
- opacity: 0;
3756
- }
3757
- }
3758
-
3759
3727
  /* 正常消失(回到触发器位置缓慢消失) */
3760
3728
  .zjpcy-modal-container--closing-normal {
3761
3729
  animation: normalAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
3762
3730
  }
3763
3731
 
3764
3732
  @keyframes normalAnimateOut {
3765
- from {
3733
+ 0% {
3766
3734
  transform: translate(0, 0) scale(1);
3767
3735
  opacity: 1;
3768
3736
  }
3769
- to {
3770
- transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.5);
3737
+ 70% {
3738
+ opacity: 0.7;
3739
+ }
3740
+ 100% {
3741
+ transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.1);
3771
3742
  opacity: 0;
3772
3743
  }
3773
3744
  }