Wednesday, February 28, 2024
1 change · saas-17.1
Enhancements to existing features
This update enhances the website editor's image functionality by allowing users to preview and customize hover animation effects. A key fix ensures that undo actions correctly remove these effects, preventing persistent changes. This improves the user experience and flexibility when designing website content.
Original PR description
**[IMP] web_editor, website: improve on hover animation** This commit makes improvements as requested in the following pull request [1] ("allowing the ability to flip/rotate image shapes" and "adding…
**[IMP] web_editor, website: improve on hover animation**
This commit makes improvements as requested in the following pull
request [1] ("allowing the ability to flip/rotate image shapes" and
"adding an 'on hover' option for animations").
It mainly focuses on refining the code for better organization.
[1]: https://github.com/odoo/odoo/pull/119197
task-3495241
-----------------------------------------------------------------------------------------------------
**[IMP] web_editor, website: preview hover effects**
This commit adds the possibility to preview the various effects
available in the "effect" option for 'on hover' animations when hovering
over the dropdown. The sub-options of these effects are also previewed.
This commit also prevents the user from seeing the different changes
that occur to an image with a shape while changing one of its options
(e.g., changing the shape, previewing hover effects).
task-3495241
-----------------------------------------------------------------------------------------------------
**[FIX] web_editor, website: fix undo after enabling hover effects.**
Steps to reproduce the bug:
- In Website edit mode, drag & drop a text-image snippet onto the page.
- Click on the image of the snippet.
- In the image options, select "On Hover" for the "Animation" option.
- Click on the "Undo" button in the top bar of the editor panel.
- Bug: The "Animation" option has not been deactivated, the "Hover
Effect" is still present when hovering over the image.
task-3495241
Forward-Port-Of: odoo/odoo#134979