过渡效果
This commit is contained in:
@@ -901,19 +901,24 @@ const publicJump = path => router.push(path)
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.501960784313725);
|
||||
transform: translate(-50%, -50%);
|
||||
transition: width 0.3s, height 0.3s;
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
background-color: transparent;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
&.pitch {
|
||||
&::after {
|
||||
width: 0;
|
||||
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user