forked from AnujShrivastava01/AnimateItNow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopaque_hover.html
More file actions
50 lines (46 loc) · 1.14 KB
/
opaque_hover.html
File metadata and controls
50 lines (46 loc) · 1.14 KB
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
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Opaque on Hover / Animate It Now</title>
<meta name="description" content="A comprehensive collection of CSS animation templates and effects for web developers" />
<!-- Apple Touch Icons -->
<!-- Fallback icon -->
<link rel="icon" type="image/png" href="images/logo.png" />
</head>
<style>
body{
text-align: center;
display: flex;
flex-direction: column;
}
.opq{
height: 50px;
width: 150px;
background-color: rgb(87, 130, 246);
font-size: 23px;
margin-top: 10px;
margin-left: 15px;
display: flex;
justify-content: center;
align-items: center;
}
.box{
display: flex;
justify-content: center;
align-items: flex-end;
}
.opq:hover{
opacity: 70%;
cursor: pointer;
}
</style>
<body>
<h1>OPAQUE ON HOVER</h1>
<div class="box">
<div class="opq">Hover on me!</div>
<div class="opq">Opaque</div>
</div>
</body>
</html>