jquery实现钢丝小球螺旋旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:jquery实现钢丝小球螺旋旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <style> html { background: black; } body { margin: 0; padding: 0; } .swinger { width: 1px; height: 0px; margin: 0 auto; position: relative; min-height: 400px; } li { position: absolute; top: 10px; left: 50%; width: 1px; height: 1px; list-style: none; animation: swing alternate infinite ease-in-out; } .string { display: block; width: 1px; background-color: rgba(255, 255, 255, 0.3); } .ball { display: block; width: 25px; height: 25px; -moz-border-radius: 30px; -webkit-border-radius: 30px; border-radius: 30px; background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjYmJiNWM3Ii8+PHN0b3Agb2Zmc2V0PSI3MCUiIHN0b3AtY29sb3I9IiM3MzczNzQiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=') -3px -5px; background: -moz-radial-gradient(#bbb5c7, #737374 70%) -3px -5px; background: -webkit-radial-gradient(#bbb5c7, #737374 70%) -3px -5px; background: radial-gradient(#bbb5c7, #737374 70%) -3px -5px; border: 1px solid #c8c8c8; content: " "; position: relative; -moz-box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.2), -2px -2px 4px 3px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.2), -2px -2px 4px 3px rgba(0, 0, 0, 0.1) inset; box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.2), -2px -2px 4px 3px rgba(0, 0, 0, 0.1) inset; } @keyframes swing { from { -moz-transform: rotate(-25deg); -ms-transform: rotate(-25deg); -webkit-transform: rotate(-25deg); transform: rotate(-25de.........完整代码请登录后点击上方下载按钮下载查看
网友评论0