Better easeInCirc and easeOutCirc formulas
Open
- Dominant language
- CSS
- Stars
- 8.7k
- Forks
- 696
- PR merge metrics
- No merged PRs in 30d
Description
The formulas used in easeInCirc and easeOutCirc are not actually a circle shape.
They're parabolas.
After goofing around, I've made two formulas that I think would be more accurate.
```javascript
function easeInCirc(x: number): number {
return 1 - Math.cos(Math.asin(x));
}
function easeOutCirc(x: number): number {
return Math.sin(Math.acos(x - 1));
}
```

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.