Skip to content

Commit 6c34624

Browse files
authored
Merge pull request #957 from vaishnavi-parodkar/Add-Text-Reflection
Add-Text-Reflection
2 parents 2630203 + 330f5d5 commit 6c34624

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

Text Reflection/Reflection.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Reflection Text Effect (Multi-Word)</title>
7+
<style>
8+
body {
9+
background: #000;
10+
color: #fff;
11+
font-family: 'Poppins', sans-serif;
12+
display: flex;
13+
justify-content: center;
14+
align-items: center;
15+
height: 100vh;
16+
flex-direction: column;
17+
}
18+
19+
.reflect-text {
20+
font-size: 60px;
21+
font-weight: bold;
22+
text-transform: uppercase;
23+
position: relative;
24+
color: #00ffff;
25+
display: inline-block;
26+
}
27+
28+
.reflect-text::after {
29+
content: attr(data-text);
30+
position: absolute;
31+
top: 100%;
32+
left: 0;
33+
width: 100%;
34+
color: #00ffff;
35+
transform: scaleY(-1);
36+
opacity: 0.4;
37+
filter: blur(1px);
38+
background: linear-gradient(to bottom, rgba(246, 250, 250, 0.7), transparent);
39+
background-clip: text;
40+
-webkit-text-fill-color: transparent;
41+
text-align: center;
42+
white-space: nowrap;
43+
}
44+
</style>
45+
</head>
46+
<body>
47+
48+
<div class="reflect-text" data-text="Reflection Text Effect Example">
49+
Reflection Text Effect
50+
</div>
51+
52+
</body>
53+
</html>

0 commit comments

Comments
 (0)