跳转到内容

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

来自电棍ottowiki
第3行: 第3行:
   top: 0;
   top: 0;
   left: 0;
   left: 0;
   width: 100vw;
   width: 1px;
   height: 100vh;
   height: 1px;
  transform: scale(0.01);
  opacity: 0;
  transition: all 0.3s ease-out;
   z-index: 9999;
   z-index: 9999;
   background: black;
   background-color: black;
   object-fit: contain;
   display: flex;
   transform: scale(0.05);
   align-items: center;
   opacity: 0;
   justify-content: center;
   transition: transform 0.4s ease-out, opacity 0.4s ease-out;
   overflow: hidden;
}
}


/* 进入激活状态后放大显示 */
/* 显示并放大图片 */
.fullscreen-image.show {
.fullscreen-image.show {
  width: 100vw;
  height: 100vh;
   transform: scale(1);
   transform: scale(1);
   opacity: 1;
   opacity: 1;
}
/* 限制图片大小不变形 */
.fullscreen-image img {
  max-width: 100%;
  max-height: 100%;
}
}

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

.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  transform: scale(0.01);
  opacity: 0;
  transition: all 0.3s ease-out;
  z-index: 9999;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 显示并放大图片 */
.fullscreen-image.show {
  width: 100vw;
  height: 100vh;
  transform: scale(1);
  opacity: 1;
}

/* 限制图片大小不变形 */
.fullscreen-image img {
  max-width: 100%;
  max-height: 100%;
}