css+js实现鼠标鼠标文字渐变动画效果代码
代码语言:html
所属分类:悬停
代码描述:css+js实现鼠标鼠标文字渐变动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Shrikhand&display=swap'); * { box-sizing:border-box; margin:0; padding:0; } html, body { height:100%; } body { display:grid; place-items:center; font-family: 'Shrikhand', cursive; color:white; background-color:hsl(350, 100%, 1%); } h1 { text-transform:uppercase; font-size:clamp(2rem, 10vw, 6rem); word-wrap: break-word; letter-spacing:3px; background-image:linear-gradient( 130deg,#ff7a18,#af002d 41.07%,#319197 76.05%); -webkit-background-clip:text; color:hsl(0, 100%, 100%, 1); } .pulse { transition:co.........完整代码请登录后点击上方下载按钮下载查看
网友评论0