Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Product Gallery: Add animation when large image changes #11113

Merged
merged 24 commits into from
Oct 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
678a25f
Add slide animation
gigitux Oct 3, 2023
34a36c4
Remove placeholder and pagination (#11145)
albarin Oct 6, 2023
ea0b1f5
improve animation
gigitux Oct 6, 2023
0a88c32
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 6, 2023
c7fb032
improve naming
gigitux Oct 6, 2023
ed39279
Merge branch 'fix/animation-dialog' of github.com:woocommerce/woocomm…
gigitux Oct 6, 2023
aace907
fix regression
gigitux Oct 6, 2023
6539cd0
Merge branch 'trunk' of github.com:woocommerce/woocommerce-blocks int…
gigitux Oct 10, 2023
69daeae
fix css
gigitux Oct 11, 2023
8fe7233
improve code style
gigitux Oct 11, 2023
7ff3614
remove check on tag image
gigitux Oct 11, 2023
4d3008e
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 11, 2023
bb6f4ae
Merge branch 'trunk' of github.com:woocommerce/woocommerce-blocks int…
gigitux Oct 16, 2023
72f45b0
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 16, 2023
73c7bac
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 17, 2023
b1a8236
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 17, 2023
f1883db
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 17, 2023
e45c403
Merge branch 'trunk' into fix/animation-dialog
gigitux Oct 18, 2023
70ba9b5
Merge branch 'trunk' of github.com:woocommerce/woocommerce-blocks int…
gigitux Oct 19, 2023
b6db909
Merge branch 'fix/animation-dialog' of github.com:woocommerce/woocomm…
gigitux Oct 19, 2023
05a3eb6
align image
gigitux Oct 19, 2023
18d416e
fix crash when zoom is disabled
gigitux Oct 19, 2023
b6d0088
fix E2E tests
gigitux Oct 19, 2023
0592174
improve CSS
gigitux Oct 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
improve CSS
gigitux committed Oct 19, 2023
commit 059217488b095c5604f3b3c950b8020d64c21787
13 changes: 5 additions & 8 deletions assets/js/blocks/product-gallery/style.scss
Original file line number Diff line number Diff line change
@@ -74,29 +74,26 @@ $outside-image-max-width: calc(100% - (2 * $outside-image-offset));
display: flex;
overflow-x: hidden;
scroll-snap-type: x mandatory;
width: fit-content;
height: fit-content;
scroll-behavior: auto;
align-items: center;
}

#{$gallery-next-previous-inside-image} & .wc-block-product-gallery-large-image__image-element {
max-width: 100%;
width: fit-content;
overflow: hidden;
margin: unset;
margin: 0 auto;
}

#{$gallery-next-previous-inside-image} & .wc-block-product-gallery-large-image__image-element {
overflow: unset;
max-width: unset;
margin: unset;
}

img {
display: block;
position: relative;
margin: 0 auto;
z-index: 1;
transition: all 0.1s linear;
width: 100%;
width: auto;

// Keep the order in this way. The hoverZoom class should override the full-screen-on-click class when both are applied.
&.wc-block-woocommerce-product-gallery-large-image__image--full-screen-on-click {