Effect Fading from top to bottom Source code html, using angular syntax, just make simple changes to get the syntax you need <div *ngFor="let item of [1,1,1],index as index" class="skeletonItem anim-opacity2 animation-delay{{index}}"> <div class="skeletonText"></div> <div class="skeletonText" style="width:70%"></div> <div class="skeletonText" style="width:40%"></div> </div> CSS .skeletonItem { padding: 16px; border-bottom: 3px solid #eee; } .skeletonText { height: 16px; background: #e2e2e2; margin-top: 12px; border-radius: 4px; } .skeletonText:first-child { margin-top: 0; } .anim-opacity2 { animation: 1.5s opacity2 0s infinite; } .animation-delay0 { animation-delay: 0s; } .animation-delay1 { animation-delay: 0.5s; } .animation-delay2 { animation-delay: 1s; } @keyframes opacity2 { 0% { opacity: 0.5 } 50% { opacity: 1; } 100% { opacity: 0.5; } } Summarize This is the end of this article about how to use CSS+HTML to implement the Skeleton Screen loading placeholder animation effect (with animation). For more related Skeleton Screen loading placeholder content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
<<: Docker image optimization (from 1.16GB to 22.4MB)
>>: Learn how to use JavaScript's new Element Traversal property to traverse child elements
Notice! ! ! select * from user where uid not in (...
Table of contents 1. Master-slave synchronization...
Preface Previously, I talked about the problem of...
Preface: In MySQL, views are probably one of the ...
If the server data is not encrypted and authentic...
What is CN2 line? CN2 stands for China Telecom Ne...
Six effectsImplementation Code html <h1>CSS...
All-round system monitoring tool dstat dstat is a...
<br />This tag can display a horizontal line...
<br />Looking at this title, you may find it...
Because I have been tinkering with Linux recently...
Download url-loader yarn add -D url-loader module...
This article shares the installation tutorial of ...
Page turning problem scenario B and C are on the ...
Table of contents Steps to create TCP in Linux Se...