jquery实现圆点绕圆心循环转动
来源:互联网 发布:windows 做磁盘条带化 编辑:程序博客网 时间:2024/05/01 06:59
源代码:
<!DOCTYPE html><html><head></head><style>.item{background:red;border-radius:10px;height:10px;width:10px; position: absolute;}.circle{border:1px solid blue;border-radius:100px;height:100px;width:100px;position: absolute;top:100px;left:100px;}.circle2{border:1px solid blue;border-radius:100px;height:200px;width:200px;position: absolute;top:50px;left:50px;}.circle3{border:1px solid blue;border-radius:300px;height:300px;width:300px;position: absolute;top:0px;left:0px;}#centre{top:145px;left:145px;}#point{top:95px;left:145px;}#point2{top:45px;left:145px;}#point3{top:-5px;left:145px;}</style><body> <div id="point" class="item"></div> <div id="centre" class="item"></div> <div class="circle"></div><div class="circle2"></div><div class="circle3"></div><div id="point2" class="item"></div><div id="point3" class="item"></div></body></html><script src="/jquery/jquery-1.11.1.min.js"></script><script>//var obj = document.getElementById('point');var a=0;function cc(){a=a+0.01;var y=145-50*Math.cos(a);var x=145+50*Math.sin(a);$("#point").css({"top":y,"left":x});$("#point2").css({"top":x*2-145,"left":y*2-145});$("#point3").css({"top":y*3-290,"left":x*3-290});}setInterval(cc,6);</script>
0 0
- jquery实现圆点绕圆心循环转动
- jquery实现转盘抽奖--基于奖品转动的转盘
- js 图片水平循环转动
- css实现图片转动
- jquery实现循环中的暂停
- 实现图片随鼠标转动
- RotateAnimation 实现表盘指针转动
- android实现光盘转动效果
- html+css实现图片转动
- javascript:实现转动的圆圈
- Unity 代码实现表针转动
- dgui 实现圆心和半径来画圆
- c++ 三点求外接圆圆心 3维实现
- jquery实现文字由下到上循环滚动
- 利用jQuery实现给div循环上色
- jquery实现广告位循环向上滚动
- jquery animate动画实现循环执行
- jquery实现文字上下循环滚动效果
- 想成为嵌入式程序员应知道的0x10个基本问题
- [C#]网络编程系列专题二:HTTP协议详解
- 请求和响应
- 【日常】百度搜索技巧
- JavaScript跨域总结与解决办法
- jquery实现圆点绕圆心循环转动
- [C# 网络编程系列]专题三:自定义Web服务器
- win32 socket阻塞与非阻塞函数及设置
- 图片上添加水印
- 508C — Anya and Ghosts
- 面试题5 从头到尾打印链表
- 兔子-Myeclipse configuration center
- opatch打补丁时遭遇失败
- poj解题报告——1416