VIDEO DEMO :
Jika iya silahkan ikutin cara berikut ini.
Pertama : anda membuat folder baru dan isi folder tersebut di tambahin dengan file "index.html" dan "style.css"
Kedua : Setelah selesai membuat folder dan file buka aplikasi Text Editor yang anda punya.
Ketiga : Setelah itu akan ada pilihan file "index.html" dan "style.css" klik file "index.html"
Keempat : Setelah diklik copy code index.html dibawah ini.
__________________________________________________________________________________
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Maike It Love</title>
</head>
<body>
<div class="heart"></div>
</body>
</html>
__________________________________________________________________________________
Kelima : Selanjut nya pilih file style.css lalu copy dan paste kode berikut.
__________________________________________________________________________________
body{
background: #3e0000;
margin: 0;
padding: 0;
}
.heart{
width: 180px;
height: 100px;
position: absolute;
top: 40%;
left: 37%;
background: #ff3e3e;
transition: 1s;
transform-origin: right bottom;
}
.heart:before{
content: '';
position: absolute;
width: 100%;
height: 100%;
background: white;
transition: 2s;
transform-origin: right bottom;
}
.heart:hover{
transform: rotate(45deg);
border-top-left-radius: 50px;
border-bottom-left-radius: 50px;
}
.heart:hover:before{
transform: rotate(450deg) translateY(100px);
border-top-left-radius: 50px;
background: #e22c2c;
border-bottom-left-radius: 50px;
}
__________________________________________________________________________________
lewis- Nah itu berbagai cara untuk membuat coding for valentine.
Jika ada salah pengetikan mohon maaf.
Sekian Terimakasih.
by : lewis-kull.com