diff --git a/resources/css/showcase.css b/resources/css/showcase.css index 7b2a9ca5..d7f0bd47 100644 --- a/resources/css/showcase.css +++ b/resources/css/showcase.css @@ -240,4 +240,25 @@ [data-md-showcase-elevation-tile][data-md-elevation='5'] { box-shadow: var(--md-sys-elevation-5); } + + /* Motion: one spring's row (its name, and a track the dot travels), and the dot itself — its + colour is decoration, its size is the only thing this file fixes; the transition is the + spring under test, so it stays the view's own inline style. */ + [data-md-showcase-motion-row] { + display: grid; + grid-template-columns: 144px 1fr; + align-items: center; + gap: var(--md-sys-measurement-space200); + } + + [data-md-showcase-motion-track] { + height: var(--md-sys-measurement-space400); + } + + [data-md-showcase-motion-dot] { + width: var(--md-sys-measurement-space400); + height: var(--md-sys-measurement-space400); + border-radius: var(--md-sys-shape-corner-full); + background-color: var(--md-sys-color-tertiary); + } } diff --git a/resources/views/showcase/sections/motion.blade.php b/resources/views/showcase/sections/motion.blade.php index aafc9244..04435f1f 100644 --- a/resources/views/showcase/sections/motion.blade.php +++ b/resources/views/showcase/sections/motion.blade.php @@ -1,39 +1,39 @@ -
-

Motion

+ +

Motion

-

- M3 Expressive's springs as ease-spatial-* and ease-effects-*, each with its - --md-sys-motion-*-duration. Reduced motion makes all of them instant. +

+ M3 Expressive's springs as --md-sys-motion-spatial-* and --md-sys-motion-effects-*, each with its + own duration. Reduced motion makes all of them instant.

-

+

Position, size and shape move on the spatial springs, which overshoot — fast for small elements, slow for large ones. Colour and opacity move on the effects springs, which never overshoot. Always pair an easing with its duration; everything that moves goes through these tokens, so reduced motion makes it instant. The Standard scheme (motion.scheme) swaps the spatial springs for a restrained set.

- + -
- @foreach (['spatial-fast', 'spatial-default', 'spatial-slow', 'effects-fast', 'effects-default', 'effects-slow'] as $spring) -
- ease-{{ $spring }} -
-
+ + + @foreach (['spatial-fast', 'spatial-default', 'spatial-slow', 'effects-fast', 'effects-default', 'effects-slow'] as $spring) +
+ --md-sys-motion-{{ $spring }} +
+
+
-
- @endforeach -
+ @endforeach + + -
-

1,204 files

- - x-figure -
-
+ + +

1,204 files

+ + x-figure +
+
+