.section-one {
position: relative;
background: #ffffff;
}
.section-one h2 {
color: #000000;
font-size: 32px;
margin: 0px 0px 10px 0px;
padding: 0px;
font-family: "AzoSans-Medium";
}
.section-one p {
color: #000000;
font-size: 16px;
margin: 10px 0px;
padding: 0px;
font-family: "AzoSans-Regular";
}
.section-one .boxes {
position: relative;
margin-top: 75px;
}
.section-one .boxes:last-child {
margin-bottom: 100px;
}
.section-one .boxes .left-box {
position: relative;
margin: 25px 0px 0px 0px;
z-index: 3;
}
.section-one .boxes .left-box img {
width: 100%;
}
.section-one .boxes .right-box {
position: relative;
margin: 25px 0px 0px 0px;
height: 100%;
z-index: 2;
}
.section-one .boxes .right-box.left:before,
.section-one .boxes .right-box.left::after {
left: 0px;
right: -30px;
}
.section-one .boxes .right-box:before,
.section-one .boxes .right-box::after {
position: absolute;
content: "";
top: 50px;
left: -30px;
right: 0px;
bottom: 25px;
z-index: -2;
}
.section-one .boxes .right-box:before {
border: 1px solid #f29d1f;
}
.section-one .boxes .right-box.left h2 {
text-align: left;
}
/**updated starts**/
.section-one .boxes .right-box.left:before {
left: 0px;
right: -30px;
}
.section-one .boxes .right-box.left::after {
right: 0px;
/* turned round */
left: -30px;
}
.section-one .boxes .right-box.left:before {
/* left: 0px;
right: -30px; */
border-right: none;
border-radius: 250px 0px 0px 250px;
}
/**updated ends**/
/** purely new code starts**/
.section-one .boxes .right-box::after {
width: 200%;
height: 100%;
}
.section-one .boxes .right-box.left::after {
background-position: 0 0, 100% 75%;
background-size: calc(50% + 30px) 100%, 50% 50%;
background-repeat: no-repeat no-repeat, no-repeat no-repeat;
background-image: linear-gradient(red, red), linear-gradient(red, red);
animation: left 1s ease-in-out;
animation-fill-mode: forwards;
animation-delay: 1s;
/* just to give time to go full screen on SO snippet! */
}
@keyframes left {
0% {
background-image: linear-gradient(red, red), linear-gradient(red, red);
transform: translateX(0);
}
49.99% {
background-image: linear-gradient(red, red), linear-gradient(red, red);
}
50% {
background-image: linear-gradient(transparent, transparent), linear-gradient(red, red);
transform: translateX(-50%);
}
99.99% {
background-image: linear-gradient(transparent, transparent), linear-gradient(red, red);
transform: translateX(0);
opacity: 1;
}
100% {
opacity: 0;
}
}
/** purely new code ends**/
.section-one .boxes .right-box.right h2 {
text-align: right;
}
.section-one .boxes .right-box.right:before {
border-left: none;
border-radius: 0px 250px 250px 0px;
}
/* probably code where to look starts */
.section-one .boxes .right-box.right::after {
padding: 0;
margin: 0;
width: calc(200% + 60px);
left: -30px;
transform: translateX(-50%);
background-position: 0 75%, right 0;
/* turned round */
background-size: 50% 50%, 50% 100%;
/* turned round */
background-repeat: no-repeat no-repeat, no-repeat no-repeat;
background-image: linear-gradient(white, white), linear-gradient(white, white);
animation: right 5s ease-in-out;
animation-fill-mode: forwards;
animation-delay: 5s;
}
@keyframes right {
0% {
background-image: linear-gradient(white, white), linear-gradient(white, white);
transform: translateX(-50%);
}
49.99% {
background-image: linear-gradient(white, white), linear-gradient(white, white);
}
50% {
background-image: linear-gradient(white, white), linear-gradient(transparent, transparent);
/* turned round */
transform: translateX(0px);
}
99.99% {
background-image: linear-gradient(white, white), linear-gradient(transparent, transparent);
/* turned round */
transform: translateX(-50%);
opacity: 1;
}
100% {
opacity: 0;
}
}
/* probably code where to look ends */
.section-one .boxes .right-box h2 {
padding: 50px 0px 20px 0px;
}
.section-one .boxes .right-box p {
display: block;
margin: 15px auto;
width: 100%;
max-width: 355px;
text-align: justify;
}
.section-one .boxes .action-btn {
position: relative;
text-align: right;
}
@media (max-width: 1199px) {
.section-one h2 {
font-size: 28px;
}
.section-one p {
font-size: 15px;
}
.section-one .boxes {
position: relative;
margin-top: 50px;
}
.section-one .boxes:last-child {
margin-bottom: 75px;
}
.section-one .boxes .right-box:before {
left: -30px;
}
.section-one .boxes .right-box.left h2 {
text-align: left;
}
.section-one .boxes .right-box.left:before {
border-radius: 200px 0px 0px 200px;
}
.section-one .boxes .right-box.right h2 {
text-align: left;
}
.section-one .boxes .right-box.right:before {
border-radius: 0px 200px 200px 0px;
}
.section-one .boxes .right-box h2 {
padding: 50px 0px 15px 0px;
}
.section-one .boxes .right-box p {
display: block;
margin: 15px auto;
width: 100%;
max-width: 355px;
text-align: justify;
}
.section-one .boxes .action-btn {
position: relative;
text-align: right;
}
}
@media (max-width: 991px) {
.sec...
***Your paraphrased text here***
...ipt></script>animation