Hi there!

Good Vibes Only is owned by me, Jessica, and I work as a freelance front-end developer. I write about things I’ve experimented with and thoughts I like to share, focusing on creativity and CSS.

I have a love for CSS because it’s what makes the web look interesting and fun!

Image of logo circles

Quick and trix

Latest beat

Animations on top of each other

Okay, today I’ll give you a teaser with a promise that I’ll dive deeper into this topic later with a full Vibe post.

I recently discovered a new (to me) friend in the animation family called animation-composition. This one’s nice because it lets you merge or layer animations together. Imagine you have a component with two or more animations happening at the same time. With animation-composition, you can control how those animations interact.

There are three different properties, add, replace, and accumulate, that you can use separately or combine if you’re working with multiple animations. Replace overrides the underlying value, this is the default. Add builds on top of the existing value and accumulate combined animations together. You apply animation-composition to the same element that has the animation.

.item {
  transform: translateX(50px);
  animation: slideRight 5s infinite;
  animation-composition: add;
}

@keyframes slideRight {
  70%,
  100% {
    transform: translateX(200px);
  }
}

In this case, the animation will add to the existing transform, so it first slides 50px, then an additional 200px.

Smart, right!?

More beats

Things I have written

Newest vibes

How does content fit?

Okay, do you know about fit-content? It’s the sibling of min-content and max-content. It can be a bit tricky to wrap your head around at first, but let’s break it down.

Read vibe

Happy 4 year anniversity to me

Today, I'm celebrating a birthday girl, and not just any birthday girl. My company, Good Vibes Only, is now 4 years old! It somehow feels like I just started, yet so much has happened.

Read vibe
More vibes

Top of mind

Inspiring me right now

A friend of mine showed me a quote that I really liked the other week.
Good vibes, great minds!