mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] website_animate: review website animate
Review the module website animate to make it cleaner. Dead code, lint files, etc. Move the WebsiteAnimate object used by a public widget into this public widget. Rename "Each Time It Becomes Visible" into "Animation Launch" and replace the checkbox by a select. Reorder the options. task-2215118 closes odoo/design-themes#8 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<template id="o_animate_options" inherit_id="website.snippet_options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-js="o_animate"
|
||||
<div data-js="WebsiteAnimate"
|
||||
data-selector=".o_animable, section, img, .fa, [class^='col-md'], .btn"
|
||||
data-exclude=".o_not-animable">
|
||||
<we-select string="Animate" class="o_anim_li" data-is-animation-type-selection="true">
|
||||
@@ -53,12 +53,14 @@
|
||||
<we-button data-select-class="o_anim_flip_in_x">Flip-In-X</we-button>
|
||||
<we-button data-select-class="o_anim_flip_in_y">Flip-In-Y</we-button>
|
||||
</we-select>
|
||||
<we-select string="Animation Launch" data-dependencies="!no_animation_opt">
|
||||
<we-button data-select-class="">First Time Only</we-button>
|
||||
<we-button data-select-class="o_animate_both_scroll">Every Time</we-button>
|
||||
</we-select>
|
||||
<we-input string="Animation Duration" data-dependencies="!no_animation_opt"
|
||||
data-select-style="0.4s" data-css-property="animation-duration" data-unit="s"/>
|
||||
<we-input string="Animation Delay" data-dependencies="!no_animation_opt"
|
||||
data-select-style="0s" data-css-property="animation-delay" data-unit="s"/>
|
||||
<we-checkbox string="Each time it becomes visible" data-dependencies="!no_animation_opt"
|
||||
data-select-class="o_animate_both_scroll"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user