-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-easing-2Current WorkCurrent Work
Description
https://drafts.csswg.org/css-easing-2/#create-a-linear-easing-function
- For runs of
itemsinfunction’s points that have a nullinput, [...]
Can you please add an example when this happens?
I cannot figure it out.
function createLinearEasingFunction(list) {
const points = []
const fn = { points }
let largestInput = -Infinity
list.forEach((stop, index) => {
const [progress, time] = stop
const point = { input: null, output: progress }
points.push(point)
if (isOmitted(time)) {
if (index === 0) {
point.input = 0
largestInput = 0
} else {
point.input = Math.max(1, largestInput)
}
return
}
const [start, end] = time
largestInput = point.input = Math.max(start / 100, largestInput)
if (end) {
const input = largestInput = Math.max(end / 100, largestInput)
const extraPoint = { input, output: progress }
points.push(extraPoint)
}
})
}Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-easing-2Current WorkCurrent Work