Custom Arrow Icon I Want to Add Animation To
I have designed an arrow icon image that functions as a link. It is positioned on top of a background image. When the user hovers over the arrow, I would like to implement a "sink" effect similar to the examples provided in the 2D transitions section here. How can I achieve this effect?
Here is my current CSS/HTML code for reference:
body {
padding: 0;
margin: 0;
}
header {
height: 100vh;
}
.content {
height: 150vh;
}
img#bg {
z-index: -100;
/* Set rules to fill background */
min-height: 100%;
min-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: 100%;
/* Set up positioning */
position: relative;
top: 0;
left: 0;
}
img#arrow {
position: absolute;
bottom: 50;
left: 45.5%;
}
h1#title {
font-size: 20px;
font-family: arial;
margin-top: 2.5em;
text-align: center;
color: yellow;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>;
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Tinker Time</title>
</head>
<body>
<header>
<img src="assets/building2.jpg" id="bg" alt="" />
<a href="#anchor">
<img src="assets/arrow.png" id="arrow" alt="" />
</a>
</header>
<div class="content">
<a name="anchor"></a>
<h1>Team Members, About us, Blog</h1>
</div>
</body>