---
title: "Comment by Spencer Flagg on \"CSS makes the world go round 🌎\" | Hashnode"
description: "You can make the animation sliiiightly smoother, by adding &quot;in between&quot; frames by creating a crossfade layer that displays in bewteen the current fram"
url: "https://hashnode.com/posts/css-makes-the-world-go-round/5f547dd5d6e3120a42378228/comment/5f577e77a5765727f4c322a5"
---

[Discussion](https://hashnode.com/posts/css-makes-the-world-go-round/5f547dd5d6e3120a42378228)

Comment [CSS makes the world go round 🌎](https://hashnode.com/posts/css-makes-the-world-go-round/5f547dd5d6e3120a42378228)

[Spencer Flagg](https://hashnode.com/@Flagg)

[Sep 8, 2020](https://hashnode.com/posts/css-makes-the-world-go-round/5f547dd5d6e3120a42378228/comment/5f577e77a5765727f4c322a5)

You can make the animation sliiiightly smoother, by adding "in between" frames by creating a crossfade layer that displays in bewteen the current frames.

Say, add a ::before pseudo element to .world, layer it directly on top of the ::after, and give it the following keyframes:

```
@keyframes world-tween{
    16.5% {
        content: '🌍';
        opacity: .5;
    } 
    33% {
        opacity: 0;
    }
    50% {
        content: '🌏';
        opacity: .5;
    }
    66% {
        opacity: 0;
    }
    83% {
        content: '🌎';
        opacity: .5;
    }
}
```

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Sep 8, 2020](https://hashnode.com/posts/css-makes-the-world-go-round/5f547dd5d6e3120a42378228/comment/5f577e77a5765727f4c322a5#reply-5f577ff1a5765727f4c322c3)

Wow Spencer, golden tip buddy!

That looks way better, going to update the code man!
