woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-collection
Manish Menaria e210302e8a
Product Collection: Add loading indicator for client-side pagination (#44571)
* Add animation for client-side pagination

This includes:
- Addition of animation state management in the frontend file to control the visual transition between pagination states.
- Introduction of new SCSS rules for the start and finish animations, ensuring a seamless and visually appealing pagination experience.
- Modification of the PHP logic to inject necessary HTML for the animation to be applied.

These updates aim to provide a more engaging and responsive interface for users navigating through product collection.

* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce

* Allow user clicks under product collection's loading animation

This commit enhances the user experience of the loading animation for the product collection block. Changes include:

- Specifying `transform-origin: 0% 0%;` directly within the block's initial style to indicate the animation should start from the left
- Adding `pointer-events: none;` to allow user interactions with elements underneath the loading animation, thus improving usability by not blocking clicks.

Additionally, redundant `transform-origin` properties were removed from the `@keyframes` declaration to clean up the code and avoid unnecessary repetition. This simplification contributes to both the maintainability and readability of the stylesheet.

* Fix linting errors in SCSS file

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-02-16 15:43:58 +05:30
..
collections Product Collection: Make sure all variations are taken into account when choosing collection (#43273) 2024-01-08 10:55:42 +01:00
edit [Product Collection] Add unique ID attribute (#43314) 2024-01-18 15:30:57 +05:30
inner-blocks/no-results New flow of adding Product Collection and basic set of Collections (#42696) 2023-12-27 11:07:27 +01:00
variations Restructure Product Collection editor files (https://github.com/woocommerce/woocommerce-blocks/pull/11981) 2023-12-06 15:50:24 +01:00
block.json Product Collection: Make attributes available in rest_product_query hook (#44150) 2024-02-12 14:15:24 +05:30
constants.ts Product Collection: Make attributes available in rest_product_query hook (#44150) 2024-02-12 14:15:24 +05:30
frontend.tsx Product Collection: Add loading indicator for client-side pagination (#44571) 2024-02-16 15:43:58 +05:30
icon.tsx Foundation of New Product Collection Block (https://github.com/woocommerce/woocommerce-blocks/pull/9352) 2023-05-15 08:51:49 +00:00
index.tsx Fix: Enable Pagination Block Visibility in Product Collection Block (#43132) 2023-12-29 15:45:29 +05:30
save.tsx Foundation of New Product Collection Block (https://github.com/woocommerce/woocommerce-blocks/pull/9352) 2023-05-15 08:51:49 +00:00
style.scss Product Collection: Add loading indicator for client-side pagination (#44571) 2024-02-16 15:43:58 +05:30
types.ts Product Collection: Make attributes available in rest_product_query hook (#44150) 2024-02-12 14:15:24 +05:30
utils.tsx Fix: Enable Pagination Block Visibility in Product Collection Block (#43132) 2023-12-29 15:45:29 +05:30