Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊
I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Markdown supported · ⌘↵ to post
Spencer Flagg
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; } }