틀:연습장:아바투르너마저/2/styles.css: 두 판 사이의 차이

(새 문서: 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;
  padding: 0;
   font-family: Arial, sans-serif;
   font-family: Arial, sans-serif;
   background: radial-gradient(circle, #000428, #004e92);
   background: linear-gradient(to bottom, #1a1a1a, #101010);
   color: white;
   color: white;
   overflow-x: hidden;
   display: flex;
   animation: backgroundAnimation 20s infinite alternate;
  justify-content: center;
  align-items: center;
  height: 100vh;
   overflow-y: scroll;
}
}


@keyframes backgroundAnimation {
header {
   0% {
   text-align: center;
    background: radial-gradient(circle, #000428, #004e92);
   margin-bottom: 30px;
   }
  100% {
    background: radial-gradient(circle, #0f0c29, #302b63, #24243e);
  }
}
}


.header {
header h1 {
   text-align: center;
   font-size: 2.5rem;
   padding: 20px;
   font-weight: bold;
   background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
   color: #f1c40f;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  animation: titleGlow 3s infinite alternate;
   text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
}


@keyframes titleGlow {
/* 타임라인 컨테이너 */
   0% {
.timeline-container {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ff6a00;
   max-width: 600px;
   }
   width: 90%;
   100% {
   padding: 20px;
    text-shadow: 0 0 5px #ff6a00, 0 0 15px #ff4500, 0 0 20px #ff0000;
  }
}
}


/* 타임라인 스타일 */
.timeline {
.timeline {
  padding: 40px 20px;
   position: relative;
   position: relative;
   max-width: 800px;
   padding-left: 40px;
  margin: auto;
   border-left: 3px solid #f1c40f;
}
   animation: lineGlow 3s infinite alternate;
 
.timeline::before {
  content: '';
  position: absolute;
   left: 50%;
  width: 4px;
  height: 100%;
  background: #ffffff;
  transform: translateX(-50%);
  z-index: -1;
   animation: timelineGlow 5s infinite alternate;
}
}


@keyframes timelineGlow {
@keyframes lineGlow {
   0% {
   0% {
     box-shadow: 0 0 10px #ffffff;
     border-left-color: #f1c40f;
   }
   }
   100% {
   100% {
     box-shadow: 0 0 20px #ff6a00, 0 0 30px #ff4500;
     border-left-color: #e74c3c;
   }
   }
}
}


.event {
.event {
   margin: 30px 0;
   position: relative;
   display: flex;
   margin-bottom: 40px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}
}


@keyframes fadeIn {
.event:last-child {
   0% {
   margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
}


.event .year {
.event .year {
   background: #ff6a00;
   position: absolute;
   color: white;
   left: -60px;
  top: 0;
  font-size: 1.2rem;
   font-weight: bold;
   font-weight: bold;
   padding: 10px 20px;
   color: #f1c40f;
   border-radius: 20px;
   text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
   animation: fadeIn 1s ease-in;
  box-shadow: 0 4px 8px rgba(255, 106, 0, 0.5);
   animation: pulse 2s infinite alternate;
}
}


@keyframes pulse {
@keyframes fadeIn {
   0% {
   from {
     transform: scale(1);
    opacity: 0;
     transform: translateY(10px);
   }
   }
   100% {
   to {
     transform: scale(1.1);
    opacity: 1;
     transform: translateY(0);
   }
   }
}
}


.event .description {
.event p {
   background: #203a43;
   background: #333;
   padding: 15px;
   padding: 15px;
   border-radius: 10px;
   border-radius: 5px;
   width: 80%;
   margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
   animation: fadeInText 1s ease-in-out;
   transition: transform 0.3s;
}
}


.event .description:hover {
@keyframes fadeInText {
   transform: scale(1.05);
   from {
}
    opacity: 0;
 
    transform: translateX(10px);
.footer {
  }
  text-align: center;
  to {
  padding: 20px;
    opacity: 1;
  background: linear-gradient(90deg, #2c5364, #203a43, #0f2027);
    transform: translateX(0);
   font-size: 0.9em;
   }
  color: #cccccc;
}
}

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);
  }
}