14. Botão Líquido

Efeito (o endereço do disco de rede do código-fonte está no final)

Preste atenção na conta pública "Moving the World" para ver mais tutoriais em vídeo!

Código fonte

index.html

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>液体按钮</title>
  <link rel="stylesheet" href="./style.css">

</head>
<body>
<a href="#">
  <span>Button</span>
  <div class="liquid"></div>
</a>
  
</body>
</html>

css

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0c0c0c;
}

a {
  position: relative;
  padding: 20

Acho que você gosta

Origin blog.csdn.net/qq449245884/article/details/122748352
Recomendado
Clasificación