편집 요약 없음 |
편집 요약 없음 |
||
2번째 줄: | 2번째 줄: | ||
body { | body { | ||
margin: 0; | margin: 0; | ||
background: linear-gradient(to bottom, #1a1a1a, #101010); | background: linear-gradient(to bottom, #1a1a1a, #101010); | ||
color: white; | color: white; | ||
20번째 줄: | 19번째 줄: | ||
font-size: 2.5rem; | font-size: 2.5rem; | ||
font-weight: bold; | font-weight: bold; | ||
color: # | color: #fff; | ||
margin: 0; | margin: 0; | ||
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); | text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); | ||
60번째 줄: | 59번째 줄: | ||
.event .year { | .event .year { | ||
position: absolute; | position: absolute; | ||
left: - | left: -30px; | ||
top: 0; | top: 0; | ||
font-size: 1.2rem; | font-size: 1.2rem; |
2024년 12월 8일 (일) 22:29 판
/* 기본 스타일 */
body {
margin: 0;
background: linear-gradient(to bottom, #1a1a1a, #101010);
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow-y: scroll;
}
header {
text-align: center;
margin-bottom: 30px;
}
header h1 {
font-size: 2.5rem;
font-weight: bold;
color: #fff;
margin: 0;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
/* 타임라인 컨테이너 */
.timeline-container {
max-width: 600px;
width: 90%;
padding: 20px;
}
/* 타임라인 스타일 */
.timeline {
position: relative;
padding-left: 40px;
border-left: 3px solid #f1c40f;
animation: lineGlow 3s infinite alternate;
}
@keyframes lineGlow {
0% {
border-left-color: #f1c40f;
}
100% {
border-left-color: #e74c3c;
}
}
.event {
position: relative;
margin-bottom: 40px;
}
.event:last-child {
margin-bottom: 0;
}
.event .year {
position: absolute;
left: -30px;
top: 0;
font-size: 1.2rem;
font-weight: bold;
color: #f1c40f;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.event p {
background: #333;
padding: 15px;
border-radius: 5px;
margin: 0;
animation: fadeInText 1s ease-in-out;
}
@keyframes fadeInText {
from {
opacity: 0;
transform: translateX(10px);
}
to {
opacity: 1;
transform: translateX(0);
}
}