按钮悬浮变形动画效果
代码语言:html
所属分类:悬停
代码描述:按钮悬浮变形动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet"> <style> * { padding: 0; margin: 0; box-sizing: border-box; } body { height: 100vh; background-color: #5d4257; background-image: linear-gradient(315deg, #5d4257 0%, #a5c7b7 74%); display: flex; justify-content: center; align-items: center; } .wrapper { height: 50px; width: 165px; -webkit-tap-highlight-color: transparent; display: flex; justify-content: center; align-items: flex-end; } button { height: 100%; width: 90%; cursor: pointer; background-color: #08e1ae; background-image: linear-gradient(315deg, #08e1ae 0%, #98de5b 74%); border: none; border-radius: 50px 50px 30px 30px; transition: 1s; box-shadow: 0 3px 10px rgba(0,0,0,0.15); } button a { font-family: 'Fredoka One', cursive; font-size: 30px; text-decoration: none; color: rgba(37, 61, 29, 0.7); display: flex; ju.........完整代码请登录后点击上方下载按钮下载查看
网友评论0