Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions doc/example_code/gui_exp_animations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:orphan:

.. _gui_exp_animations:

GUI Animations
===============

The following example demonstrates how to make use of the experimental
``UIAnimatedGroup`` and ``animate()`` to build an animated main menu:
widgets popping in, a pulsing and swaying title, buttons that pop and
wiggle on hover, and decorative spinning tiles.

.. image:: images/gui_exp_animations.png
:width: 600px
:align: center
:alt: Screen shot

.. literalinclude:: ../../arcade/examples/gui/exp_animations.py
:caption: exp_animations.py
:linenos:
19 changes: 19 additions & 0 deletions doc/example_code/gui_exp_animations_2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
:orphan:

.. _gui_exp_animations_2:

GUI Animations 2
=================

The following example demonstrates how to make use of the experimental
``UIAnimatedGroup`` and ``animate()`` to lift and enlarge a card while it
is hovered.

.. image:: images/gui_exp_animations_2.png
:width: 600px
:align: center
:alt: Screen shot

.. literalinclude:: ../../arcade/examples/gui/exp_animations_2.py
:caption: exp_animations_2.py
:linenos:
Binary file added doc/example_code/images/gui_animation_2.webm
Binary file not shown.
Binary file added doc/example_code/images/gui_animations.webm
Binary file not shown.
Binary file added doc/example_code/images/gui_exp_animations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/example_code/images/gui_exp_animations_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading