From b08a56da4917af859ac894ae86955cb1ec26f9bc Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sun, 5 Aug 2018 23:59:28 +0200 Subject: [PATCH 1/2] docs: move Motion UI Toggler example to its own section --- docs/pages/motion-ui.md | 59 ++++++++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/docs/pages/motion-ui.md b/docs/pages/motion-ui.md index 2b37b9aadc..198a8302ea 100644 --- a/docs/pages/motion-ui.md +++ b/docs/pages/motion-ui.md @@ -6,29 +6,8 @@ library: docs: https://github.com/zurb/motion-ui/tree/master/docs --- -Motion UI is a standalone library that powers the transition effects used in a number of Foundation components, including [Toggler](toggler.html), [Reveal](reveal.html), and [Orbit](orbit.html). The transitions are powered by special transition classes that the Motion UI Sass creates. For example, here are two instances of Toggler—one using fade classes (`.fade-in` and `.fade-out`), and one using slide classes (`.slide-in-down` and `.slide-out-up`). +Motion UI is a standalone library that powers the transition effects used in a number of Foundation components, including [Toggler](toggler.html), [Reveal](reveal.html), and [Orbit](orbit.html). -```html -
-

This panel fades.

-
- -
-

This panel slides.

-
-``` - - -
-
-
-

This panel fades.

-
-
-
-
-

This panel slides.

-
@@ -78,6 +57,42 @@ Or, another way to start using Motion UI is through a CDN. --- +## Usage in Components + +Various Foundation components provide options for to use Motion UI animations when changing state. Here are the options for each plugin that support Motion UI: +- [Orbit](orbit.html): `data-animate` +- [Reveal](reveal.html): `data-animation-in`, `data-animation-out` +- [Toggler](toggler.html): `data-animate` +- [Responsive Toggler](responsive-navigation.html): `data-animate` + +For example, here are two instances of Toggler—one using fade classes (`.fade-in` and `.fade-out`), and one using slide classes (`.slide-in-down` and `.slide-out-up`). See all availaible classes in [build-in transitions](#built-in-transitions) below. + +```html +
+

This panel fades.

+
+ +
+

This panel slides.

+
+``` + + +
+
+
+

This panel fades.

+
+
+
+
+

This panel slides.

+
+
+
+ +--- + ## Built-in Transitions Motion UI includes more than two dozen built-in transition classes. They can be enabled by adding this line to your Sass file, after you've imported the library: From bd4bf11d23e8b815cb9690f87bbb8aafe58d2580 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sun, 5 Aug 2018 23:59:44 +0200 Subject: [PATCH 2/2] docs: add a simpler example in Motion UI docs header --- docs/pages/motion-ui.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/pages/motion-ui.md b/docs/pages/motion-ui.md index 198a8302ea..ed99f6573d 100644 --- a/docs/pages/motion-ui.md +++ b/docs/pages/motion-ui.md @@ -8,9 +8,14 @@ library: Motion UI is a standalone library that powers the transition effects used in a number of Foundation components, including [Toggler](toggler.html), [Reveal](reveal.html), and [Orbit](orbit.html). +
+ +
+ --- ## Installing