From d795ac2cd729ff17d06fd20797aad8351734ee40 Mon Sep 17 00:00:00 2001 From: Alex Simonides Date: Wed, 6 Nov 2019 14:39:32 -0800 Subject: [PATCH] Update Penner easing functions link robertpenner.com seems to be offline, but I went through an archived version to find a live link of a javascript implementation with his license on it --- site/content/tutorial/09-motion/01-tweened/text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/tutorial/09-motion/01-tweened/text.md b/site/content/tutorial/09-motion/01-tweened/text.md index def011c993..bc3a27a602 100644 --- a/site/content/tutorial/09-motion/01-tweened/text.md +++ b/site/content/tutorial/09-motion/01-tweened/text.md @@ -28,7 +28,7 @@ Clicking the buttons causes the progress bar to animate to its new value. It's a ``` -> The `svelte/easing` module contains the [Penner easing equations](http://robertpenner.com/easing/), or you can supply your own `p => t` function where `p` and `t` are both values between 0 and 1. +> The `svelte/easing` module contains the [Penner easing equations](https://github.com/danro/jquery-easing/blob/master/jquery.easing.js), or you can supply your own `p => t` function where `p` and `t` are both values between 0 and 1. The full set of options available to `tweened`: @@ -37,4 +37,4 @@ The full set of options available to `tweened`: * `easing` — a `p => t` function * `interpolate` — a custom `(from, to) => t => value` function for interpolating between arbitrary values. By default, Svelte will interpolate between numbers, dates, and identically-shaped arrays and objects (as long as they only contain numbers and dates or other valid arrays and objects). If you want to interpolate (for example) colour strings or transformation matrices, supply a custom interpolator -You can also pass these options to `progress.set` and `progress.update` as a second argument, in which case they will override the defaults. The `set` and `update` methods both return a promise that resolves when the tween completes. \ No newline at end of file +You can also pass these options to `progress.set` and `progress.update` as a second argument, in which case they will override the defaults. The `set` and `update` methods both return a promise that resolves when the tween completes.