weno
weno

Reputation: 856

Material ui: change duration of Skeleton animations

mui's <Skeleton> components use pulse or wavy animations.

Is there a way to speed up this animation a bit, e.g. by changing the duration?

Upvotes: 1

Views: 1797

Answers (1)

Summer
Summer

Reputation: 1291

Yes, fairly easily actually! Assuming you're using the latest version of MUI.

<Skeleton width={400} height={100} sx={{ animationDuration: "0.3s" }} />

Read more about the SX prop here.

Upvotes: 4

Related Questions