@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
89 lines (75 loc) • 1.81 kB
text/less
/*!
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.k-skeleton {
display: block;
}
.k-skeleton-text {
border-radius: @border-radius;
transform: scale( 1, .6 );
&:empty::before {
content: "\00a0";
}
}
.k-skeleton-circle {
border-radius: 9999px;
}
// Skeleton Wave
@keyframes k-skeleton-wave {
0% {
transform: translateX(-100%);
}
60% {
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
}
.k-skeleton-wave {
.k-skeleton,
&.k-skeleton {
position: relative;
overflow: hidden;
&::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transform: translateX(-100%);
animation: k-skeleton-wave 1.6s linear .5s infinite;
}
}
}
// Skeleton Pulse
@keyframes k-skeleton-pulse {
0% {
opacity: 1;
}
50% {
opacity: .4;
}
100% {
opacity: 1;
}
}
.k-skeleton-pulse {
.k-skeleton,
&.k-skeleton {
animation: k-skeleton-pulse 1.5s ease-in-out .5s infinite;
}
}