From 59944ce52ac3b8ea9e8e6a287014e7b80423b083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Tue, 20 Mar 2018 14:40:31 +0100 Subject: [PATCH] Update the Web Animations spec URLs --- History.md | 2 +- README.md | 2 +- docs/examples.md | 4 ++-- externs/web-animations.js | 2 +- src/normalize-keyframes.js | 2 +- src/timing-utilities.js | 18 +++++++++--------- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/History.md b/History.md index 6deef415..4247c526 100644 --- a/History.md +++ b/History.md @@ -91,7 +91,7 @@ * Added arbitrary easing capitalisation. - * Added "id" effect option. (http://w3c.github.io/web-animations/#dom-keyframeanimationoptions-id) + * Added "id" effect option. (https://drafts.csswg.org/web-animations/#dom-keyframeanimationoptions-id) * Added "oncancel" event handler. diff --git a/README.md b/README.md index e3410b61..06a71f1a 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Documentation * [Examples of usage](/docs/examples.md) * [Live demos](https://web-animations.github.io/web-animations-demos) * [MDN reference](https://developer.mozilla.org/en-US/docs/Web/API/Element/animate) -* [W3C specification](http://w3c.github.io/web-animations/) +* [W3C specification](https://drafts.csswg.org/web-animations/) We love feedback! ----------------- diff --git a/docs/examples.md b/docs/examples.md index 7957a29c..d61c16a7 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -69,7 +69,7 @@ element.animate([ Timing parameters ----------------- - Web Animations inherits many of its timing parameters from CSS Animations. -- See the [specification](http://w3c.github.io/web-animations/#animationeffecttimingreadonly) for details on each parameter. +- See the [specification](https://drafts.csswg.org/web-animations/#animationeffecttimingreadonly) for details on each parameter. [**Live demo**](http://jsbin.com/dabehipiyo/edit?js,output) ```javascript @@ -106,7 +106,7 @@ element.animate({ Playback controls ----------------- - element.animate() returns an Animation object with basic playback controls. -- See the [specification](http://w3c.github.io/web-animations/#the-animation-interface) for details on each method. +- See the [specification](https://drafts.csswg.org/web-animations/#the-animation-interface) for details on each method. [**Live demo**](http://jsbin.com/kutaqoxejo/edit?js,output) ```javascript diff --git a/externs/web-animations.js b/externs/web-animations.js index 7059b400..b3b604ba 100644 --- a/externs/web-animations.js +++ b/externs/web-animations.js @@ -18,7 +18,7 @@ /** * @fileoverview Basic externs for the Web Animations API. This is not * nessecarily exhaustive. For more information, see the spec- - * https://w3c.github.io/web-animations + * https://drafts.csswg.org/web-animations/ * @externs */ diff --git a/src/normalize-keyframes.js b/src/normalize-keyframes.js index 1fd02548..1337e47a 100644 --- a/src/normalize-keyframes.js +++ b/src/normalize-keyframes.js @@ -151,7 +151,7 @@ } function isNotAnimatable(property) { - // https://w3c.github.io/web-animations/#concept-not-animatable + // https://drafts.csswg.org/web-animations/#concept-not-animatable return property === 'display' || property.lastIndexOf('animation', 0) === 0 || property.lastIndexOf('transition', 0) === 0; } diff --git a/src/timing-utilities.js b/src/timing-utilities.js index 2f16f3b1..df8b8877 100644 --- a/src/timing-utilities.js +++ b/src/timing-utilities.js @@ -278,7 +278,7 @@ } function repeatedDuration(timing) { - // https://w3c.github.io/web-animations/#calculating-the-active-duration + // https://drafts.csswg.org/web-animations/#calculating-the-active-duration if (timing.duration === 0 || timing.iterations === 0) { return 0; } @@ -291,7 +291,7 @@ var PhaseActive = 3; function calculatePhase(activeDuration, localTime, timing) { - // https://w3c.github.io/web-animations/#animation-effect-phases-and-states + // https://drafts.csswg.org/web-animations/#animation-effect-phases-and-states if (localTime == null) { return PhaseNone; } @@ -308,7 +308,7 @@ } function calculateActiveTime(activeDuration, fillMode, localTime, phase, delay) { - // https://w3c.github.io/web-animations/#calculating-the-active-time + // https://drafts.csswg.org/web-animations/#calculating-the-active-time switch (phase) { case PhaseBefore: if (fillMode == 'backwards' || fillMode == 'both') @@ -326,7 +326,7 @@ } function calculateOverallProgress(iterationDuration, phase, iterations, activeTime, iterationStart) { - // https://w3c.github.io/web-animations/#calculating-the-overall-progress + // https://drafts.csswg.org/web-animations/#calculating-the-overall-progress var overallProgress = iterationStart; if (iterationDuration === 0) { if (phase !== PhaseBefore) { @@ -339,7 +339,7 @@ } function calculateSimpleIterationProgress(overallProgress, iterationStart, phase, iterations, activeTime, iterationDuration) { - // https://w3c.github.io/web-animations/#calculating-the-simple-iteration-progress + // https://drafts.csswg.org/web-animations/#calculating-the-simple-iteration-progress var simpleIterationProgress = (overallProgress === Infinity) ? iterationStart % 1 : overallProgress % 1; if (simpleIterationProgress === 0 && phase === PhaseAfter && iterations !== 0 && @@ -350,7 +350,7 @@ } function calculateCurrentIteration(phase, iterations, simpleIterationProgress, overallProgress) { - // https://w3c.github.io/web-animations/#calculating-the-current-iteration + // https://drafts.csswg.org/web-animations/#calculating-the-current-iteration if (phase === PhaseAfter && iterations === Infinity) { return Infinity; } @@ -361,7 +361,7 @@ } function calculateDirectedProgress(playbackDirection, currentIteration, simpleIterationProgress) { - // https://w3c.github.io/web-animations/#calculating-the-directed-progress + // https://drafts.csswg.org/web-animations/#calculating-the-directed-progress var currentDirection = playbackDirection; if (playbackDirection !== 'normal' && playbackDirection !== 'reverse') { var d = currentIteration; @@ -390,8 +390,8 @@ var currentIteration = calculateCurrentIteration(phase, timing.iterations, simpleIterationProgress, overallProgress); var directedProgress = calculateDirectedProgress(timing.direction, currentIteration, simpleIterationProgress); - // https://w3c.github.io/web-animations/#calculating-the-transformed-progress - // https://w3c.github.io/web-animations/#calculating-the-iteration-progress + // https://drafts.csswg.org/web-animations/#calculating-the-transformed-progress + // https://drafts.csswg.org/web-animations/#calculating-the-iteration-progress return timing._easingFunction(directedProgress); }