-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel-gradient-hover.css
44 lines (34 loc) · 1.18 KB
/
carousel-gradient-hover.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
/* Carrossel contínuo com gradiente nas laterais e efeito hover colorido */
/* GRADIENTE NAS LATERAIS */
selector {
mask-image:
linear-gradient(to left, transparent 2%, black, transparent 98%);
-webkit-mask-image:
linear-gradient(to left, transparent 2%, black, transparent 98%);
}
/* CARROSSEL EM ANIMACAO CONTINUA */
selector .swiper-wrapper {
-webkit-transition-timing-function: linear !important;
-moz-transition-timing-function: linear !important;
-o-transition-timing-function: linear !important;
transition-timing-function: linear !important;
}
/* DEIXAR IMAGEM EM ESCALA DE CINZA E COLORIR AO PASSAR O MOUSE */
selector img {
filter: saturate(0);
transition: All 0.3s ease;
opacity: 0.4;
}
selector img:hover {
filter: saturate(1);
transition: All 0.3s ease;
opacity: 1;
}
/* #################################################################### */
/* VARIAÇÃO DE GRADIENTE NAS LATERAIS */
selector {
mask-image:
linear-gradient(to left, transparent 1%, black 10%, black 90%, transparent 99%);
-webkit-mask-image:
linear-gradient(to left, transparent 1%, black 10%, black 90%, transparent 99%);
}