滑动放大的表情菜单导航效果代码
代码语言:html
所属分类:菜单导航
代码描述:滑动放大的表情菜单导航效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: white; } svg { width: 600px; } .emojis { list-style: none; margin: 0; padding: 0; width: 600px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0 20px; box-sizing: border-box; display: flex; } .emojis li { flex: 1; font-size: 60px; text-align: center; transition: .2s all ease-in-out; } .emojis li:hover { transform: scale(1.6); } .emojis + svg #pop { r: 20px; transition: .2s r ease-in-out; } .emojis:hover + svg #pop { r: 40px; } </style> </head> <body translate="no" > <ul class="emojis"> <li>👍</li> <li>❤️</li> <li>☺️</li> <li>😍</li> <li>✌️</li> </ul> <svg viewBox=".........完整代码请登录后点击上方下载按钮下载查看
网友评论0