跳转到内容

模板:跳脸/style.css:修订间差异

来自电棍ottowiki
第1行: 第1行:
.fullscreen-image {
@keyframes zoomExpand {
   position: fixed;
   0% {
  top: 0;
    opacity: 0;
  left: 0;
    transform: scale(0.1);
   width: 1px;
   }
   height: 1px;
   50% {
   background-color: black;
    opacity: 1;
   opacity: 0;
   }
  transform-origin: top left;
   100% {
  transform: scale(0);
    opacity: 1;
   transition: transform 0.3s ease-out, opacity 0.3s ease-out, width 0s 0.3s, height 0s 0.3s;
    transform: scale(10); /* 放大倍数,根据屏幕大小调整 */
  z-index: 9999;
   }
  overflow: hidden;
}
}


/* 显示时:直接铺满全屏,放大到1倍 */
.zoom-expand {
.fullscreen-image.show {
   position: fixed !important;
   width: 100vw;
  top: 50% !important;
   height: 100vh;
  left: 50% !important;
   opacity: 1;
  max-width: none !important;
   transform: scale(1);
   max-height: none !important;
   transition: transform 0.3s ease-out, opacity 0.3s ease-out, width 0s, height 0s;
   width: auto !important;
}
  height: auto !important;
 
  transform-origin: center center !important;
.fullscreen-image img {
   transform: translate(-50%, -50%) scale(0.1);
   width: 100%;
   opacity: 0;
   height: 100%;
  z-index: 9999 !important;
   object-fit: cover;
  animation-name: zoomExpand;
  animation-duration: 1s;
   animation-fill-mode: forwards;
   animation-timing-function: ease-out;
   animation-delay: 0s;
}
}

2025年5月18日 (日) 14:44的版本

@keyframes zoomExpand {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(10); /* 放大倍数,根据屏幕大小调整 */
  }
}

.zoom-expand {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  max-width: none !important;
  max-height: none !important;
  width: auto !important;
  height: auto !important;
  transform-origin: center center !important;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  z-index: 9999 !important;
  animation-name: zoomExpand;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0s;
}