parent
							
								
									9fbee934fc
								
							
						
					
					
						commit
						4af03a9e71
					
				@ -0,0 +1,135 @@ | 
				
			||||
#timeline { | 
				
			||||
  display: flex; | 
				
			||||
  /* flex-direction: row; */ | 
				
			||||
  column-gap: 12px; | 
				
			||||
  background-color: #031625; | 
				
			||||
  justify-content: space-between; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#timeline:hover .tl-item { | 
				
			||||
  width: 20%; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item { | 
				
			||||
  transform: translate3d(0, 0, 0); | 
				
			||||
  position: relative; | 
				
			||||
  width: auto; | 
				
			||||
  height: 80vh; | 
				
			||||
  color: #fff; | 
				
			||||
  overflow: hidden; | 
				
			||||
  transition: width 0.5s ease; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item:before, | 
				
			||||
.tl-item:after { | 
				
			||||
  transform: translate3d(0, 0, 0); | 
				
			||||
  content: ""; | 
				
			||||
  position: absolute; | 
				
			||||
  left: 0; | 
				
			||||
  top: 0; | 
				
			||||
  width: 100%; | 
				
			||||
  height: 100%; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item:after { | 
				
			||||
  background: rgba(6, 27, 43, 0.85); | 
				
			||||
  opacity: 1; | 
				
			||||
  transition: opacity 0.5s ease; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item:before { | 
				
			||||
  background: linear-gradient( | 
				
			||||
    to bottom, | 
				
			||||
    rgba(0, 0, 0, 0) 0%, | 
				
			||||
    rgba(0, 0, 0, 1) 100% | 
				
			||||
  ); | 
				
			||||
  z-index: 1; | 
				
			||||
  opacity: 0; | 
				
			||||
  transform: translate3d(0, 0, 0) translateY(50%); | 
				
			||||
  transition: opacity 0.5s ease, transform 0.5s ease; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item:hover:after { | 
				
			||||
  opacity: 0; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item:hover:before { | 
				
			||||
  opacity: 1; | 
				
			||||
  transform: translate3d(0, 0, 0) translateY(0); | 
				
			||||
  transition: opacity 1s ease, transform 1s ease 0.25s; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.tl-item:hover .tl-content { | 
				
			||||
  opacity: 1; | 
				
			||||
  transform: translateY(0); | 
				
			||||
  transition: all 0.75s ease 0.5s; | 
				
			||||
} | 
				
			||||
.tl-item:hover .tl-title { | 
				
			||||
  top: 15%; | 
				
			||||
  transition: all 0.75s ease 0.5s; | 
				
			||||
} | 
				
			||||
.tl-item:hover .tl-bg { | 
				
			||||
  filter: grayscale(0); | 
				
			||||
} | 
				
			||||
.tl-title { | 
				
			||||
  position: absolute; | 
				
			||||
  top: 50%; | 
				
			||||
  left: 50%; | 
				
			||||
  transform: translateX(-50%) translateY(-50%); | 
				
			||||
  z-index: 1; | 
				
			||||
  border-top: 1px solid #fff; | 
				
			||||
  border-bottom: 1px solid #fff; | 
				
			||||
} | 
				
			||||
.tl-content { | 
				
			||||
  transform: translate3d(0, 0, 0) translateY(25px); | 
				
			||||
  position: relative; | 
				
			||||
  z-index: 1; | 
				
			||||
  text-align: left; | 
				
			||||
  margin: 0 8px; | 
				
			||||
  top: 30%; | 
				
			||||
  opacity: 0; | 
				
			||||
} | 
				
			||||
/* .tl-content p { | 
				
			||||
  font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, | 
				
			||||
    sans-serif; | 
				
			||||
  text-transform: uppercase; | 
				
			||||
  color: #1779cf; | 
				
			||||
  font-size: 1.44rem; | 
				
			||||
  font-weight: normal; | 
				
			||||
} */ | 
				
			||||
 | 
				
			||||
.tl-bg { | 
				
			||||
  transform: translate3d(0, 0, 0); | 
				
			||||
  position: absolute; | 
				
			||||
  width: 100%; | 
				
			||||
  height: 100%; | 
				
			||||
  top: 0; | 
				
			||||
  left: 0; | 
				
			||||
  background-size: cover; | 
				
			||||
  background-position: center center; | 
				
			||||
  transition: filter 0.5s ease; | 
				
			||||
  filter: grayscale(100%); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
@media only screen and (max-width: 768px) { | 
				
			||||
  #timeline { | 
				
			||||
    width: 75%; | 
				
			||||
    margin: 0 auto; | 
				
			||||
  } | 
				
			||||
  .tl-item:hover { | 
				
			||||
    width: 100% !important; | 
				
			||||
  } | 
				
			||||
  #timeline:hover .tl-item { | 
				
			||||
    width: 100%; | 
				
			||||
  } | 
				
			||||
  .tl-content li { | 
				
			||||
    justify-content: left; | 
				
			||||
  } | 
				
			||||
  .tl-item:hover .tl-title { | 
				
			||||
    top: 20%; | 
				
			||||
    transition: all 0.75s ease 0.5s; | 
				
			||||
  } | 
				
			||||
  .tl-content { | 
				
			||||
    top: 30%; | 
				
			||||
  } | 
				
			||||
} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue