UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

26 lines (23 loc) 1.2 kB
import BaseStyle from 'primevue/base/style'; var css = "\n@layer primevue {\n .p-skeleton {\n overflow: hidden;\n }\n\n .p-skeleton::after {\n content: '';\n animation: p-skeleton-animation 1.2s infinite;\n height: 100%;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n transform: translateX(-100%);\n z-index: 1;\n }\n\n .p-skeleton.p-skeleton-circle {\n border-radius: 50%;\n }\n\n .p-skeleton-none::after {\n animation: none;\n }\n\n @keyframes p-skeleton-animation {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(100%);\n }\n }\n}\n"; var inlineStyles = { root: { position: 'relative' } }; var classes = { root: function root(_ref) { var props = _ref.props; return ['p-skeleton p-component', { 'p-skeleton-circle': props.shape === 'circle', 'p-skeleton-none': props.animation === 'none' }]; } }; var SkeletonStyle = BaseStyle.extend({ name: 'skeleton', css: css, classes: classes, inlineStyles: inlineStyles }); export { SkeletonStyle as default };