1放图片
.cover {
&::before{
display: flex;
align-items: center;
justify-content: center;
content: '';
position: fixed;
top:0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(166, 177, 183, 0.6);
z-index: 999;
}
}
.loading {
&::before{
display: flex;
align-items: center;
justify-content: center;
content: url(/images/loading.gif);
position: fixed;
top:0;
left: 0;
width: 100%;
height: 100vh;
background: hsla(0,0%,100%,.96);
z-index: 999;
}
}
2纯css
loading-first {
&::before{
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
color: #81440e;
font-weight: bold;
content: '努力加载中...';
position: fixed;
top:0;
left: 0;
width: 100%;
height: 100vh;
background: hsla(0,0%,100%,.96);
// pointer-events: none; //不能用,否则点击会穿透该层
z-index: 998;
}
&::after {
content: '';
position: fixed;
top: 45%;
left: 50%;
border-radius: 50%;
width: 0;
height: 0;
box-sizing: border-box;
border: 30px solid $red;
margin-left: -30px;
margin-top: -45px;
transform: translate(-15px);
border-color: $red transparent rgba(255, 195, 0, 1) transparent;
animation: lds-hourglass 1.2s infinite;
z-index: 999;
}
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
}
分享到:
相关推荐
div ng-preview-cover drag-text =" drag photo " update-button-text =" update cover photo " image =" image " on-load =" onLoad(base64) " on-cancel =" onCancel() " cover-loading =" coverLoading " on-e
微信小程序个人简历制作,传统的简历以一个文档的形式存在,现如今可以借助微信小程序平台制作个性化的简历。... <button loading='{{loading}}' plain='true' hover-class='button-hover' bindtap='check' </view>
该页面切换特效的HTML结构使用一个元素来作为页面的包裹元素,div.cd-cover-layer用于制作页面切换时的遮罩层,div.cd-loading-bar是进行ajax加载时的loading进度条。 <h1>Page Transition <!-- your ...
The scope of the publication is also expanded to cover the key design aspects for shallow foundations, in response to the request of the practitioners. Hence, a new publication title is used. The ...
Readers will learn how to design loading sequences that ensure users stay fully engaged instead of tuning out, how to leverage simple physics principles to make apps respond naturally to users’ input...
// 0.6 Feb 10, 2006 Fixed 'Error loading texture' bug after 10 days plugin not used (History cleanup at starup removed) // 0.5 Dec 22, 2005 Promoted to RenderPriority.AtmosphericImages // 0.4 Dec 6, ...
* `loading`: 指定图片加载过程中的loading效果 * `try`: 指定加载图片的次数 4. 使用 VueLazyload 现在,我们可以在模板中使用 VueLazyload。下面是一个简单的示例: ``` export default { ...
of this housing to maintain its integrity under various loading conditions such as shock and vibration. Thermomechanical management is concerned with the impact of thermal loads on the mechanical ...
12. "You should advise us by email, 12 days before the date of loading, _____ the name of ship, expected lay days, loading capacity, contract number" 这是一个不完整的句子,但可以推测应该填写介词"with...
(b) stable loading; (c) starting with idling; (d) indoor setting with dust; (e) usage period: 10 years, minor overhaul period: 1 year, and overhaul period: 3 years; (f) power source is alternating ...
最近,在OurAVR上看到很多版本的LCD驱动程序,但是这些程序都是简单地将全部或部分的显示数据Cover到LCD的显存上,完成一个字或图片的显示就等着大家喊“牛”了。然而,这远远不够。用户希望你提供的是友好的图形...
Part 3, “Transactional data processing,” is all about loading and storing data with Hibernate and Java Persistence. We introduce the programming interfaces, how to write transactional applications,...
在示例代码中,定义了一些CSS类,如`.loading`、`.action`、`.cover`和`.showLoad`,用于控制加载效果的样式。`.loading`是装载提示的容器,`.action`是触发加载的按钮,`.cover`是一个全屏覆盖层,用来遮盖整个...
2. **Open Top Cover(开启上盖)** - 轻轻抬起打印机的上盖,以便于安装耗材。注意不要用力过猛,以免损坏机器。 ### 二、安装耗材 1. **Loading Media(安装标签)** - 将标签纸的前端放入打印机的进纸槽,...
background-size: cover; } .loading { /* 添加旋转动画 */ animation: rotate 2s infinite linear; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } ```...