css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

As of 12/5/2017 this is only present in Firefox Nightly and Chrome Canary 65+

The Web Animations API introduces the concept of two animations modifying the same property and evaluating their composite value. through a new effect property: composite.

So in the case of a transform, if one animation modifies a transform: translateX() and another modifies a transform: scale() the API will be able to produce a result that accounts for both... even if they have different easing, duration, iterations, etc.

Notice as you add animations that the durations are all different and their start times are all different... meaning the browser is combining all the values for you.

You can also view a similar example that does not need composite support where it nests a new DOM element for each animation.

Comments

  1. No comments yet.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...
Loading...