Skip to content

Instantly share code, notes, and snippets.

View Kilims's full-sized avatar

yyye_tongxue Kilims

View GitHub Profile
@Kilims
Kilims / animation.css
Created July 24, 2020 11:26
[文字流光效果]React下给index.html添加首屏动效#html#css
#root > #preLoader {
width: 100%;
text-align: center;
padding-top: 15rem;
font-size: 2rem;
font-weight: bold;
}
#root > #preLoader > div > span#first {
/*设置渐变背景,最好设置为能无缝拼接的渐变*/
background-image: -webkit-linear-gradient(left, red, white 12.5%, red 25%, white 37.5%, red 50%, red 100%);