<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Winter Solstice Celebrations Around the World</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
</head>
<body>
<header id="main-header">
<h1 id="main-heading">Celebrating the Winter Solstice</h1>
<nav id="main-nav">
<ul>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#science">The Science</a></li>
<li><a href="#hemispheres">Solstice Across Hemispheres</a></li>
<li><a href="#celebrations">Global Celebrations</a></li>
<li><a href="#traditions">Solstice Traditions</a></li>
<li><a href="#conclusion">Conclusion</a></li>
</ul>
</nav>
</header>
<section id="introduction" class="section">
<h2>Introduction to the Winter Solstice</h2>
<p>The winter solstice is a significant astronomical event that marks the
shortest day and the longest night of the year.
It occurs annually in December in the Northern Hemisphere and in June in the Southern Hemisphere.
This event has been observed and celebrated by cultures around the world for thousands of years,
often symbolizing rebirth, reflection, and the triumph of light over darkness.</p>
</section>
<section id="science" class="section">
<h2>The Science Behind the Winter Solstice</h2>
<p>The solstices occur due to the Earth's axial tilt of approximately 23.5 degrees relative to its orbital plane around the Sun. This tilt causes different parts of the Earth to receive varying amounts of sunlight throughout the year, leading to the changing seasons. During the winter solstice, one hemisphere is tilted the farthest away from the Sun, resulting in the shortest period of daylight.</p>
<p>At the exact moment of the solstice, the Sun reaches its lowest maximum elevation in the sky. In the Northern Hemisphere, this happens around December 21st or 22nd, when the Sun is directly over the Tropic of Capricorn at 23.5 degrees south latitude. In the Southern Hemisphere, the winter solstice occurs around June 20th or 21st, when the Sun is over the Tropic of Cancer at 23.5 degrees north latitude.</p>
<p>The solstice is a precise moment in time, but its effects are felt throughout the day. The term "solstice" comes from the Latin words "sol" (sun) and "sistere" (to stand still), because the Sun's apparent movement north or south comes to a stop before reversing direction.</p>
</section>
<section id="hemispheres">
<h2>Solstice Across Hemispheres</h2>
<p class="unique">The experience of the solstice differs greatly between the Northern and Southern Hemispheres due to their opposite seasons.</p>
<article class="hemisphere" id="northern-hemisphere">
<h3>Northern Hemisphere</h3>
<p>In the Northern Hemisphere, the December solstice marks the beginning of winter. Countries like the United States, Canada, Russia, and much of Europe experience their shortest day and longest night. The weather typically becomes colder, and many cultures have developed traditions to bring light and warmth into this dark time of year.</p>
</article>
<article class="hemisphere" id="southern-hemisphere">
<h3>Southern Hemisphere</h3>
<p>Conversely, in the Southern Hemisphere, the December solstice signals the start of summer. Nations such as Australia, South Africa, and Argentina enjoy their longest day and shortest night. This time is associated with warmth, outdoor activities, and often, summer vacations.</p>
</article>
<p class="unique">This opposite experience of the solstice underscores the diversity of cultural responses to the same astronomical event, influenced by local climate and historical traditions.</p>
</section>
<section id="celebrations">
<h2>Global Celebrations of the Winter Solstice</h2>
<article class="celebration" id="newgrange">
<h3>Newgrange - Ireland</h3>
<p>The prehistoric monument of Newgrange is aligned with the rising sun on the winter solstice. Built over 5,000 years ago, it predates Stonehenge and the Egyptian pyramids. Each year, a beam of sunlight illuminates the inner chamber, symbolizing the victory of light over darkness.</p>
</article>
<article class="celebration" id="intiraymi">
<h3>Inti Raymi - Peru</h3>
<p>Although traditionally held during the June solstice, which is the winter solstice in the Southern Hemisphere, Inti Raymi is an ancient Incan festival honoring the Sun god Inti. The celebration includes music, dancing, and sacrifices, reflecting the importance of the Sun in agricultural societies.</p>
</article>
<article class="celebration" id="modranicht">
<h3>Modranicht - Anglo-Saxon Tradition</h3>
<p>Meaning "Mother's Night," Modranicht was observed by the Anglo-Saxons on the eve of the winter solstice. It was a time to honor female deities and ancestral mothers, symbolizing fertility and the rebirth of the Sun.</p>
</article>
<article class="celebration" id="koliada">
<h3>Koliada - Eastern Europe</h3>
<p>Koliada is a Slavic festival celebrated during the winter solstice. Traditions include singing carols, feasting, and lighting fires to symbolize the return of the Sun. The festival has influenced modern Christmas and New Year traditions in the region.</p>
</article>
</section>
<section id="traditions">
<h2>Common Solstice Traditions</h2>
<ul>
<li><strong>Bonfires and Candles:</strong> Lighting fires and candles is a widespread tradition to represent light overcoming darkness.</li>
<li><strong>Feasting:</strong> Communities gather to share meals, strengthening social bonds during the cold months.</li>
<li><strong>Gift-Giving:</strong> Exchanging gifts symbolizes goodwill and sharing abundance.</li>
<li><strong>Decorating with Evergreens:</strong> Using evergreen plants like holly and mistletoe represents eternal life and protection.</li>
<li><strong>Reflection and Renewal:</strong> The solstice is a time for introspection, setting intentions for the coming year.</li>
</ul>
</section>
<section id="conclusion">
<h2>Conclusion</h2>
<p>The winter solstice is a profound event that connects humanity across time and space. Despite differences in culture and climate, people around the world share common themes in their celebrations—hope, renewal, and the enduring human spirit. Understanding the science behind the solstice enhances our appreciation of these traditions and highlights our connection to the cosmos.</p>
</section>
<footer id="main-footer">
<p>© 2024 Winter Solstice Celebrations</p>
<nav id="footer-nav">
<ul>
<li><a href="#introduction">Back to Top</a></li>
<li><a href="https://dev.to" target="_blank">Contact Us</a></li>
</ul>
</nav>
</footer>
<script src="script.js"></script>
</body>
</html>
/* Imported the Google fonts used here */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Emilys+Candy&family=Itim&family=Mountains+of+Christmas:wght@400;700&display=swap');
/* Done for GSAP animation behavior */
* {
scroll-behavior: smooth;
}
/* General Styling */
body {
margin: 0;
padding: 0;
background-image: url("https://media1.tenor.com/m/S7zqThJnnSMAAAAC/have-a-beautiful-day.gif");
color: rgb(228, 231, 244);
background-repeat: no-repeat;
background-size: cover;
}
/* Header and Navigation- both in 1 section btw */
header {
position: sticky;
top: 0;
background-image: linear-gradient(to right, rgb(2, 2, 39), rgb(40, 1, 27), rgb(29, 3, 47), rgb(3, 39, 39), rgb(55, 3, 55));
padding: 20px 0;
z-index: 10;
text-align: center;
}
#main-heading {
text-transform: uppercase;
letter-spacing: 1px;
background: linear-gradient(to right, #a9cfe8, #477ba9, #aa55d1, #9840cf);
-webkit-background-clip: text;
background-clip: text;
color: rgb(156, 182, 236);
font-family: "Cinzel", serif;
font-optical-sizing: auto;
font-weight: 900;
font-style: normal;
text-shadow: 2px 2px #ffffff;
font-size: 2.5rem;
}
#main-nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
}
#main-nav ul li {
margin: 0 15px;
}
#main-nav ul li a {
text-decoration: none;
color: #c4d7eb;
font-size: 1.1rem;
font-weight: 700;
transition: color 0.3s;
}
#main-nav ul li a:hover {
color: #0e0e58;
background-image: url("https://i.pinimg.com/originals/ea/0c/78/ea0c788fc31bd4f4a93345d70cb4c1e8.gif");
padding: 15px;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
font-weight: 900;
}
/* Section Styling */
section,
#traditions ul {
padding: 60px 20px;
min-height: 200px;
text-align: center;
background: rgba(0, 20, 40, 0.8);
border-radius: 20px;
position: relative;
opacity: 0.9;
overflow: hidden;
width: 90vw;
margin: 50px auto 40px auto;
}
#traditions ul {
background-image: linear-gradient(to right, rgb(165, 165, 247), rgb(248, 150, 248), rgb(234, 111, 234));
margin: 40px auto;
}
section h2 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #c8a5e7;
font-family: "Mountains of Christmas", serif;
font-weight: 700;
font-style: normal;
text-shadow: 2px 2px #fff;
}
section p,
section ul {
font-size: 1.2rem;
line-height: 1.8;
letter-spacing: 0.5px;
color: #fff;
}
section h3 {
font-size: 1.7rem;
color: #933bf1;
margin-bottom: 15px;
font-family: "Emilys Candy", serif;
font-weight: 700;
font-style: normal;
text-shadow: 2px 2px #fff;
}
section ul {
padding-left: 20px;
}
section li {
margin-bottom: 10px;
list-style-type: none;
color: #350543;
font-weight: bold;
}
.section p,
.hemisphere p,
.celebration p {
min-height: 100px;
}
li strong {
font-family: 'Courier New', Courier, monospace;
font-size: 1.2em;
color: #1a43ac;
text-shadow: 2px 2px #b16edb;
}
/* Snowfall Animation */
@keyframes snowfall {
0% {
top: -10px;
opacity: 0.9;
}
50% {
opacity: 1;
}
100% {
top: 100%;
opacity: 0;
}
}
/* Snowflake Styling */
section span {
position: absolute;
font-size: 2rem;
color: white;
animation: snowfall 10s linear infinite;
}
/* Footer section*/
footer {
background-image: linear-gradient(to right, rgb(2, 2, 39), rgb(40, 1, 27), rgb(29, 3, 47), rgb(3, 39, 39), rgb(55, 3, 55));
text-align: center;
padding: 20px;
position: relative;
}
footer p {
font-size: 1rem;
background-image: linear-gradient(to right, rgb(123, 123, 250), rgb(241, 126, 241), rgb(247, 105, 247));
}
footer nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
}
footer nav ul li {
margin: 0 10px;
}
footer nav ul li a {
text-decoration: none;
color: #dcacf1;
font-size: 1rem;
transition: color 0.3s;
}
footer nav ul li a:hover {
color: #9993f0;
}
/* Scroll Animations */
section {
background-image: linear-gradient(to right, rgb(4, 4, 70), rgb(48, 2, 48), rgb(46, 5, 46));
}
section p,section article,#hemispheres .unique{
padding: 20px;
min-height: auto;
text-align: center;
background-image: linear-gradient(rgb(92, 92, 218), rgb(199, 118, 199));
margin-top: 50px;
border-radius: 20px;
margin-bottom: 40px;
position: relative;
opacity: 0.9;
overflow: hidden;
}
section article {
padding: 30px 20px;
background-image: linear-gradient(rgb(173, 173, 227), rgb(235, 179, 235));
}
#hemispheres .unique {
min-height: 50px;
background-image: linear-gradient(rgb(33, 33, 164), rgb(84, 11, 84));
}
/* Responsive Styles - Navbar*/
@media (max-width: 960px) {
#main-header {
padding: 15px;
}
h1 {
font-size: 2rem;
}
#main-nav ul {
flex-direction: column;
}
#main-nav ul li {
margin: 10px;
}
#main-nav {
display: none;
text-align: center;
width: 100%;
}
#main-nav.active {
display: block;
}
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
background-color: #5d5dcb;
border-radius: 10px;
}
/* Font families- especially chosen for their winter theme */
p {
font-family: "Itim", cursive;
font-weight: 400;
font-style: normal;
font-size: 1.5em
}
h2,
h3 {
display: inline-block;
white-space: nowrap;
animation: marquee 8s linear infinite; /* Marquee animation */
}
/* Keyframes for the marquee effect */
@keyframes marquee {
0% {
transform: translateX(50%);/* Start from right */
}
100% {
transform: translateX(-50%); /* End at left */
}
}
section:hover,
p:hover,
article:hover,
ul:hover {
animation: shake-updown 0.5s ease-in-out;
}
@keyframes shake-updown {
0% {
transform: translateY(0);
}
25% {
transform: translateY(-5px);
}
50% {
transform: translateY(5px);
}
75% {
transform: translateY(-5px);
}
100% {
transform: translateY(0);
}
}
/* General Styles for Navbar */
#main-nav {
display: flex;
justify-content: space-around;
align-items: center;
list-style-type: none;
padding: 10px 20px;
}
/* #main-nav li {
margin: 5px;
} */
#main-nav a {
text-decoration: none;
color: white;
font-size: 1rem;
padding: 5px 10px;
transition: background-color 0.3s ease, color 0.3s ease;
}
#main-nav a:hover {
background-color: #575757;
color: #d4d4d4;
}
#main-nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
}
#main-nav ul li {
margin: 15px 0;
}
#main-nav ul li a {
text-decoration: none;
color: #c4d7eb;
font-size: 1.2rem;
font-weight: 500;
transition: color 0.3s;
}
#main-nav ul li a:hover {
color: #0e0e58;
background-image: url("https://i.pinimg.com/originals/ea/0c/78/ea0c788fc31bd4f4a93345d70cb4c1e8.gif");
padding: 5px;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
font-weight: 900;
border-radius: 20px;
}
/* Media Query for Smaller Screens */
@media (max-width: 960px) {
#main-nav {
flex-direction: column;
align-items: flex-start;
padding: 10px;
top: 200px;
background-image: linear-gradient(to right, rgb(2, 2, 39), rgb(40, 1, 27), rgb(29, 3, 47), rgb(3, 39, 39), rgb(55, 3, 55));
padding: 20px 0;
z-index: 10;
text-align: center;
}
#main-nav ul li {
margin: 5px;
background-image: linear-gradient(to right, rgb(5, 5, 99), rgb(10, 10, 47), rgb(35, 3, 35));
padding: 10px 20px;
border-radius: 20px;
}
#main-nav ul {
margin-right: auto;
margin-left: auto;
}
#main-nav ul li a:hover {
background-image: url("https://i.pinimg.com/originals/ea/0c/78/ea0c788fc31bd4f4a93345d70cb4c1e8.gif");
padding: 10px 20px;
border-radius: 20px;
}
header {
position: relative
}
}
// GSAP Animations used for Continuous Scrolling through all my sections
document.addEventListener('DOMContentLoaded', () => {
gsap.registerPlugin(ScrollTrigger);
document.querySelectorAll('section').forEach((section) => {
gsap.from(section, {
scrollTrigger: {
trigger: section,
start: 'top 80%',
end: 'top 20%',
toggleActions: 'play none none reverse',
},
opacity: 0,
y: 50,
duration: 1,
ease: 'power2.out',
});
});
// Snowfall added to each of the sections
const sections = document.querySelectorAll("section");
sections.forEach(section => {
const snowflakes = 40;
for (let i = 0; i < snowflakes; i++) {
const snowflake = document.createElement("span");
snowflake.textContent = "❄️☃️❄️";
snowflake.style.position = "absolute";
snowflake.style.left = `${Math.random() * 100}%`;
snowflake.style.fontSize = `${Math.random() * 20 + 10}px`;
snowflake.style.animationDelay = `${Math.random() * 10}s`;
snowflake.style.animationDuration = `${5 + Math.random() * 5}s`;
section.appendChild(snowflake);
}
});
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.