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**/
.instagram-scn, .instagram-scn * {
 --page-width: 1330px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 30px;
 --base-size: 16px;
 --white-clr: #ffffff;
 --black-clr: #000000;
 --theme-clr: #293355;
}

.instagram-scn {
 width: 100%;
 padding: 50px 0px;
 font-family: var(--base-fm);
 color: var(--white-clr);
 text-align: center;
}

.instagram-scn h2 {
 font-size: var(--title-size);
 color: var(--theme-clr);
 margin: 0px;
}

.instagram-icn {
 display: inline-block;
 vertical-align: middle;
 margin-right: 10px;
}

.instgram-tag {
 font-size: var(--base-size);
 color: var(--theme-clr);
 font-weight: 700;
 margin-top: 10px;
 display: inline-block;
}

.instagram-list {
 margin-top: 40px;
 display: flex;
 flex-flow: row wrap;
 width: 100%;
}

.instagram-list .instagram-item {
 width: calc(16.66% - 8px);
 overflow: hidden;
 margin: 0px 4px;
 position: relative;
}

.instagram-icon {
 width: 30px;
 height: 30px;
 background-size: 100%;
 background-image: url(https://coderwrap.com/wp-content/uploads/2022/12/instgram-icon.svg);
 background-repeat: no-repeat;
 transition: 0.8s all;
 position: absolute;
 left: 0px;
 top: 0px;
 right: 0px;
 bottom: 0px;
 z-index: 2;
 margin: auto;
 opacity: 0;
 filter: brightness(0) invert(1);
}

.instagram-list .instagram-item:before {
 content: '';
 position: absolute;
 left: 0px;
 top: 0px;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.7);
 transition: 0.5s all;
 opacity: 0;
 z-index: 1;
}

.instagram-list .instagram-item:hover:before, .instagram-list .instagram-item:hover .instagram-icon {
 opacity: 1;
}

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

.instagram-list .instagram-item:hover img {
 transform: scale(1.2);
}

@media(max-width:767px) {
 .instagram-scn {
  padding: 30px 0px;
 }

 .instagram-scn h2 {
  font-size: calc(var(--title-size) - 10px);
 }

 .instgram-tag {
  font-size: calc(var(--base-size) - 2px);
 }

 .instagram-list {
  margin-top: 20px;
 }

 .instagram-list .instagram-item {
  width: calc(33.33% - 4px);
  margin: 2px 2px;
 }

Related Web Elements