当前位置:网站首页>Loading font component loading effect
Loading font component loading effect
2022-06-12 08:34:00 【Pumpkin_ xiaoXuan】
design sketch :

html Code :
<div class="font">Loading</div>css Code :
<style>
@keyframes loading {
0% {
height: 100%;
}
100% {
height: 0%;
}
}
.font {
position: relative;
font-size: 30px;
font-weight: 700;
color: tomato;
}
.font::before {
position: absolute;
top: 0;
left: 0;
height: 50%;
content: 'Loading';
font-size: 30px;
font-weight: 700;
overflow: hidden;
color: #f0f0f0;
animation: loading 3s linear infinite;
}
</style>principle : Make the white font height gradually smaller , The overflow part is hidden , Visually, it looks like the font is gradually loaded up .
What changes is the size percentage of the height .
边栏推荐
- 只把MES当做工具?看来你错过了最重要的东西
- 三国杀周边--------猪国杀题解
- 处理异常数据
- (p21-p24) unified data initialization method: List initialization, initializing objects of non aggregate type with initialization list, initializer_ Use of Lisy template class
- Hands on learning and deep learning -- a brief introduction to softmax regression
- Installation series of ROS system (II): ROS rosdep init/update error reporting solution
- 2022.6.11-----leetcode.926
- Hands on deep learning -- concise implementation code of weight decay
- Record the first step pit of date type
- What should be paid attention to when establishing MES system? What benefits can it bring to the enterprise?
猜你喜欢

Hypergeometric cumulative distribution test overlap

Py & go programming skills: logic control to avoid if else

FDA reviewers say Moderna covid vaccine is safe and effective for children under 5 years of age

【数据存储】浮点型数据在内存中的存储

JVM学习笔记:三 本地方法接口、执行引擎

Hands on deep learning -- discarding method and its code implementation

电气火灾探测器对各用电回路进行实时监控

Vision transformer | arXiv 2205 - TRT vit vision transformer for tensorrt

(p15-p16) optimization of the right angle bracket of the template and the default template parameters of the function template

ASP. Net project development practice introduction_ Item VI_ Error report (summary of difficult problems when writing the project)
随机推荐
Py&GO编程技巧篇:逻辑控制避免if else
Hands on deep learning -- discarding method and its code implementation
只把MES当做工具?看来你错过了最重要的东西
Regular expressions in JS
Error: clear the history in the search box in the website?
Shell基本语法--算数运算
后MES系统的时代,已逐渐到来
Hands on learning and deep learning -- simple implementation of softmax regression
Record the first step pit of date type
ctfshow web 1-2
【指针进阶三】实现C语言快排函数qsort&回调函数
js实现页面加载后再刷新一次
APS究竟是什么系统呢?看完文章你就知道了
What is the MES system? What is the operation process of MES system?
A brief summary of C language printf output integer formatter
Website colab and kaggle
Triggers in MySQL
MES帮助企业智能化改造,提高企业生产透明度
Hands on learning and deep learning -- a brief introduction to softmax regression
【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C