How can I create a bounce animation in .NET MAUI?

Platform: .NET MAUI| Category: General

You can create a bounce animation by changing the scale of an element. Here’s an example:

C#

async void OnAnimateClicked(object sender, EventArgs e)
{
	//whenever the button is clicked
	await BounceAnimation(animatedLabel);
}
async Task BounceAnimation(View view)
{
	await view.ScaleTo(1.2, 250);
	await view.ScaleTo(1, 250);
} 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.