diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 37d248d7ca..f76cfe6b3a 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -801,6 +801,19 @@ $utilities: map-merge( values: $zindex-levels, ) // scss-docs-end utils-zindex + // animation-direction + // scss-docs-start animation utilities + "animation-direction": ( + property: animation-direction, + class: animation-direction, + values: ( + normal: normal, + reverse: reverse, + alternate: alternate, + alternate-reverse: alternate-reverse, + ) + ), + // scss-docs-end animation utilities ), $utilities ); diff --git a/scss/helpers/_animations.scss b/scss/helpers/_animations.scss deleted file mode 100644 index cdacad56c8..0000000000 --- a/scss/helpers/_animations.scss +++ /dev/null @@ -1,12 +0,0 @@ -.animation-direction-normal{ - animation-direction: normal; -} -.animation-direction-reverse{ - animation-direction: reverse; -} -.animation-direction-alternate{ - animation-direction: alternate; -} -.animation-direction-alternate-reverse{ - animation-direction: alternate-reverse; -} diff --git a/site/content/docs/5.3/helpers/animations.md b/site/content/docs/5.3/helpers/animations.md index e87610d093..ba68407233 100644 --- a/site/content/docs/5.3/helpers/animations.md +++ b/site/content/docs/5.3/helpers/animations.md @@ -1,36 +1,49 @@ --- layout: docs title: Animations -description: Customize the animation direction of all the different components. +description: Use these helpers for quickly configuring the animation direction of an element. group: helpers aliases: "/docs/5.3/helpers/" --- -Easily customize `animation-direction`s by adding the appropriate class. +## animation-direction-normal -The available classes: +Sets the animation direction to "normal", which plays the animation forwards (default). -```scss -.animation-direction-normal{ - animation-direction: normal; -} -.animation-direction-reverse{ - animation-direction: reverse; -} -.animation-direction-alternate{ - animation-direction: alternate; -} -.animation-direction-alternate-reverse{ - animation-direction: alternate-reverse; -} +```html +