css文字渐变背景效果代码

代码语言:html

所属分类:布局界面

代码描述:css文字渐变背景效果代码

代码标签: 背景 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
 <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@900&family=Open+Sans:wght@800&display=swap" rel="stylesheet">
  
  
  
<style>
.gradient-text {
  background-color: #120078;
  background-image: linear-gradient(
        130deg,
        #120078 16.666%, 
        #120078 16.666%, 
        #9D0191 33.333%, 
        #9D0191 33.333%, 
        #FD3A69 50%, 
        #FD3A69 50%, 
        #FECD1A 66.666%, 
        #FECD1A 66.666%, 
        #EEEEEE 83.333%, 
        #EEEEEE 83.333%);
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text:hover{
    animation: rainbow-text-simple-animation 0.5s ease-in forwards;
}

@keyframes rainbow-text-simple-animation-rev {
    0% {
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0