按钮悬停边框颜色变动动画效果代码
代码语言:html
所属分类:悬停
代码描述:按钮悬停边框颜色变动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; min-height: 100vh; background: #000; } .button { --x: 50%; --y: 50%; position: relative; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding: 1em 2em; color: white; cursor: pointer; outline: none; border-radius: 100px; border: 2px solid transparent; background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#000)) padding-box,.........完整代码请登录后点击上方下载按钮下载查看
网友评论0