-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (42 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="cssanimation.css" />
<script src="letteranimation.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="style.css" />
<style>
.leRencontre span {
animation: leRencontre 4s;
animation-iteration-count: infinite
}
@keyframes leRencontre {
0%, 33%, 100% {
transform-origin: bottom;
animation-timing-function: cubic-bezier(.17,.67,.79,1.83);
}
33% {
transform: translateY(-5px) rotate(-5deg);
}
66% {
transform: translateY(5px) rotate(5deg);
}
}
</style>
<title>Floating Searchbar</title>
</head>
<body>
<video autoplay muted loop id="bgVideo">
<source src="bg.mp4" type="video/mp4">
</video>
<div class="container">
<h1 class=" cssanimation random leRencontre">Floating Searchbar</h1>
<form>
<input type="text" placeholder="SEARCH" class="floating" />
<button><i class="fa fa-search floating" aria-hidden="true"></i></button>
</form>
</div>
</body>
</html>