Skip to content

Commit 555b586

Browse files
authored
Update affirmations.html
Update affirmations.html
1 parent f8e400f commit 555b586

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

affirmations.html

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
max-width: 1200px;
3636
margin: 0 auto;
3737
padding: 2rem;
38+
padding-bottom: 6rem;
3839
position: relative;
3940
}
4041

@@ -213,6 +214,12 @@
213214
color: rgba(255, 255, 255, 0.6);
214215
font-size: 0.9rem;
215216
animation: bounce 2s infinite;
217+
transition: opacity 0.3s ease;
218+
}
219+
220+
.scroll-indicator.hidden {
221+
opacity: 0;
222+
pointer-events: none;
216223
}
217224

218225
@keyframes bounce {
@@ -311,11 +318,41 @@ <h1>Daily Affirmations</h1>
311318
I am grateful for my strong, healthy, and beautifully thick hair. Every strand grows with vitality, and my scalp is nourished with perfect balance. I radiate confidence and well-being.
312319
</div>
313320
</div>
321+
322+
<div class="affirmation-card">
323+
<div class="om-symbol"></div>
324+
<div class="affirmation-text">
325+
I am deeply grateful for my vibrant health, lasting happiness, and abundant prosperity. I live each day with clarity, purpose, and joy. I am guided by divine light, and I grow closer to God with every breath.
326+
</div>
327+
</div>
314328
</div>
315329
</div>
316330

317-
<div class="scroll-indicator">
331+
<div class="scroll-indicator" id="scrollIndicator">
318332
↓ Scroll for more affirmations ↓
319333
</div>
334+
335+
<script>
336+
// Hide scroll indicator when user reaches the bottom of the page
337+
function handleScroll() {
338+
const scrollIndicator = document.getElementById('scrollIndicator');
339+
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
340+
const windowHeight = window.innerHeight;
341+
const documentHeight = document.documentElement.scrollHeight;
342+
343+
// Hide indicator when user is near the bottom (within 100px)
344+
if (scrollTop + windowHeight >= documentHeight - 100) {
345+
scrollIndicator.classList.add('hidden');
346+
} else {
347+
scrollIndicator.classList.remove('hidden');
348+
}
349+
}
350+
351+
// Add scroll event listener
352+
window.addEventListener('scroll', handleScroll);
353+
354+
// Initial check in case page loads at bottom
355+
handleScroll();
356+
</script>
320357
</body>
321-
</html>
358+
</html>

0 commit comments

Comments
 (0)