Quantcast
Channel: Pens from Dan Wilson
Viewing all articles
Browse latest Browse all 599

Add more opacity animations

$
0
0

See the Code - See it Full Page - See Details

_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.

This Pen uses: HTML, CSS, JavaScript, and


Viewing all articles
Browse latest Browse all 599

Trending Articles