(새 문서: body { margin: 0; padding: 0; font-family: Arial, sans-serif; background: radial-gradient(circle, #000428, #004e92); color: white; overflow-x: hidden; animation: backgroundAnimation 20s infinite alternate; } @keyframes backgroundAnimation { 0% { background: radial-gradient(circle, #000428, #004e92); } 100% { background: radial-gradient(circle, #0f0c29, #302b63, #24243e); } } .header { text-align: center; padding: 20px; background: linear-gra...) |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
/* 기본 스타일 */ | |||
body { | body { | ||
margin: 0; | margin: 0; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
background: | background: linear-gradient(to bottom, #1a1a1a, #101010); | ||
color: white; | 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: #f1c40f; | |||
margin: 0; | |||
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); | |||
} | } | ||
/* 타임라인 컨테이너 */ | |||
.timeline-container { | |||
max-width: 600px; | |||
width: 90%; | |||
padding: 20px; | |||
} | } | ||
/* 타임라인 스타일 */ | |||
.timeline { | .timeline { | ||
position: relative; | position: relative; | ||
padding-left: 40px; | |||
border-left: 3px solid #f1c40f; | |||
animation: lineGlow 3s infinite alternate; | |||
left: | |||
animation: | |||
} | } | ||
@keyframes | @keyframes lineGlow { | ||
0% { | 0% { | ||
border-left-color: #f1c40f; | |||
} | } | ||
100% { | 100% { | ||
border-left-color: #e74c3c; | |||
} | } | ||
} | } | ||
.event { | .event { | ||
position: relative; | |||
margin-bottom: 40px; | |||
} | } | ||
.event:last-child { | |||
margin-bottom: 0; | |||
} | } | ||
.event .year { | .event .year { | ||
position: absolute; | |||
left: -60px; | |||
top: 0; | |||
font-size: 1.2rem; | |||
font-weight: bold; | font-weight: bold; | ||
color: #f1c40f; | |||
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); | |||
animation: fadeIn 1s ease-in; | |||
animation: | |||
} | } | ||
@keyframes | @keyframes fadeIn { | ||
0 | from { | ||
transform: | opacity: 0; | ||
transform: translateY(10px); | |||
} | } | ||
to { | |||
transform: | opacity: 1; | ||
transform: translateY(0); | |||
} | } | ||
} | } | ||
.event | .event p { | ||
background: # | background: #333; | ||
padding: 15px; | padding: 15px; | ||
border-radius: | border-radius: 5px; | ||
margin: 0; | |||
animation: fadeInText 1s ease-in-out; | |||
} | } | ||
@keyframes fadeInText { | |||
transform: | from { | ||
} | opacity: 0; | ||
transform: translateX(10px); | |||
} | |||
to { | |||
opacity: 1; | |||
transform: translateX(0); | |||
} | |||
} | } |
2024년 12월 8일 (일) 22:24 판
/* 기본 스타일 */
body {
margin: 0;
font-family: Arial, sans-serif;
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: #f1c40f;
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: -60px;
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);
}
}