Created
September 17, 2022 17:26
-
-
Save E-fais/d21f1d7f7b7cbe37325f317e2dd3b089 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="my-foto-gallery"> | |
<div class="foto-gallery-container"> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
<div class="foto-gallery-item"> | |
<img class="foto-gallery-image" src="./Assets/images/sample.jpg"> | |
</div> | |
</div> | |
<a href="'#" class="btn" > SEE ALL PUBLICATIONS</a> | |
</section> | |
#css | |
------ | |
.my-foto-gallery{ | |
background-color: var(--clr-dark); | |
color: var(--clr-light); | |
text-align: center; | |
} | |
.foto-gallery-conatiner{ | |
display: grid; | |
grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); | |
} | |
.foto-gallery-item{ | |
background: var(--clr-accent); | |
overflow: hidden; | |
} | |
.foto-gallery-image{ | |
transition: | |
transform 750ms cubic-bezier(.5,0,.5,1), | |
opacity 250ms linear; | |
cursor: pointer; | |
} | |
.foto-gallery-item:focus{ | |
position:relative; | |
z-index: 2; | |
} | |
.foto-gallery-image:hover, | |
.foto-gallery-item:focus .experience-image | |
{ | |
transform: scale(1.2); | |
opacity: .75; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment