用户:Staf Irity/Sandbox.css:修订间差异
来自Limbo Wiki
Staf Irity(讨论 | 贡献) 小无编辑摘要 |
Staf Irity(讨论 | 贡献) 小 (我想看看能不能用上这个……) |
||
第15行: | 第15行: | ||
.float0:hover .float{ | .float0:hover .float{ | ||
right:0; | right:0; | ||
} | |||
.slidein { | |||
animation-duration: 3s; | |||
animation-name: slidein; | |||
animation-iteration-count: 3; | |||
animation-direction: alternate; | |||
} | |||
@keyframes slidein { | |||
from { | |||
margin-left:100%; | |||
width:300% | |||
} | |||
to { | |||
margin-left:0%; | |||
width:100%; | |||
} | |||
} | } |
2022年10月30日 (日) 12:57的版本
.float0{ position:fixed; overflow:hidden; top:25vh; right:0; margin:0px; padding:0px; z-index:100; } .float{ position:relative; right:calc(20px - 100%); transition: all .2s ease-out; } .float0:hover .float{ right:0; } .slidein { animation-duration: 3s; animation-name: slidein; animation-iteration-count: 3; animation-direction: alternate; } @keyframes slidein { from { margin-left:100%; width:300% } to { margin-left:0%; width:100%; } }