css缩放样式

This commit is contained in:
熊丽君
2021-12-15 08:40:23 +08:00
parent 01dad5c243
commit 7df87f043e

View File

@ -70,16 +70,16 @@ export default {
#ScaleBox {
--scale: 1;
}
// .ScaleBox {
// position: absolute;
// transform: scale(var(--scale)) translate(-50%, -50%);
// display: flex;
// flex-direction: column;
// transform-origin: 0 0;
// left: 50%;
// top: 50%;
// transition: 0.3s;
// z-index: 999;
// // background: rgba(255, 0, 0, 0.3);
// }
.ScaleBox {
position: absolute;
transform: scale(var(--scale)) translate(-50%, -50%);
display: flex;
flex-direction: column;
transform-origin: 0 0;
left: 50%;
top: 50%;
transition: 0.3s;
z-index: 999;
// background: rgba(255, 0, 0, 0.3);
}
</style>