I have 1 website: I want to convert to shake effect
Code:
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>shake effect</title>
<!-- Font Awesome icon -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f5f5f5;
}
/* Icon */
.phone-icon {
display: inline-flex;
align-items: center;
padding: 12px 20px;
background-color: #28a745;
color: white;
border-radius: 50px;
text-decoration: none;
font-size: 18px;
font-weight: bold;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.phone-icon:hover {
background-color: #218838;
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
/* shake effect icon */
.phone-icon i {
margin-right: 10px;
animation: blink 1.2s infinite;
}
@keyframes blink {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
</style>
</head>
<body>
<a href="tel:0931941274" class="phone-icon">
<i class="fas fa-phone-alt"></i> 0931 941 274
</a>
</body>
</html>
please help me.
thanks and best regards.