#Animations
Animations are an essential part crafting beautiful websites that aren't just stunning, but are also alive. Cirrus comes bundled with a couple of animations to help you get started.
Loading Spinner
The loading spinner serves as an elegant indicator for progress in webpages. Just add the animated loading
selectors to the element and Cirrus will handle the rest. By default, the spinner will be horizontally centered and it will override any text. To hide the text, just add the hide-text
class. Below are some modifiers of the loading spinner.
To make the loading
spinner align either left or right, add the loading-left
or loading-right
classes respectively.
loading-left
loading-right
Loading Button
These buttons are designed to tell users that a function is in progress. This is simply created by adding the animated loading
classes to the button and it will automatically
<div class="col">
<button class="animated loading u-center hide-text">1</button>
</div>
<div class="col">
<button class="animated loading u-center loading-left btn-primary">Loading</button>
</div>
<div class="col">
<button class="animated loading u-center loading-white hide-text" id="btn3">3</button>
</div>
<div class="col">
<button class="animated loading u-center loading-right loading-white white" id="btn4">Loading</button>
</div>
<div class="col">
<button class="animated loading u-center hide-text" id="btn5">5</button>
</div>