Skip to content

Commit 61cc342

Browse files
authored
Merge pull request #820 from atmaram-kambli/frontend
add glow animation to the heading text #hacktoberfest
2 parents 76d23f0 + 9919f6e commit 61cc342

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

RandomQuote/AckermanLevi1/index.css

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ q {
88

99
body {
1010
margin: 0;
11+
color: #ffffff;
12+
text-align: center;
1113
width: 100%;
1214
height: 100vh;
1315
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
@@ -31,38 +33,65 @@ q {
3133
width: 100%;
3234
height: 100%;
3335
display: flex;
34-
justify-content: center;
36+
flex-direction: column;
37+
justify-content: space-evenly;
3538
align-items: center;
3639
}
40+
41+
.glow {
42+
margin-bottom: 20px;
43+
font-size: 40px;
44+
font-weight: 900;
45+
animation: glowText 1s ease-in-out infinite alternate
46+
}
47+
3748

49+
@keyframes glowText {
50+
from {
51+
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
52+
}
53+
to {
54+
text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
55+
}
56+
}
3857
.quote-area {
3958
display: flex;
4059
flex-direction: column;
60+
align-items: center;
4161
background: #fff;
4262
max-width: 600px;
4363
box-sizing: border-box;
4464
padding: 20px;
4565
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
66+
border: 2px solid #23c6b9;
4667
}
4768

69+
#quote {
70+
font-size: 20px;
71+
}
4872
#quoteAuthor {
49-
padding: 20px 0;
73+
padding: 5px 0;
74+
font-size: 22px;
75+
font-weight: 500;
5076
}
5177

5278
button {
5379
max-width: 200px;
54-
text-align: center;
80+
/* text-align: center; */
5581
line-height: 1.3em;
5682
margin-bottom: 10px;
5783
border: none;
5884
background: #23c6b9;
59-
color: #fff;
6085
font-weight: 900;
6186
padding: 10px;
6287
letter-spacing: .6px;
6388
cursor: pointer;
6489
}
65-
90+
#tweetbtn {
91+
max-width: 200px; ;
92+
margin: auto;
93+
border-radius: 8px;
94+
}
6695
/* Reduce motion options. If on then background is static */
6796
@media (prefers-reduced-motion: reduce) {
6897
body {

RandomQuote/AckermanLevi1/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</head>
99
<body>
1010
<div class="container">
11+
<h1 class="glow">Random Quote Generator</h1>
1112
<div class="quote-area">
1213
<div id="quote">
1314
<q id="quoteText">Finish each day and be done with it. You have done what you could. Some blunders and absurdities no doubt crept in; forget them as soon as you can. Tomorrow is a new day. You shall begin it serenely and with too high a spirit to be encumbered with your old nonsense.</q>

0 commit comments

Comments
 (0)