悬浮点击连贯特效
代码语言:html
所属分类:悬停
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Spartan&display=swap"); * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { height: 100%; margin: 0; } body { display: flex; font-family: "Spartan", sans-serif; font-size: 14px; align-items: center; justify-content: center; background-color: #dd1166; } @keyframes scale-up { from { transform: scaleY(1) scaleX(1); opacity: 0.5; } to { transform: scaleX(1.3) scaleY(2); opacity: 0; } } .button { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 36px; color: #ffffff; border-radius: 40px; background-color: #000000; cursor: pointer; user-select: none; } .button__text { position: relative; margin-right: 12px; transition: ease-in-out .18s; z-index: 2; } .button__icon { position: relative; transition: ease-in-out .18s; z-index: 2; } .button:before { content: ''; position: absolute; width: 100%; height: 100%; background-color: #ffffff; opacity: 0.5; border-radius: 40px; z-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0