You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ff-concepts/animations/widget_animations.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,10 @@ import fadeEaseOut from '@site//static/img/animations/animation_gifs/fade-easeou
27
27
Widget animations allow you to add animation effects at the widget level.
28
28
To add an animation to a widget, you'll need to go to the property panel for the widget and select the animations tab.
29
29
30
-
<imgsrc={animationsOverview}alt="Animation tab within the property panel is used to add widget animations. Animation trigger specifies when the animation will be run. Widget animations can be triggered when the page (or widget in the case of a delayed load) loaded, or within an action. Animation effect specifies the type of animation to use.Animation curve specifies the function used to interpolate values over time. It controls the speed and style of the animation. Animation properties specifies the properties that can be configured for all widget animations, like whether or not it should loop. Effect-specific properties are properties to specific to the animation effect selected. For example, Fade animations allow you to control the initial opacity and the final opacity. You can customize these values to get the look and feel you desire." />
<!-- When you create a widget animation, you'll sepcify:
33
36
@@ -53,9 +56,10 @@ In addition, there are animation-specific properties that usually have both a st
53
56
|**Saturate**| Used to enhance visual appeal by making colors more vibrant for focused content or creating a muted effect for background elements. |<imgsrc={saturateGif}class="xsmall-image"alt="Alt text for your GIF" /> |`Strength`: 0 indicates fully desaturated, 100 represents normal saturation and >100 represents the percent saturation |
54
57
|**Tilt**| Creates a transforming effect (3D perspective) on your widget. Typically used to add a subtle interactive element to UI components, like buttons or cards, indicating user interaction or focus. | <imgsrc={tiltGif}class="xsmall-image"alt="Alt text for your GIF" /> |`Tilt`: The angle at which the widget is viewed. |
55
58
|**Flip**| Flip animation rotates an element around its horizontal or vertical axis, creating a mirror effect. It's often used for flipping cards in a UI to reveal hidden information. | <imgsrc={flipGif}class="xsmall-image"alt="Alt text for your GIF" /> |`Flip`: The angle at which the widget is viewed. |
56
-
|**Shimmer**| Creates a "shiny" effect moving across the screen, often used to signify that data or content is in the process of loading or being fetched. | <imgsrc={shimmerGif}class="xsmall-image"alt="Alt text for your GIF" /> |`Color`: The color of the "shiny" line or gradient that sweeps of the widget. A common practice is to use a slightly lighter shade than the content. <br></br> <br></br> `Angle`: Determines the direction of the shimmer effect across the content. 0 degrees for horizontal and 90 for vertical. |
59
+
|**Shimmer**| Creates a "shiny" effect moving across the screen, often used to signify that data or content is in the process of loading or being fetched. <br></br> <br></br> **Note** that this animation doesn't run on the Test mode. | <imgsrc={shimmerGif}class="xsmall-image"alt="Alt text for your GIF" /> |`Color`: The color of the "shiny" line or gradient that sweeps of the widget. A common practice is to use a slightly lighter shade than the content. <br></br> <br></br> `Angle`: Determines the direction of the shimmer effect across the content. 0 degrees for horizontal and 90 for vertical. |
57
60
|**Tint**| Adds a color overlay effect to your content. |<imgsrc={tintGif}class="xsmall-image"alt="Alt text for your GIF" /> |`Color`: Color of the overlay. <br></br> <br></br> `Strength`: Intensity of the tint. |
58
61
62
+
59
63
## Animation curves
60
64
When applying an animation, you'll also be able to specify the curve. An animation curve is essentially a mathematical formula used to interpolate values over time. Changing the animation curve allows you to control the speed and style of the animation.
61
65
@@ -75,7 +79,7 @@ FlutterFlow supports a variety of animation curves:
75
79
|**Linear**| Progresses at a constant speed throughout the animation. It provides a uniform transition from start to end, with no acceleration or deceleration.|
76
80
77
81
78
-
## How to trigger an animation on page load
82
+
## Animation on Page Load
79
83
There are many cases when you might want to trigger an animation when a page or (in the case of a delayed load) widget is loaded onto the screen.
80
84
81
85
Consider an eCommerce use case, where a backend query is used to retrieve a list of trending products. There may be some delay between when the page is first loaded and when the actual results are displayed. To improve the user experience we can add some animations to let users know when content is loading.
@@ -111,7 +115,7 @@ To create an experience like this, you need to add a shimmer animation to a widg
111
115
112
116
<!-- add aracde -->
113
117
114
-
## Triggering an animation as part of an action flow
118
+
## Animation on Action Trigger
115
119
Beyond triggering widget animations on load, you can trigger an animation to occur as part of an action. For example, say you want a like button to be animated when a user clicks it.
0 commit comments