Home > Web Front-end > H5 Tutorial > HTML5 css3 progress bar countdown animation special effects code [recommended]_html5 tutorial skills

HTML5 css3 progress bar countdown animation special effects code [recommended]_html5 tutorial skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 15:45:36
Original
2296 people have browsed it

html5 css3 progress bar countdown animation special effect. I accidentally discovered this work when I was looking for network resources on the Internet today. Seeing that the effect is very good and very practical, I sorted it out and shared it with everyone. It is mainly used. HTML5, JavaScript and CSS3 technologies are used, and SVG, circle and text are used. . .

The core code is as follows


Copy code
The code is as follows:

function alertSet(e) {
document.getElementById("js-alert-box").style.display = "block",
document.getElementById("js-alert-head").innerHTML = e;
var t = 10,
n = document.getElementById("js-sec-circle");
document.getElementById("js-sec-text").innerHTML = t,
setInterval(function() {
if (0 == t){
location.href="http://www.jb51.net";
}else {
t -= 1,
document.getElementById("js- sec-text").innerHTML = t;
var e = Math.round(t / 10 * 735);
n.style.strokeDashoffset = e - 735
}
},
970);

The effect is as follows:

The above HTML5 css3 progress bar countdown animation special effects code [recommended] is all the content shared by the editor. I hope it can give you a reference, and I hope you will support Script Home.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template