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
/// Pulse the border of an element between two colors
23
-
///
24
-
/// ** To help combat your element shifting position slightly when a border is applied on hover,
25
-
/// it is a good idea to add a border to your element before hand and just set color to 'initial'
26
-
/// so that it is transparent, then keep 'addBorder' parameter as false.
27
-
/// </summary>
28
-
/// <param name="element">The element in which this function will be applied</param>
29
-
/// <param name="color1">Color 1 in which to pulse between</param>
30
-
/// <param name="color2">Color 2 in which to pulse between</param>
31
-
/// <param name="original">The original color of the element being changed. Can be obtained and passed via 'visualElement.style.backgroundColor.value'</param>
32
-
/// <param name="color1DurationMs">The amount of time it takes in milliseconds to complete the first color animation</param>
33
-
/// <param name="color2DurationMs">The amount of time it takes in milliseconds to complete the second color animation</param>
34
-
/// <param name="addBorder">Adds a border if the element does not have one already</param>
35
-
/// <param name="borderStartEndWidth">The width in which the borders should be when displaying</param>
36
-
/// <param name="callback">Function that can be called when the animation is completed</param>
37
-
/// <param name="borderSelection">The parameters of the Vector4(1-4) represent which borders should have their colors changed: 1(x) = left, 2(y) = top, 3(z) = right, 4(w) = bottom.
38
-
/// If only the top and bottom borders are desired to pulse, you would pass new Vector4(0, 1, 0, 1)</param>
/// Pulse the border of an element between two colors
23
+
///
24
+
/// ** To help combat your element shifting position slightly when a border is applied on hover,
25
+
/// it is a good idea to add a border to your element before hand and just set color to 'initial'
26
+
/// so that it is transparent, then keep 'addBorder' parameter as false.
27
+
/// </summary>
28
+
/// <example>
29
+
/// <code>
30
+
/// "#2F569C".FromHex(), "#D2A00C".FromHex()
31
+
/// </code>
32
+
/// </example>
33
+
/// <param name="element">The element in which this function will be applied</param>
34
+
/// <param name="color1">Color 1 in which to pulse between</param>
35
+
/// <param name="color2">Color 2 in which to pulse between</param>
36
+
/// <param name="original">The original color of the element being changed. Can be obtained and passed via 'visualElement.style.backgroundColor.value'</param>
37
+
/// <param name="color1DurationMs">The amount of time it takes in milliseconds to complete the first color animation</param>
38
+
/// <param name="color2DurationMs">The amount of time it takes in milliseconds to complete the second color animation</param>
39
+
/// <param name="addBorder">Adds a border if the element does not have one already</param>
40
+
/// <param name="borderStartEndWidth">The width in which the borders should be when displaying</param>
41
+
/// <param name="callback">Function that can be called when the animation is completed</param>
42
+
/// <param name="borderSelection">The parameters of the Vector4(1-4) represent which borders should have their colors changed: 1(x) = left, 2(y) = top, 3(z) = right, 4(w) = bottom.
43
+
/// If only the top and bottom borders are desired to pulse, you would pass new Vector4(0, 1, 0, 1)</param>
44
+
/// <param name="repeatedAnim">Pass in a new ScheduledItem object, which will return the animation in order to control it externally</param>
45
+
/// <param name="delayBetween">Time in which to delay between each pulse set</param>
/// <param name="target">The element in which this function will be applied</param>
119
119
/// <param name="original">The original color of the element being changed. Can be obtained and passed via 'visualElement.style.backgroundColor.value'</param>
120
120
/// <param name="hoverColor">The color to fade to when element is hovered</param>
121
+
/// <param name="animDuration">Transition animation duration when switching between states</param>
121
122
/// <param name="condition">Create a condition to pass to this function. Example: bool Condition(VisualElement sRow) => selectedRow == packageListRow;</param>
122
123
/// <param name="conditionElement">The element in which the optional condition will be evaluated. Ex. in the example of 'bool Condition(VisualElement sRow) => selectedRow == packageListRow;', the conditionalElement would be 'VisualElement selectedRow'</param>
123
124
/// <param name="animate">Whether to animate the transition of the background color</param>
0 commit comments