Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to Web elements
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
 box-sizing: border-box;
}

body {
 margin: 0px;
 background-color: #fff;
}

/**Typeo CSS End**/

/*Image Effect Start*/
.img-hover {
 overflow: hidden;
 position: relative;
 display: inline-block;
}

.img-hover img {
 -webkit-transition: opacity 0.35s, transform 0.35s;
 -moz-transition: opacity 0.35s, transform 0.35s;
 -ms-transition: opacity 0.35s, transform 0.35s;
 -o-transition: opacity 0.35s, transform 0.35s;
 transition: opacity 0.35s, transform 0.35s;
 -webkit-transform: scale(1.02);
 -moz-transform: scale(1.02);
 -ms-transform: scale(1.02);
 -o-transform: scale(1.02);
 transform: scale(1.02);
}

.img-hover:hover img {
 -webkit-transform: scale(1);
 -moz-transform: scale(1);
 -ms-transform: scale(1);
 -o-transform: scale(1);
 transform: scale(1);
 opacity: 1;
}

.img-hover:hover:before {
 -webkit-animation: effect_shine 1s;
 -moz-animation: effect_shine 1s;
 -ms-animation: effect_shine 1s;
 -o-animation: effect_shine 1s;
 animation: effect_shine 1s;
}

.img-hover:before {
 position: absolute;
 top: 0;
 right: auto;
 bottom: auto;
 left: -108%;
 content: "";
 z-index: 1;
 display: block;
 width: 50%;
 height: 100%;
 background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
 background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
 -webkit-transform: skewX(-25deg);
 -moz-transform: skewX(-25deg);
 -ms-transform: skewX(-25deg);
 -o-transform: skewX(-25deg);
 transform: skewX(-25deg);
}

@-webkit-keyframes effect_shine {
 100% {
  left: 150%;
 }

}

@keyframes effect_shine {
 100% {
  left: 150%;
 }

}

/*Image Effect End*/
.image-cont-scn, .image-cont-scn * {
 --page-width: 1330px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 40px;
 --base-size: 16px;
 --white-clr: #ffffff;
 --theme-clr: #ff6200;
}

.page-width {
 max-width: var(--page-width);
 padding: 0 15px;
 margin: auto;
 width: 100%;
}

.image-cont-scn {
 width: 100%;
 padding: 50px 0px;
 color: var(--base-size);
 font-family: var(--base-fm);
}

.image-cont-item {
 display: flex;
 flex-flow: row wrap;
 width: 100%;
 align-items: center;
 padding: 30px 0px;
}

.image-cont-item .cont-prt {
 width: 50%;
 padding: 20px 50px;
 padding-left: 0px;
 line-height: 1.4;
}

.image-cont-item .image-prt {
 width: 50%;
 position: relative;
 overflow: hidden;
}

.image-cont-item img {
 max-width: 100%;
}

.image-cont-item .cont-prt h2 {
 font-size: var(--title-size);
 margin-top: 0px;
 text-transform: uppercase;
 font-weight: 500;
}

.cmn-btn {
 padding: 12px 30px;
 background-color: #000;
 color: #fff;
 text-decoration: none;
 display: inline-block;
 transition: 0.5s all;
 margin-top: 10px;
 font-size: 18px;
}

.cmn-btn:hover {
 background-color: var(--theme-clr);
}

.image-cont-item:nth-child(2n+1) .cont-prt {
 padding-left: 50px;
 padding-right: 0px;
 order: 2;
}

.image-cont-item:nth-child(2n+1) .image-prt {
 order: 1;
}

@media(max-width:1200px) {
 .image-cont-scn {
  padding: 30px 0px;
 }

 .image-cont-item {
  align-items: flex-start;
 }

 .image-cont-item .cont-prt {
  width: 50%;
  padding-right: 20px;
  padding-top: 0px;
 }

 .image-cont-item .cont-prt h2 {
  font-size: calc(var(--title-size) - 10px);
 }

 .image-cont-item:nth-child(2n+1) .cont-prt {
  padding-left: 20px;
 }

}

@media(max-width:767px) {
 .image-cont-item:nth-child(2n+1) .cont-prt {
  padding-left: 0;
  order: inherit;
 }

 .image-cont-item .cont-prt {
  width: 100%;
  padding-right: 0;
 }

 .image-cont-item .image-prt {
  width: 100%;
 }

}

Related Web Elements