-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
108 lines (87 loc) · 1.88 KB
/
style.css
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
body{
font-family: Verdana, sans-serif;
}
header,
nav,
section,
article,
footer{
border: 1px solid grey;
margin: 5px;
padding: 8px;
}
.border-grey{
border: 1px solid gray;
}
nav ul{
margin: 0;
padding: 0;
}
nav ul li{
display: inline;
margin: 5px;
}
h1,
h2,
h3{
margin-left: 5px;
}
.slider {
display: flex;
width: 500px;
aspect-ratio: 16/9;
scroll-snap-type: x mandatory;
overflow-x: scroll;
}
.slider img {
flex: 0 0 100%;
width: 100%;
object-fit: cover;
scroll-snap-align: center;
}
/* navegar de una pag a otra pag */
.home .gallery img{
view-transition-name: photo-mustang;
}
.detail .mustang img {
view-transition-name: photo-mustang;
}
/* Trabajando con la barra de progreso */
html {
scroll-timeline: --page-scroll block;
}
@keyframes grow-progress { /* animación */
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
#progress { /* barra de progreso */
transform-origin: 0 50%;
animation: grow-progress auto linear;
animation-timeline: --page-scroll;
}
/* Animación de imagenes */
@keyframes reveal {
from { opacity: 0; clip-path: inset(0% 60% 0% 50%); }
to { opacity: 1; clip-path: inset(0% 0% 0% 0%); }
}
.revealing-image {
animation: auto linear reveal both;
animation-timeline: view();
animation-range: entry 25% cover 50%;
}
/* Stacking Cards - 15 líneas */
.card {
animation: empty linear forwards;
animation-timeline: --card;
view-timeline: --card inline;
&h2{
animation: clip-in linear backwards, clip-out linear forwards;
animation-timeline: --card;
animation-range: entry 50% entry 100%, exit 0% exit 50%;
}
& footer {
animation: fade-in linear both, fade-out linear both;
animation-timeline: --card;
animation-range: cover 40% cover 50%, cover 50% cover 60%;
}
}