Animations
In terms of basic concepts we're at the end of the road folks. We've learned a lot about what pretty checkbox can do, now it's time to explore the crown jewel of the library: animations.
Animations are broken into two categories:
- Animations that only work with images
- Animations that work without images as well (i.e. universal animations)
Possible values: p-smooth
, p-pulse
, p-tada
, p-jelly
, and p-rotate
.
Universal Animations
To recap, univeral animations are those that work with or without icons, svg, or images. There are two:
p-smooth
p-pulse
Add to the root div and they'll work like a charm!
<div class="pretty p-default p-smooth">
<input type="checkbox" />
<div class="state p-primary">
<label>Smooth</label>
</div>
</div>
<div class="pretty p-default p-smooth">
<input type="checkbox" />
<div class="state p-primary">
<label>Smooth</label>
</div>
</div>
Icon Animations
Icon animations means these animations are compatbile with p-svg
, p-icon
, or p-image
, There are three:
p-tada
p-jelly
p-rotate
<div class="pretty p-icon p-jelly">
<input type="checkbox" />
<div class="state p-success">
<i class="icon mdi mdi-check"></i>
<label>Jelly</label>
</div>
</div>
<div class="pretty p-icon p-tada">
<input type="checkbox" />
<div class="state p-danger">
<i class="icon mdi mdi-bug"></i>
<label>Tada</label>
</div>
</div>
<div class="pretty p-icon p-rotate p-plain">
<input type="checkbox" />
<div class="state p-info-o">
<i class="icon mdi mdi-close"></i>
<label>Rotate</label>
</div>
</div>