css+js实现图标菜单点击排列动画效果代码
代码语言:html
所属分类:菜单导航
代码描述:css+js实现图标菜单点击排列动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.5.1.css"> <style> *, *:before, *:after { box-sizing: border-box; } body, html { margin: 0; height: 100%; } body { height: 100%; display: flex; align-items: center; justify-content: center; } body .reactions { width: 216px; height: 66px; display: flex; border: 1px solid #d9d9d9; background-image: linear-gradient(to top, #f7f7f7, white); padding: 8px; border-radius: 45px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05); } body .reactions.wave .like { animation: bounce 0.5s cubic-bezier(0.72, -0.01, 0.34, 1) forwards; } body .reactions.wave .love { animation: bounce 0.5s 0.125s cubic-bezier(0.72, -0.01, 0.34, 1) forwards; } body .reactions.wave .laugh { animation: bounce 0.5s 0.25s cubic-bezier(0.72, -0.01, 0.34, 1) forwards; } body .reactions.wave .cry { animation: bounce 0.5s 0.375s cubic-bezier(0.72, -0.01, 0.34, 1) forwards; } body .reactions > div { flex: 0 0 calc(25% - 10px); margin: 5px; border-radius: 100%; background-color: white; transition: background-color 0.5s cubic-bezier(0.72, -0.01, 0.34, 1); position: relative; z-index: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); color: #666666; } body .reactions >.........完整代码请登录后点击上方下载按钮下载查看
网友评论0