gpt4 book ai didi

javascript - IE 9 中的 Jquery 动画圆弧/圆绘图

转载 作者:行者123 更新时间:2023-11-28 08:34:25 25 4
gpt4 key购买 nike

我正在尝试找到一种仅使用 jquery 为圆弧/圆制作动画的解决方案 - 没有 HTML5 或 CSS3,因为这需要在 IE 9 中工作。

我找到了几个 jquery 插件,但没有一个在 IE 9 中可用。

http://blog.templatemonster.com/demos/how-to-build-jquery-animated-circle-statistics/demo/index.html

http://www.jqueryscript.net/demo/Animated-Circle-Progress-Bar-with-jQuery-SVG-asPieProgress/

有没有办法只使用 jquery 来制作弧形动画?

最佳答案

您正在寻找这样的东西吗? Here is the JS.Fiddle

JQuery:

 $(function() {
$(".circle1").mouseover(function() {
$(this).animate({top:"0", left:"0", width:"100px", height:"100px", opacity: 1}, 200);
}).mouseout(function() {
$(this).animate({top:"50px", left:"50px", width:"0", height:"0", opacity: 1}, 200);
});
});

CSS:

.circle1 {
position:absolute; top:50px; left:50px;
width: 0px; height: 0px;
border:1px solid red;
padding:20px;
border-radius:50%;
}

HTML:

<div class="circle1"></div>

希望对您有所帮助。

关于javascript - IE 9 中的 Jquery 动画圆弧/圆绘图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28120316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com