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;
}

img {
 max-width: 100%;
}

/**Typeo CSS End**/
.coll-scn, .coll-scn * {
 --page-width: 1330px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 40px;
 --base-size: 16px;
 --white-clr: #ffffff;
 --black-clr: #000000;
 --theme-clr: #293355;
}

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

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

.coll-list {
 display: flex;
 flex-flow: row wrap;
 width: 100%;
}

.coll-list .coll-item {
 width: 50%;
 position: relative;
 overflow: hidden;
}

.coll-list .coll-item img {
 width: 100%;
}

.coll-cont {
 position: absolute;
 padding: 20px;
 color: var(--white-clr);
 text-align: center;
 z-index: 2;
 bottom: 10px;
 left: 0px;
 right: 0px;
 margin: auto;
}

.coll-list .coll-item img {
 display: block;
 transition: 0.8s all;
}

.coll-list .coll-item:hover img {
 transform: scale(1.1);
}

.coll-btn {
 display: inline-block;
 font-size: var(--base-size);
 letter-spacing: 1px;
 transition: 0.5s all;
 text-transform: uppercase;
 background-color: var(--white-clr);
 color: var(--black-clr);
 padding: 16px 30px;
}

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

@media(max-width:1200px) {
 .coll-scn {
  padding: 40px 0;
 }

}

@media(max-width:767px) {
 .coll-list .coll-item {
  width: 100%;
 }

 .coll-cont {
  padding: 5px;
 }

 .coll-btn {
  padding: 12px 20px;
  letter-spacing: normal;
 }

}

Related Web Elements