Is it possible to perform this CSS
animation effect in a Button
or Panel
- WindowsForms C#?
The question is not duplicated, I want to achieve that animation specifically, in the question that has been placed as a possible duplicate does not realize this animation.
I tried like this, but in this way it only takes the solid color without the animation:
private void button1_MouseDown(object sender, MouseEventArgs e)
{
button1.BackColor = Color.LightGray;
}
private void button1_MouseEnter(object sender, EventArgs e)
{
button1.BackColor = Color.Crimson;
}
private void button1_MouseLeave(object sender, EventArgs e)
{
button1.BackColor = Color.Transparent;
}
private void button1_MouseUp(object sender, MouseEventArgs e)
{
button1.BackColor = Color.Crimson;
}
I have tried placing Gif Images but the gifs do not play when I run the application, the still image without animation is shown.
Is it possible to realize this effect?
Environment: Visual Studio & .NET Netframework 4
Without image advertising, gif created with a software trial version.