2

CSS timing functions always seem to be between 2 points:

Even with custom bezier curves, your curve can only go from one point to another.

Is it possible to make a custom CSS timing function, where you can make a curve that consists of multiple points?

1
  • I have been using this tool for years: cubic-bezier.com Commented Apr 10, 2024 at 12:10

1 Answer 1

1

We have the following timing functions.

transition-timing-function: ease;
transition-timing-function: linear;
transition-timing-function: step-end;
transition-timing-function: steps(4, end);

I hope in the future we get more. For now, we have to fiddle with the percentages of the time to create the custom timing like:

@keyframes wordsAnimationZoomIn{
    0%{
        opacity: 0;
    }
    25%{
        opacity: 0.5;
    }
    75%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
    }
}

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.