0

Where is technical difference between CSS Transition and CSS Animation?

Is animation (with keyframes) consists of several transitions?

Is keyframes support the only difference?

Are both of them are hardware accelerated?

1

2 Answers 2

1

Are both of them are hardware accelerated?

-- Yes, both are hardware accelerated.

for other question answer you have to refer this site

https://cssanimation.rocks/transition-vs-animation/

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

2 Comments

you link basically says "animation is more powerful than transition because of keyframes" my question was: "are there any other differences except of keyframes"
No, both are power full according browser and hardware accelerated, but in general i found some lag if we make complex animation using highly key frames...
1

Transition:

A transition is performed between two distinct states: A start state and an end state. Transitions also need a triggering event such as hover, focus and etc. Transitions are mostly used for simple animations.

Animation:

Unlike transitions, animations can be used for endless animations and have more than two states (@keyframes). They also have no boundaries.

Both use CPU acceleration for smoother effects.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.