Skip to content

Commit

Permalink
shrink item contianer (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
liatv authored Dec 21, 2023
1 parent 1167fae commit 17b410b
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions packages/gallery/src/components/styles/_hoverEffects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,14 @@ div.pro-gallery {

&.shrink-on-hover:not(.hide-hover) {
transition: background-color .4s ease !important;

.gallery-item-content,
.gallery-item-hover:not(.hide-hover) {
transition: transform .4s ease !important;
}
transition: transform .4s ease !important;

&.simulate-hover,
&:hover {
background-color: transparent !important;

.gallery-item-content {
transform: scale(0.985);
}
transform: scale(0.985);

.gallery-item-hover:not(.hide-hover) {
transform: scale(0.987);
div {
transform: none !important;
}
}
}
Expand Down

0 comments on commit 17b410b

Please sign in to comment.