用户:Staf Irity/Sandbox03.css:修订间差异

来自Limbo Wiki Mirror
创建页面,内容为“Use example: <templatestyles src="User:Staf Irity/Sandbox03.css" />:​ <div class="moveTextWrapper" style="width:100%;"> <div class="moveText">移动的荧光的文字</div>:​ .moveTextWrapper { position:absolute; overflow:hidden; } .moveText { padding: 0; display: inline-block; position: relative; white-space: nowrap; animation: scroll-text 5s linear infinite;时间随便调:​ text-shadow: #FC0 1px 0 10px;/* From devel…”
 
Gaoice留言 | 贡献
 
(没有差异)

2025年6月25日 (三) 23:36的最新版本

/* Use example: <templatestyles src="User:Staf Irity/Sandbox03.css" /> */

/*
<div class="moveTextWrapper" style="width:100%;">
<div class="moveText">移动的荧光的文字</div>
*/
.moveTextWrapper {
	position:absolute;
    overflow:hidden;
}
.moveText {
    padding: 0;
    display: inline-block;
    position: relative;
    white-space: nowrap; 
    animation: scroll-text 5s linear infinite;/* 时间随便调 */
    text-shadow: #FC0 1px 0 10px;/* From developer.mozilla.org/zh-CN/docs/Web/CSS/text-shadow */
}


@keyframes scroll-text {
    0% {
        left:-20em;/* 数字自己看着调,反正必须是负数,负多少取决于字符串长度+你想要的空隙事件,至少得-(字符串长度)em */
    }
    100% {
        left:100%;
    }
}