jquery实现加载更多动画效果代码
代码语言:html
所属分类:动画
代码描述:jquery实现加载更多动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background-color: #4a4047; } .load-more { position: absolute; display: block; cursor: pointer; width: 40px; height: 40px; top: 50%; left: 50%; margin: -20px 0 0 -20px; } .load-more:before, .load-more:after { position: absolute; display: block; content: ''; width: 30px; height: 30px; left: 50%; top: 50%; margin-top: -15px; border-width: 2px; border-style: solid; border-color: transparent; border-bottom-color: #fff; border-right-color: #fff; border-radius: 0 0 5px 0; transform: translate(-50%, -50%) rotate(45deg); transition: all .4s ease-in-out; } .load-more.active:before { border-radius: 50%; animation: .8s rotate .4s linear forwards infinite; } .load-more.active:after { width: 38px; height: 38px; border-radius: 50%; animation: .8s rotate2 .4s linear forwards infinite; } @keyframes rotate { to { transform: translate(-50%, -50%) rotate(405deg); } } @keyframes rotate2 { to.........完整代码请登录后点击上方下载按钮下载查看
网友评论0