-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.css
107 lines (99 loc) · 2.09 KB
/
gallery.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
.gallery{
--s:150px;
--g:10px;
--f:1.5;
display: grid;
gap:20px;
width:70vw;
aspect-ratio: 1;
grid-template-columns: repeat(3,auto);
/* border: double black 5px; */
border-radius:5%;
padding:3%;
background-color: #23a6d5;
}
.gallery > img{
width: 5%;
height: 5%;
min-width: 100%;
min-height: 100%;
cursor: pointer;
filter: grayscale(75%);
transition: 0.35s radial;
padding: 2%;
}
.gallery img:hover{
filter: grayscale(0);
width: calc(var(--f)*var(--s));
height:calc(var(--f)*var(--s));
padding: 2%;
margin: 2%;
border-radius:10%;
}
body{
margin: 0;
min-height: 100vh;
display: grid;
place-content:center;
/* background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite; */
}
/* @keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
} */
.animate-charcter
{
text-transform: uppercase;
background-image: linear-gradient(
-225deg,
#231557 0%,
#44107a 29%,
#ff1361 67%,
#fff800 100%
);
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
color: #fff;
background-clip: text;
/* text-fill-color: transparent; */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textclip 2s linear infinite;
display: inline-block;
/* font-size: 15px; */
}
@keyframes textclip {
to {
background-position: 200% center;
}
}
@media (max-width:740px) {
.gallery{
width:65vw;
margin: 0 auto;
}
}
@media (max-width:540px) {
.gallery{
width:75vw;
margin: 0 auto;
}
.gallery img:hover{
filter: grayscale(0);
width: 100%;
height:85%;
padding: 2%;
margin: 2%;
border-radius:10%;
}
}