文字悬浮填充背景色动画
代码语言:html
所属分类:悬停
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:900'>
<style>
/*--------------------
Body
--------------------*/
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
padding: 50px 0;
min-height: 100vh;
margin: 0;
background: radial-gradient(ellipse farthest-corner at center bottom, #6beace, #2e9aa4);
color: #8b9095;
font-size: 14px;
font-family: 'Roboto', sans-serif;
font-weight: 900;
font-size: 80px;
letter-spacing: 0.02em;
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
}
@media (max-width: 400px) {
body {
font-size: 50px;
}
}
span {
cursor: pointer;
-webkit-text-stroke-color: #fff;
-webkit-text-stroke-width: 0.02em;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
backgr.........完整代码请登录后点击上方下载按钮下载查看
网友评论0