ai / ai/easings.net

Better easeInCirc and easeOutCirc formulas

オープン
#180 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
CSS
スター
8.7k
フォーク
696
PR マージ指標
30日以内にマージされた PR はありません

説明

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));
}
```

![grafik](https://github.com/ai/easings.net/assets/45183108/8675ade5-a383-4aea-8130-e085b2248c4e)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。