Skeleton
Hold the place of content that's still loading with a muted, pulsing block shaped like it.
Installation
Usage
- The skeleton has no size of its own. Give it a width and height with classes.
- It's
rounded-mdby default. Addrounded-fullfor a circle. - It pulses for as long as it's on screen, and keeps pulsing while your app is busy: the platform runs the pulse, Core Animation on iOS and Android's animators. So
animate()on the skeleton itself does nothing on iOS or Android: to fade or move one, wrap it in a<view>and animate that.
Card layout
Compose several skeletons to match the shape of the content you're loading. Swap them for the real content with @if once it arrives.
This template uses <view>, so its component imports LYNX_ELEMENTS from @blotch/angular-lynx.
API
UiSkeleton
No outputs.
