Last active
October 24, 2020 14:38
-
-
Save devgiordane/6df8f2ff3d48553e91b61a426bd2703d to your computer and use it in GitHub Desktop.
Nesse vídeo eu ensino a fazer o desenho de uma gota em CSS, a dica aqui é usar o transform: rotate() e o border-radius, com um pouco de criatividade na propriedade box-shadow é possível chegar a um resultado bem interessante.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Gota d'água com CSS</title> | |
<style> | |
body { | |
margin: 0; | |
display: flex; | |
height: 100vh; | |
justify-content: center; | |
background-color: #212121; | |
align-items: center; | |
} | |
.drop { | |
background-color: #0288d1; | |
height: 150px; | |
width: 150px; | |
border-radius: 0% 50% 50% 50%; | |
transform: rotate(45deg); | |
box-shadow: inset -25px 10px 0px -10px #03a9f4; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="drop"> | |
<!-- Dev_ Giordane --> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment