欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

css实现炫彩字体

程序员文章站 2022-03-07 21:35:55
css实现炫彩字体#logo { font-weight: 600; font-size: 28px; font-family: "黑体"; color: #8c888b; background: -webkit-linear-gradient(45deg, #70f7fe, #fbd7c6, #fdefac, #bfb5dd,...

css实现炫彩字体

#logo {                 
	font-weight: 600;                 
	font-size: 28px;                 
	font-family: "黑体";                 
	color: #8c888b;                 
	background: -webkit-linear-gradient(45deg, #70f7fe, #fbd7c6, #fdefac, #bfb5dd, #bed5f5);                 	
	-moz-linear-gradient(45deg, #70f7fe, #fbd7c6, #fdefac, #bfb5dd, #bed5f5);                 		
	-ms-linear-gradient(45deg, #70f7fe, #fbd7c6, #fdefac, #bfb5dd, #bed5f5);                 
	color: transparent;                 
/*设置字体颜色透明*/                 
	-webkit-background-clip: text;
/*背景裁剪为文本形式*/
	animation: ran 10s linear infinite;
/*动态10s展示*/
}              
@keyframes ran {
	from {
		backgroud-position: 0 0;
	}
	to {
		background-position: 2000px 0;
	}
}

样式展示示例

css实现炫彩字体

link

本文地址:https://blog.csdn.net/qq_37432828/article/details/111088564

相关标签: css html