react-beautiful-horizontal-timeline
Version:
* We offer Horizontal **Timeline** with your costumize. * Layouts will work on **Any** device, big or small. * Mobiles support **Swipe**. * Ability to **Style** timeline as you want.
155 lines (131 loc) • 2.76 kB
CSS
.axisWrapper {
display: flex;
justify-content: space-between;
overflow: hidden;
width: 90%;
margin: 0 auto;
padding-top: 17px;
position: relative;
margin-top: 8px;
}
.dot {
height: 11px;
width: 11px;
background-color: #bbb;
border-radius: 50%;
position: absolute;
top: -7px;
z-index: 100;
}
.descriptionEventName,
.descriptionEventDetails {
user-select: none;
}
.axis {
display: flex;
flex-wrap: nowrap;
position: relative;
transition: 0.4s linear;
}
.notEnoghEvents {
display: flex;
justify-content: space-around;
width: 100vw;
}
.specificEvent {
padding-top: 8px;
position: relative;
display: inline-block;
text-align: center;
cursor: pointer;
}
.fa-chevron-circle-right {
position: absolute;
top: -4px;
right: 0px;
z-index: 100;
display: inline-block;
padding: 2px;
color: grey;
cursor: pointer;
margin: 4px;
}
.fa-chevron-circle-left {
position: absolute;
color: grey;
top: -4px;
left: 0px;
z-index: 100;
display: inline-block;
padding: 2px;
cursor: pointer;
margin: 4px;
}
.fa-chevron-circle-left.enableBtn:hover,
.fa-chevron-circle-right.enableBtn:hover {
-webkit-transform: scale(1.2) rotate(0deg);
-ms-transform: scale(1.2) rotate(0deg);
transform: scale(1.1) rotate(0deg);
transition: .5s;
}
.wrapperAll {
width: 70%;
margin: 0 auto;
position: relative;
}
.disabledBtn {
cursor: not-allowed;
}
@media only screen and (max-width: 800px) {
.axisWrapper {
width: 75%;
}
}
.currentEventToShow {
animation-duration: 2s;
padding-left: 10px;
animation-duration: 2s;
animation-fill-mode: forwards;
user-select: none;
font-weight: bold;
text-align: center;
display: inline-block;
}
.wrapperEventCurrent {
text-align: center;
margin-top: 100px;
min-height: 100px;
}
@keyframes right-to-left {
0% {
transform: translate(500px, 0px);
opacity: 0;
}
100% {
transform: translate(0px, 0px);
opacity: 1;
visibility: visible;
}
}
@keyframes top-to-bottom {
0% {
transform: translate(0px, -110px);
opacity: 0;
}
100% {
transform: translate(0px, 0px);
opacity: 1;
visibility: visible;
}
}
@keyframes left-to-right {
0% {
transform: translate(-750px, 0px);
opacity: 0;
}
100% {
transform: translate(0px, 0px);
opacity: 1;
visibility: visible;
}
}