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: components/animationcontainer/overview.md
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ position: 0
10
10
11
11
# Animation Container
12
12
13
-
The UI for Blazor suite provides the Animation Container component that you can use to create messages and popups such as notifications or expandable containers. It lets you define its animation, size and position, and arbitrary content.
13
+
The UI for Blazor suite provides the Animation Container component that you can use to create messages and popups such as [notifications](https://demos.telerik.com/blazor-ui/animationcontainer/notification) or expandable containers, even [tooltips](https://demos.telerik.com/blazor-ui/animationcontainer/tooltip). It lets you define its animation, size and position, and arbitrary content.
14
14
15
15
To use the animation container, add the `TelerikAnimationContainer` tag.
16
16
17
17
>caption How to use the Animation Container
18
18
19
19
````CSHTML
20
-
Click the button to toggle the visibility of the customized popup
20
+
@* Click the button to toggle the visibility of the customized popup *@
My content goes here. The "k-popup" class adds some background and borders which you can define through your own styles instead.
@@ -35,6 +35,12 @@ Click the button to toggle the visibility of the customized popup
35
35
}
36
36
````
37
37
38
+
>caption The result from the code snippet above
39
+
40
+

41
+
42
+
>note The component renderes in its place of declaration and has `position: absolute`. Parent elements in the DOM with special positioning can affect its position and the calculation of the `Top` and `Left` offsets.
43
+
38
44
The animation container exposes the following properties and methods:
39
45
40
46
*`Show()`, `Hide()` and `Toggle()`; `ShowAsync()`, `HideAsync()` and `ToggleAsync()` - to control whether the container is shown.
@@ -53,7 +59,7 @@ The animation container exposes the following properties and methods:
53
59
* Fade,
54
60
* ZoomIn,
55
61
* ZoomOut
56
-
*`ShowDelay` and `HideDelay` - to set how much time will pass between toggling the `Visible` property and the actual change of the container state. When the `Visible` property is set to `true`, the `ShowDelay` timer counts and then the container shows. When `Visible` is set to `false`, the `HideDelay` timer starts and then the container hides. Both values are in milliseconds and default to `20`.
62
+
*`ShowDelay` and `HideDelay` - defines the delay between showing/hiding the component and the respective animation start. Both values are in milliseconds and default to `20`.
57
63
*`Class` - a CSS class rendered on the container DOM element.
0 commit comments