Skip to content

Commit 6e5ea94

Browse files
ChellyAhmedXhmikosR
authored andcommitted
Add animations to docs
1 parent 53890f5 commit 6e5ea94

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: docs
3+
title: Animations
4+
description: Customize the animation direction of all the different components.
5+
group: helpers
6+
aliases: "/docs/5.3/helpers/"
7+
---
8+
9+
Easily customize `animation-direction`s by adding the appropriate class.
10+
11+
The available classes:
12+
13+
```scss
14+
.animation-direction-normal{
15+
animation-direction: normal;
16+
}
17+
.animation-direction-reverse{
18+
animation-direction: reverse;
19+
}
20+
.animation-direction-alternate{
21+
animation-direction: alternate;
22+
}
23+
.animation-direction-alternate-reverse{
24+
animation-direction: alternate-reverse;
25+
}
26+
```
27+
28+
29+
30+
The following example shows how the class `animation-direction-reverse` was used to reverse the animation direction of a spinner-border.
31+
32+
{{< example >}}
33+
<div class="spinner-border text-primary animation-direction-reverse" role="status">
34+
<span class="visually-hidden">Loading...</span>
35+
</div>
36+
{{< /example >}}

site/data/sidebar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
icon: magic
102102
icon_color: orange
103103
pages:
104+
- title: Animations
104105
- title: Clearfix
105106
- title: Color & background
106107
- title: Colored links

0 commit comments

Comments
 (0)