- Repo for opensource odoo website theme (since V13.0)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
8.7 KiB

5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="no-js_fallback" inherit_id="website.layout">
  4. <xpath expr="//head" position="inside">
  5. <noscript id="o_animate-no-js_fallback">
  6. <style type="text/css">
  7. .o_animate {
  8. /* If no js - force elements rendering */
  9. visibility:visible;
  10. /* If browser support css animations support - reset animation */
  11. -webkit-animation-name: none-dummy;
  12. animation-name: none-dummy;
  13. }
  14. </style>
  15. </noscript>
  16. </xpath>
  17. </template>
  18. <template id="o_animate_options" inherit_id="website.snippet_options">
  19. <xpath expr="." position="inside">
  20. <t t-set="o_animate_elements" t-value="['.o_animable', 'section', 'img', '.fa', '[class^=\'col-md\']', '.btn']"/>
  21. <t t-set="o_animate_selector" t-value="', '.join(o_animate_elements)"/>
  22. <div data-js="o_animate"
  23. t-att-data-selector="o_animate_selector"
  24. data-exclude=".o_not-animable">
  25. <we-collapse-area class="o_anim_li">
  26. <we-toggler><i class="fa fa-fw fa-bolt"/> Animate</we-toggler>
  27. <we-collapse>
  28. <we-button data-select-class="">Disable animation</we-button>
  29. <we-divider/>
  30. <we-collapse-area class="o_anim_entrance-fading_li">
  31. <we-toggler>Fading</we-toggler>
  32. <we-collapse>
  33. <we-button data-select-class="o_anim_fade_in">Fade In</we-button>
  34. <we-button data-select-class="o_anim_fade_in_down">Fade In-Down</we-button>
  35. <we-button data-select-class="o_anim_fade_in_left">Fade In-Left</we-button>
  36. <we-button data-select-class="o_anim_fade_in_right">Fade In-Right</we-button>
  37. <we-button data-select-class="o_anim_fade_in_up">Fade In-Up</we-button>
  38. </we-collapse>
  39. </we-collapse-area>
  40. <we-collapse-area class="o_anim_entrance-bounce_li">
  41. <we-toggler>Bouncing</we-toggler>
  42. <we-collapse>
  43. <we-button data-select-class="o_anim_bounce_in">Bounce In</we-button>
  44. <we-button data-select-class="o_anim_bounce_in_down">Bounce In-Down</we-button>
  45. <we-button data-select-class="o_anim_bounce_in_left">Bounce In-Left</we-button>
  46. <we-button data-select-class="o_anim_bounce_in_right">Bounce In-Right</we-button>
  47. </we-collapse>
  48. </we-collapse-area>
  49. <we-collapse-area class="o_anim_entrance-rotate_li">
  50. <we-toggler>Rotating</we-toggler>
  51. <we-collapse>
  52. <we-button data-select-class="o_anim_rotate_in">Rotate In</we-button>
  53. <we-button data-select-class="o_anim_rotate_in_down_left">Rotate In-Down-Left</we-button>
  54. <we-button data-select-class="o_anim_rotate_in_down_right">Rotate In-Down-Right</we-button>
  55. </we-collapse>
  56. </we-collapse-area>
  57. <we-collapse-area class="o_anim_effects-rotate_li">
  58. <we-toggler>Zoom</we-toggler>
  59. <we-collapse>
  60. <we-button data-select-class="o_anim_zoom_in">Zoom In</we-button>
  61. <we-button data-select-class="o_anim_zoom_in_down">Zoom In-Down</we-button>
  62. <we-button data-select-class="o_anim_zoom_in_left">Zoom In-Left</we-button>
  63. <we-button data-select-class="o_anim_zoom_in_right">Zoom In-Right</we-button>
  64. </we-collapse>
  65. </we-collapse-area>
  66. <we-collapse-area class="o_anim_effects-attention_li">
  67. <we-toggler>Attention Seekers</we-toggler>
  68. <we-collapse>
  69. <we-button data-select-class="o_anim_flash">Flash</we-button>
  70. <we-button data-select-class="o_anim_pulse">Pulse</we-button>
  71. <we-button data-select-class="o_anim_shake">Shake</we-button>
  72. <we-button data-select-class="o_anim_tada">Tada</we-button>
  73. </we-collapse>
  74. </we-collapse-area>
  75. <we-collapse-area class="o_anim_effects-flippers_li">
  76. <we-toggler>Flippers</we-toggler>
  77. <we-collapse>
  78. <we-button data-select-class="o_anim_flip_in_x">Flip-In-X</we-button>
  79. <we-button data-select-class="o_anim_flip_in_y">Flip-In-Y</we-button>
  80. </we-collapse>
  81. </we-collapse-area>
  82. </we-collapse>
  83. </we-collapse-area>
  84. </div>
  85. <div data-js="o_animate_duration"
  86. t-att-data-selector="o_animate_selector"
  87. data-exclude=".o_not-animable">
  88. <we-collapse-area class="d-none"> <!-- Visible only if an animation is active (js) -->
  89. <we-toggler><i class="fa fa-fw fa-hourglass-half"/> Animation Duration</we-toggler>
  90. <we-collapse class="o_anim_ul_timing">
  91. <span class="timeline duration">
  92. <span>
  93. <span simulate="delay"/>
  94. </span>
  95. <span>
  96. <span simulate="duration"/>
  97. </span>
  98. </span>
  99. <we-button data-select-class="o_anim_dur500">500ms</we-button>
  100. <we-button data-select-class="">1000ms (default)</we-button>
  101. <we-button data-select-class="o_anim_dur1500">1500ms</we-button>
  102. <we-button data-select-class="o_anim_dur2000">2000ms</we-button>
  103. <we-button data-select-class="o_anim_dur2500">2500ms</we-button>
  104. <we-button data-select-class="o_anim_dur3000">3000ms</we-button>
  105. </we-collapse>
  106. </we-collapse-area>
  107. </div>
  108. <div data-js="o_animate_delay"
  109. t-att-data-selector="o_animate_selector"
  110. data-exclude=".o_not-animable">
  111. <we-collapse-area class="d-none"> <!-- Visible only if an animation is active (js) -->
  112. <we-toggler><i class="fa fa-fw fa-clock-o"/> Animation Delay</we-toggler>
  113. <we-collapse class="o_anim_ul_timing">
  114. <span class="timeline delay">
  115. <span>
  116. <span simulate="delay"/>
  117. </span>
  118. <span>
  119. <span simulate="duration"/>
  120. </span>
  121. </span>
  122. <we-button data-select-class="">No delay (default)</we-button>
  123. <we-button data-select-class="o_anim_del500">500ms</we-button>
  124. <we-button data-select-class="o_anim_del1000">1000ms</we-button>
  125. <we-button data-select-class="o_anim_del1500">1500ms</we-button>
  126. <we-button data-select-class="o_anim_del2000">2000ms</we-button>
  127. <we-button data-select-class="o_anim_del2500">2500ms</we-button>
  128. </we-collapse>
  129. </we-collapse-area>
  130. </div>
  131. <div data-js="o_animate_options"
  132. t-att-data-selector="o_animate_selector"
  133. data-exclude=".o_not-animable">
  134. <we-collapse-area class="d-none"> <!-- Visible only if an animation is active (js) -->
  135. <we-toggler><i class="fa fa-fw fa-cogs"/> Animation Options</we-toggler>
  136. <we-collapse class="o_anim_ul_options">
  137. <we-button data-toggle-class="o_animate_both_scroll">Each time it becomes visible</we-button>
  138. </we-collapse>
  139. </we-collapse-area>
  140. </div>
  141. </xpath>
  142. </template>
  143. </odoo>