-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwitter-heart.html
76 lines (75 loc) · 1.68 KB
/
twitter-heart.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>heart</title>
<style type="text/css">
div.heart {
background-image: url(img/web_heart_animation.png);
width: 100px;
height: 100px;
display: inline-block;
}
div.heart:hover {
background-position: -2800px 0px;
transition: 2.5s steps(28);
}
xdiv.heart:active {
background-position: -2800px 0px;
transition: 1.1s steps(28);
}
div.imgt {
display: inline-block;
border: solid;
height: 100px;
width: 100px;
margin: auto;
overflow: hidden;
}
img.transition {
position: relative;
left: 0px;
xpadding: 0px 0px 0px 2800px ;
transition: 2s steps(28) 5s;
}
img.transition:hover {
left: -2800px;
transition: 2s steps(28);
}
</style>
</head>
<body>
<section>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
</section>
<section>
<img src="img/web_heart_animation.png">
<div class="imgt">
<img class="transition" src="img/web_heart_animation.png">
</div>
<div class="imgt">
<img class="transition" src="img/web_heart_animation.png">
</div>
<div class="imgt">
<img class="transition" src="img/web_heart_animation.png">
</div>
<div class="imgt">
<img class="transition" src="img/web_heart_animation.png">
</div>
<div class="imgt">
<img class="transition" src="img/web_heart_animation.png">
</div>
<div class="imgt">
<img class="transition" src="img/web_heart_animation.png">
</div>
</section>
</body>
</html>