© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. LibbyPractical Sveltehttps://doi.org/10.1007/978-1-4842-7374-6_11

11. Animating Svelte

Alex Libby1  
(1)
BELPER, UK
 

Until now, we’ve covered the core elements of Svelte as part of building our site – it’s time to add a little extra sparkle! We could do this in one of several ways, but a great example is an animation. Fortunately, Svelte makes it easy to add any effect we desire; the trick is to make sure we don’t overdo the effects.

In this chapter, we’ll examine how Svelte supports animating, transitioning, and tweening, plus add in some custom effects to our store front-end project. We’ll start first, though, with a question: what could (or should) we add ...

Get Practical Svelte: Create Performant Applications with the Svelte Component Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.