-
Notifications
You must be signed in to change notification settings - Fork 0
/
position.html
136 lines (120 loc) · 3.02 KB
/
position.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<title>Posicionamiento</title>
<meta charset="utf-8" />
<style>
.superior {
width: 400px;
height: 400px;
background: orange;
position: relative;
background: linear-gradient(20deg, #E91E63, #FFEB3B, #FFC107);
}
.inferior {
width: 150px;
height: 150px;
background: blueviolet;
position: absolute;
bottom: 20px;
right: 20px;
z-index: 2;
}
.dos {
background: gray;
bottom: 40px;
right: 40px;
transform: scale(1.1) rotate(45deg) translate(100px);
/*animation-name: efecto_alfa;
animation-iteration-count: infinite;
animation-timing-function: ease-in;
animation-duration: 5s;
animation-delay: 0s;*/
}
@keyframes efecto_alfa {
0% {
width: 100px;
}
25% {
width: 300px;
}
50% {
width: 200px;
background-color: red;
}
75% {
width: 300px;
}
100% {
width: 100px;
background-color: green;
}
}
.boton {
width: 50px;
height: 50px;
border-radius: 5px;
position: absolute;
top: 20px;
right: 20px;
animation-name: latido;
animation-duration: .5s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
@keyframes latido {
0% {}
50% {
transform: scale(1.2);
opacity: .5;
}
100% {
transform: scale(1);
}
}
.album {
width: 300px;
position: relative;
height: 300px;
overflow: hidden;
}
.album_name {
width: 100%;
height: 300px;
text-align: center;
background: rgba(120,120,120,0.5);
color: #fff;
font-size: 20px;
position: absolute;
top: 0;
opacity: 0;
transition: ease all 0.2s;
padding-top:40%;
}
.album:hover .album_name {
opacity: 1;
font-size: 30px;
}
</style>
</head>
<body>
<div class="superior">
Superior
<div class="inferior">
Inferior
</div>
<div class="inferior dos">
Inferior
</div>
</div>
<div class="boton">
<img width="100%" src="https://www.freeiconspng.com/uploads/pink-heart-png-12.png" />
</div>
<div class="album">
<img src="img/album.jpg" width="100%" />
<div class="album_name">
Elephant (2003)
</div>
</div>
</body>
</html>