|
发表于 2023-4-23 20:53:23
|
查看全部
那个渐变字体需要在 template\default\common\common.css 里添加代码
- #postmessage_37985{
- font-size: 22px;
- color: #8c888b;
- background: -webkit-linear-gradient(45deg,#00f2ff,#ff5200,#ffd300,#4000ff,#006bff);
- -moz-linear-gradient(45deg,#00f2ff,#ff5200,#ffd300,#4000ff,#006bff);
- -ms-linear-gradient(45deg,#00f2ff,#ff5200,#ffd300,#4000ff,#006bff);
- color: transparent;
- -webkit-background-clip: text;
- animation: ran 50s linear infinite;
- }
- @keyframes ran {
- from {
- backgroud-position: 0 0;
- }
- to {
- background-position: 9000px 0;
- }
- }
复制代码
然后看你需要让那些字体渐变,例如模板字体里的h1,然后添加代码给h1运行。
- h1 {
- color: #8c888b;
- background: -webkit-linear-gradient(45deg,#00f2ff,#ff5200,#ffd300,#4000ff,#006bff);
- -moz-linear-gradient(45deg,#00f2ff,#ff5200,#ffd300,#4000ff,#006bff): ;
- -ms-linear-gradient(45deg,#00f2ff,#ff5200,#ffd300,#4000ff,#006bff): ;
- color: transparent;
- -webkit-background-clip: text;
- animation: ran 150s linear infinite;
- }
复制代码
ran 150s 是速度,自己调整。 |
|