Unverified Commit 801a2646 authored by Greg Price's avatar Greg Price Committed by GitHub

Document where `Curves` curves correspond to CSS easing functions (#137318)

parent 18812ffe
......@@ -1411,11 +1411,15 @@ abstract final class Curves {
/// A cubic animation curve that speeds up quickly and ends slowly.
///
/// This is the same as the CSS easing function `ease`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease.mp4}
static const Cubic ease = Cubic(0.25, 0.1, 0.25, 1.0);
/// A cubic animation curve that starts slowly and ends quickly.
///
/// This is the same as the CSS easing function `ease-in`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in.mp4}
static const Cubic easeIn = Cubic(0.42, 0.0, 1.0, 1.0);
......@@ -1517,6 +1521,8 @@ abstract final class Curves {
/// A cubic animation curve that starts quickly and ends slowly.
///
/// This is the same as the CSS easing function `ease-out`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_out.mp4}
static const Cubic easeOut = Cubic(0.0, 0.0, 0.58, 1.0);
......@@ -1618,6 +1624,8 @@ abstract final class Curves {
/// A cubic animation curve that starts slowly, speeds up, and then ends
/// slowly.
///
/// This is the same as the CSS easing function `ease-in-out`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in_out.mp4}
static const Cubic easeInOut = Cubic(0.42, 0.0, 0.58, 1.0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment