Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 3f9af6b

Browse files
foolipsamthor
authored andcommitted
Update the Web Animations spec URLs (web-animations#191)
1 parent c69e141 commit 3f9af6b

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

History.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
* Added arbitrary easing capitalisation.
9393

94-
* Added "id" effect option. (http://w3c.github.io/web-animations/#dom-keyframeanimationoptions-id)
94+
* Added "id" effect option. (https://drafts.csswg.org/web-animations/#dom-keyframeanimationoptions-id)
9595

9696
* Added "oncancel" event handler.
9797

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Documentation
4848
* [Examples of usage](/docs/examples.md)
4949
* [Live demos](https://web-animations.github.io/web-animations-demos)
5050
* [MDN reference](https://developer.mozilla.org/en-US/docs/Web/API/Element/animate)
51-
* [W3C specification](http://w3c.github.io/web-animations/)
51+
* [W3C specification](https://drafts.csswg.org/web-animations/)
5252

5353
We love feedback!
5454
-----------------

docs/examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ element.animate([
6969
Timing parameters
7070
-----------------
7171
- Web Animations inherits many of its timing parameters from CSS Animations.
72-
- See the [specification](http://w3c.github.io/web-animations/#animationeffecttimingreadonly) for details on each parameter.
72+
- See the [specification](https://drafts.csswg.org/web-animations/#animationeffecttimingreadonly) for details on each parameter.
7373

7474
[**Live demo**](http://jsbin.com/dabehipiyo/edit?js,output)
7575
```javascript
@@ -106,7 +106,7 @@ element.animate({
106106
Playback controls
107107
-----------------
108108
- element.animate() returns an Animation object with basic playback controls.
109-
- See the [specification](http://w3c.github.io/web-animations/#the-animation-interface) for details on each method.
109+
- See the [specification](https://drafts.csswg.org/web-animations/#the-animation-interface) for details on each method.
110110

111111
[**Live demo**](http://jsbin.com/kutaqoxejo/edit?js,output)
112112
```javascript

externs/web-animations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @fileoverview Basic externs for the Web Animations API. This is not
2020
* nessecarily exhaustive. For more information, see the spec-
21-
* https://w3c.github.io/web-animations
21+
* https://drafts.csswg.org/web-animations/
2222
* @externs
2323
*/
2424

src/normalize-keyframes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
}
152152

153153
function isNotAnimatable(property) {
154-
// https://w3c.github.io/web-animations/#concept-not-animatable
154+
// https://drafts.csswg.org/web-animations/#concept-not-animatable
155155
return property === 'display' || property.lastIndexOf('animation', 0) === 0 || property.lastIndexOf('transition', 0) === 0;
156156
}
157157

src/timing-utilities.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
}
279279

280280
function repeatedDuration(timing) {
281-
// https://w3c.github.io/web-animations/#calculating-the-active-duration
281+
// https://drafts.csswg.org/web-animations/#calculating-the-active-duration
282282
if (timing.duration === 0 || timing.iterations === 0) {
283283
return 0;
284284
}
@@ -291,7 +291,7 @@
291291
var PhaseActive = 3;
292292

293293
function calculatePhase(activeDuration, localTime, timing) {
294-
// https://w3c.github.io/web-animations/#animation-effect-phases-and-states
294+
// https://drafts.csswg.org/web-animations/#animation-effect-phases-and-states
295295
if (localTime == null) {
296296
return PhaseNone;
297297
}
@@ -308,7 +308,7 @@
308308
}
309309

310310
function calculateActiveTime(activeDuration, fillMode, localTime, phase, delay) {
311-
// https://w3c.github.io/web-animations/#calculating-the-active-time
311+
// https://drafts.csswg.org/web-animations/#calculating-the-active-time
312312
switch (phase) {
313313
case PhaseBefore:
314314
if (fillMode == 'backwards' || fillMode == 'both')
@@ -326,7 +326,7 @@
326326
}
327327

328328
function calculateOverallProgress(iterationDuration, phase, iterations, activeTime, iterationStart) {
329-
// https://w3c.github.io/web-animations/#calculating-the-overall-progress
329+
// https://drafts.csswg.org/web-animations/#calculating-the-overall-progress
330330
var overallProgress = iterationStart;
331331
if (iterationDuration === 0) {
332332
if (phase !== PhaseBefore) {
@@ -339,7 +339,7 @@
339339
}
340340

341341
function calculateSimpleIterationProgress(overallProgress, iterationStart, phase, iterations, activeTime, iterationDuration) {
342-
// https://w3c.github.io/web-animations/#calculating-the-simple-iteration-progress
342+
// https://drafts.csswg.org/web-animations/#calculating-the-simple-iteration-progress
343343

344344
var simpleIterationProgress = (overallProgress === Infinity) ? iterationStart % 1 : overallProgress % 1;
345345
if (simpleIterationProgress === 0 && phase === PhaseAfter && iterations !== 0 &&
@@ -350,7 +350,7 @@
350350
}
351351

352352
function calculateCurrentIteration(phase, iterations, simpleIterationProgress, overallProgress) {
353-
// https://w3c.github.io/web-animations/#calculating-the-current-iteration
353+
// https://drafts.csswg.org/web-animations/#calculating-the-current-iteration
354354
if (phase === PhaseAfter && iterations === Infinity) {
355355
return Infinity;
356356
}
@@ -361,7 +361,7 @@
361361
}
362362

363363
function calculateDirectedProgress(playbackDirection, currentIteration, simpleIterationProgress) {
364-
// https://w3c.github.io/web-animations/#calculating-the-directed-progress
364+
// https://drafts.csswg.org/web-animations/#calculating-the-directed-progress
365365
var currentDirection = playbackDirection;
366366
if (playbackDirection !== 'normal' && playbackDirection !== 'reverse') {
367367
var d = currentIteration;
@@ -390,8 +390,8 @@
390390
var currentIteration = calculateCurrentIteration(phase, timing.iterations, simpleIterationProgress, overallProgress);
391391
var directedProgress = calculateDirectedProgress(timing.direction, currentIteration, simpleIterationProgress);
392392

393-
// https://w3c.github.io/web-animations/#calculating-the-transformed-progress
394-
// https://w3c.github.io/web-animations/#calculating-the-iteration-progress
393+
// https://drafts.csswg.org/web-animations/#calculating-the-transformed-progress
394+
// https://drafts.csswg.org/web-animations/#calculating-the-iteration-progress
395395
return timing._easingFunction(directedProgress);
396396
}
397397

0 commit comments

Comments
 (0)