Посмотрите элемент mavic и mavic__image что как раз отвечает за фотку которая при наведении должна подыматься вверх и должна держаться до тех пор пока не убрать курсор с блока mavic
HTML:
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/style.css">
<meta name="viewport" content="width=device-width">
</head>
<body>
<div class="wrapper">
<div class="mavic">
<div class="mavic__image">
<img src="img/mavic.png" alt="">
</div>
<div class="mavic__title">
Mavic
</div>
</div>
</div>
</body>
</html>
CSS:
.mavic {
width: 600px;
height: 400px;
background-color: #8bbe6d;
margin: 0 auto;
cursor: pointer;
position: relative;
overflow: hidden; }
.mavic__image {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
-webkit-animation-name: mavic-on;
animation-name: mavic-on;
animation-duration: 1s;
animation-fill-mode: forwards;
animation-timing-function: ease-out; }
@keyframes mavic-on {
0% {
transform: translateY(-200%); }
60% {
transform: translateY(30px); }
70% {
transform: translateY(-20px); }
80% {
transform: translateY(15px); }
90% {
transform: translateY(-5px); }
100% {
transform: translateY(0); } }
.mavic__image:hover {
animation-name: mavic-off;
animation-duration: 1s;
animation-timing-function: ease-out;
animation-fill-mode: forwards; }
.mavic__image:hover {
animation-name: mavic-off;
animation-duration: 1s;
animation-timing-function: ease-out;
animation-fill-mode: forwards; }
@keyframes mavic-off {
0% {
transform: translateY(0); }
100% {
transform: translateY(-200%); } }