mirror of
https://github.com/odoo/documentation.git
synced 2026-01-04 02:36:32 +07:00
[IMP] howto/website: update animations page
This commit updates current `animations` page, by adding new anchor
links to the sections, updated information and images.
Task-4316611
closes odoo/documentation#12443
X-original-commit: 0ea5823a94
Signed-off-by: Carlos Valverde (cvs) <cvs@odoo.com>
This commit is contained in:
@@ -2,14 +2,20 @@
|
||||
Animations
|
||||
==========
|
||||
|
||||
Eye-catching animations can bring your website to life.
|
||||
Odoo uses eye-catching animations that can bring your website to life. By default, we can use two
|
||||
kinds of animations:
|
||||
|
||||
- Animations on appearance
|
||||
- Animations on scroll
|
||||
|
||||
.. _website_themes/animations/appearance:
|
||||
|
||||
On appearance
|
||||
=============
|
||||
|
||||
In standard, you can add animations to columns when they appear, thanks to the Website Builder. Odoo
|
||||
detects when your element is in the viewport and launches the animation. A large selection of
|
||||
animations is available:
|
||||
In standard, you can add animations to column, text and image elements when they appear, thanks
|
||||
to the Website Builder. Odoo detects when your element is in the viewport and launches the
|
||||
animation. A large selection of animations is available:
|
||||
|
||||
- Fade in
|
||||
- Bounce in
|
||||
@@ -24,20 +30,56 @@ want to use.
|
||||
Add the `o_animate_both_scroll` class to launch the animation every time the column appears on the
|
||||
screen. The animation is only launched once by default.
|
||||
|
||||
You can also define an `animation-duration` and an `animation-delay` directly in the `style`
|
||||
You should also define an `animation-duration` and an `animation-delay` directly in the `style`
|
||||
attribute.
|
||||
|
||||
Additionally, you can add an animation direction. For instance, to animate the element from the
|
||||
bottom of the screen, add a `o_anim_from_bottom` class and set a `--wanim-intensity` in the `style`
|
||||
attribute to control the animation's direction intensity.
|
||||
|
||||
**Use**
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<div class="col-lg-6 o_animate o_anim_fade_in o_animate_both_scroll" style="animation-duration: 2s !important; animation-delay: 1s !important;">
|
||||
<div class="col-lg-6 o_animate o_anim_fade_in o_animate_both_scroll o_anim_from_bottom" style="--wanim-intensity: 100; animation-duration: 2s; animation-delay: 1s;">
|
||||
<h2>A Section Subtitle</h2>
|
||||
<p>Write one or two paragraphs describing your product or services.</p>
|
||||
</div>
|
||||
|
||||
.. image:: animations/animations.png
|
||||
:alt: Animation options
|
||||
.. image:: animations/appearance.png
|
||||
:alt: Animation on appearance options
|
||||
|
||||
.. _website_themes/animations/scroll:
|
||||
|
||||
On scroll
|
||||
=========
|
||||
|
||||
In the same way as we have seen above, you can add animations on scroll to column, text and image
|
||||
elements whenever the viewport scrolls through the animated element.
|
||||
|
||||
We can add 6 animation on scroll effects:
|
||||
|
||||
- Fade
|
||||
- Slide
|
||||
- Bounce
|
||||
- Rotate
|
||||
- Zoom Out
|
||||
- Zoom In
|
||||
|
||||
Additionally, we can also set an `in` or `out` effect, an animation `direction` , the animation
|
||||
`intensity` and a `scroll zone`.
|
||||
|
||||
**Use**
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<div class="col-lg-6 o_animate o_animate_on_scroll o_animate_out o_anim_fade_in o_anim_from_right" data-scroll-zone-start="50" data-scroll-zone-end="100" style="--wanim-intensity: 100;">
|
||||
<h2>A Section Subtitle</h2>
|
||||
<p>Write one or two paragraphs describing your product or services.</p>
|
||||
</div>
|
||||
|
||||
.. image:: animations/scroll.png
|
||||
:alt: Animation on scroll options
|
||||
|
||||
.. seealso::
|
||||
`Website Animate
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
content/developer/howtos/website_themes/animations/scroll.png
Normal file
BIN
content/developer/howtos/website_themes/animations/scroll.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user