用户:Staf Irity/Sandbox.css
来自Limbo Wiki
.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%; } }