Web Front-end
HTML Tutorial
Animated loading effects implemented in pure css3_html/css_WEB-ITnose
Animated loading effects implemented in pure css3_html/css_WEB-ITnose
I have brought you many progress loading bars before, and today I will share with you an animated loading effect implemented purely in CSS3. The renderings are as follows:
Online preview Source code download
Implemented code.
html code:
<div class="wrap"> <div class="curve3"> </div> <div class="curve2"> <div class="text"> 15 </div> </div> <div class="curve"> <div class="topleft"> </div> <div class="bottomright"> </div> </div> <div class="bottomleft glow"> </div> <div class="topright"> </div> </div>
css3 code:
body { background: #252527;}.wrap { width:200px; margin-left:auto; margin-right:auto; position:relative;}.curve { left:200px; width:200px; height:200px; border-radius:100px; background: #252527; -webkit-animation: spin 1.5s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -moz-animation: spin 1.5s; -moz-animation-iteration-count: infinite; -moz-animation-timing-function: linear; animation: spin 1.5s; animation-iteration-count: infinite; animation-timing-function: linear;}@-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg);} 100% {-webkit-transform: rotate(360deg);}}@-moz-keyframes spin { 0% { -moz-transform: rotate(0deg);} 100% {-moz-transform: rotate(360deg);}}@keyframes spin { 0% { -moz-transform: rotate(0deg);} 100% {-moz-transform: rotate(360deg);}}.curve3 { position:absolute; margin-top:149px; width:200px; height:200px; border-radius:100px; box-shadow: 0px 3px 5px 0.02em #888888;}.glow { box-shadow: 0px 3px 15px 0.02em #888888}.topleft { width:100px; height:100px; border-top-left-radius:100px; background:-webkit-linear-gradient(top right, #AAAAB3 10%, #252527 80%); background:-moz-linear-gradient(top right, #AAAAB3 10%, #252527 80%); background:linear-gradient(to bottom left, #AAAAB3 10%, #252527 80%);}.bottomright { width:100px; height:100px; border-bottom-right-radius:100px; background:-webkit-linear-gradient( top right, #252527 20%, #AAAAB3 90%); background:-moz-linear-gradient( top right, #252527 20%, #AAAAB3 90%); background:linear-gradient( to bottom left, #252527 20%, #AAAAB3 90%); position:relative; left:100px;}.curve2 { top:175px; left:25px; position:relative; width:150px; height:150px; border-radius:100px;background-color:#252527; z-index:2; box-shadow: 0px 0px 5px 0.02em #888888;}.text { display:inline-block; font-family: 'Oswald'; font-size:80px; margin-left: 40px; margin-top: 16px; background:-webkit-linear-gradient( top left, white, #ffd700, #998100 80%); -webkit-background-clip:text; -webkit-text-fill-color: transparent; color:#ffd700;}.bottomleft { width:50px; height:50px; margin-right:; border-bottom-left-radius:50px; background:#252527; position:relative; z-index:-4; top:-100px;}.glow { box-shadow: 16px 30px 30px 5px #ffffff;}.topright { width:50px; height:50px; border-top-right-radius:50px; background:#252527; position:relative; left:125px; bottom:220px; box-shadow: 5px -5px 35px 5px #ffffff; z-index:-4;}via: http://www. w2bc.com/Article/19040
Hot AI Tools
Undresser.AI Undress
AI-powered app for creating realistic nude photos
AI Clothes Remover
Online AI tool for removing clothes from photos.
Undress AI Tool
Undress images for free
Clothoff.io
AI clothes remover
AI Hentai Generator
Generate AI Hentai for free.
Hot Article
Hot Tools
Notepad++7.3.1
Easy-to-use and free code editor
SublimeText3 Chinese version
Chinese version, very easy to use
Zend Studio 13.0.1
Powerful PHP integrated development environment
Dreamweaver CS6
Visual web development tools
SublimeText3 Mac version
God-level code editing software (SublimeText3)
Hot Topics
1377
52
What is the purpose of the <progress> element?
Mar 21, 2025 pm 12:34 PM
The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati
What is the purpose of the <datalist> element?
Mar 21, 2025 pm 12:33 PM
The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159
What are the best practices for cross-browser compatibility in HTML5?
Mar 17, 2025 pm 12:20 PM
Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.
What is the purpose of the <meter> element?
Mar 21, 2025 pm 12:35 PM
The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex
How do I use HTML5 form validation attributes to validate user input?
Mar 17, 2025 pm 12:27 PM
The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.
What is the viewport meta tag? Why is it important for responsive design?
Mar 20, 2025 pm 05:56 PM
The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.
What is the purpose of the <iframe> tag? What are the security considerations when using it?
Mar 20, 2025 pm 06:05 PM
The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.
Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors?
Apr 04, 2025 pm 11:54 PM
GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...


