Skip to content

Commit c5821b1

Browse files
authored
Change hint animation (#2750)
1 parent 476b651 commit c5821b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.SmartHint.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<converters:BooleanToVisibilityConverter x:Key="InverseBoolToVisConverter" TrueValue="Collapsed" FalseValue="Visible"/>
99
<converters:FloatingHintTransformConverter x:Key="FloatingHintTransformConverter" />
1010
<system:Double x:Key="NoContentFloatingScale">1.0</system:Double>
11-
<SineEase x:Key="AnimationEasingFunction" EasingMode="EaseOut"/>
11+
<CubicEase x:Key="AnimationEasingFunction" EasingMode="EaseInOut"/>
1212

1313
<Style TargetType="{x:Type wpf:SmartHint}">
1414
<Setter Property="HorizontalAlignment" Value="Left"/>
@@ -35,7 +35,7 @@
3535
<VisualTransition From="*" To="HintRestingPosition">
3636
<Storyboard>
3737
<DoubleAnimation Storyboard.TargetName="SimpleHintTextBlock" Storyboard.TargetProperty="Opacity"
38-
Duration="0:0:0.3"
38+
Duration="0:0:0.15"
3939
EasingFunction="{StaticResource AnimationEasingFunction}"/>
4040
</Storyboard>
4141
</VisualTransition>
@@ -81,20 +81,20 @@
8181
<VisualTransition From="*" To="HintFloatingPosition">
8282
<Storyboard>
8383
<DoubleAnimation Storyboard.TargetName="FloatingHintTextBlock" Storyboard.TargetProperty="Opacity"
84-
Duration="0:0:0.3" To="{TemplateBinding HintOpacity}"
84+
Duration="0:0:0.15" To="{TemplateBinding HintOpacity}"
8585
EasingFunction="{StaticResource AnimationEasingFunction}"/>
8686
<DoubleAnimation Storyboard.TargetName="ScaleHost" Storyboard.TargetProperty="Scale"
87-
Duration="0:0:0.3" To="1"
87+
Duration="0:0:0.15" To="1"
8888
EasingFunction="{StaticResource AnimationEasingFunction}"/>
8989
</Storyboard>
9090
</VisualTransition>
9191
<VisualTransition From="*" To="HintRestingPosition">
9292
<Storyboard>
9393
<DoubleAnimation Storyboard.TargetName="FloatingHintTextBlock" Storyboard.TargetProperty="Opacity"
94-
Duration="0:0:0.3"
94+
Duration="0:0:0.15"
9595
EasingFunction="{StaticResource AnimationEasingFunction}"/>
9696
<DoubleAnimation Storyboard.TargetName="ScaleHost" Storyboard.TargetProperty="Scale"
97-
Duration="0:0:0.3"
97+
Duration="0:0:0.15"
9898
EasingFunction="{StaticResource AnimationEasingFunction}"/>
9999
</Storyboard>
100100
</VisualTransition>

0 commit comments

Comments
 (0)