Skip to content

Commit

Permalink
Update one.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto-Kaiser authored Apr 6, 2024
1 parent 0a38805 commit e6338f5
Showing 1 changed file with 137 additions and 1 deletion.
138 changes: 137 additions & 1 deletion one.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,42 @@ body {
padding: 10px 50px;
position: relative;
width: 50%;
background: rgba(0, 0, 0, 0.3);
animation: movedown 1s linear forwards;
opacity: 0;
}

@keyframes movedown {
0%{
opacity: 1;
transform: translateY(-30px);
}
100%{
opacity: 1;
transform: translateY(0px);
}
}

.container:nth-child(1){
animation-delay: 0s;
}
.container:nth-child(2){
animation-delay: 1s;
}
.container:nth-child(3){
animation-delay: 2s;
}
.container:nth-child(4){
animation-delay: 3s;
}
.container:nth-child(5){
animation-delay: 4s;
}
.container:nth-child(6){
animation-delay: 5s;
}



.text-box {
padding: 20px 30px;
background: #fff;
Expand All @@ -37,3 +70,106 @@ body {
.right-container {
left: 50%;
}

.container img {
position: absolute;
width: 40px;
border-radius: 50%;
right: -20px;
top: 32px;
z-index: 10;
}

.right-container img {
left: -20px;
}

.timeline::after {
content: '';
position: absolute;
width: 6px;
height: 100%;
background: #fff;
top: 0;
left: 50%;
margin-left: -3px;
z-index: -1;
animation: moveline 6s linear forwards;
}

@keyframes moveline {
0%{
height: 0;
}
100%{
height: 100%;
}
}


.text-box h2 {
font-weight: 600;
}

.text-box small {
display: inline-block;
margin-bottom: 15px;
}

.left-container-arrow {
height: 0;
width: 0;
position: absolute;
top: 28px;
z-index: 1;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 15px solid #fff;
right: -15px;
}

.right-container-arrow {
height: 0;
width: 0;
position: absolute;
top: 28px;
z-index: 1;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-right: 15px solid #fff;
left: -15px;
}




@media screen and (max-width: 600px){
.timeline{
margin: 50px auto;
}
.timeline::after{
left: 31px;
}
.container{
width: 100%;
padding-left: 80px;
padding-right: 25px;
}
.text-box{
font-size: 13px;
}
.text-box small{
margin-bottom: 10px;
}
.right-container{
left: 0;
}
.left-container img, .right-container img{
left: 10px;
}
.left-container-arrow, .right-container-arrow{
border-right: 15px solid #fff;
border-left: 0;
left: -15px;
}
}

0 comments on commit e6338f5

Please sign in to comment.