css布局实现12种文字阴影效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现12种文字阴影效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #f8fafc;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
padding: 4rem 2rem;
min-height: 100vh;
}
.showcase {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
.header {
margin-bottom: 4rem;
}
.title {
font-size: clamp(3rem, 8vw, 4rem);
font-weight: 300;
color: #1e293b;
margin-bottom: 1rem;
letter-spacing: 0.1em;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem 6rem;
margin-bottom: 4rem;
}
.effect {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.demo-text {
font-size: clamp(2rem, 5vw, 2.8rem);
font-weight: 700;
line-height: 1;
}
.effect-label {
font-size: 0.8rem;
color: #64748b;
font-weight: 400;
letter-spacing: 0.1em;
}
.neon {
color: #ffffff;
text-shadow:
0 0 5px #00ffff,
0 0 10px #00ffff,
0 0 20px #00ffff,
0 0 30px #00ffff;
animation: neonFlicker 1.5s ease-in-out infinite alternate;
}
@keyframes neonFlicker {
0% { text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0