forked from amwata/amwata.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.css
83 lines (82 loc) · 1.28 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
*{
margin:0;
padding:0;
}
body{
margin:0;
padding:0;
justify-content:cente;
align-items:cente;
display:block;
}
.imgsec{
width:100vw;
height:100vh;
margin:0;
padding:0;
justify-content:center;
align-items:center;
box-sizing:border-box;
background:#def;
}
.img{
position:relative ;
width:100vw;
height:50vh;
justify-content:center;
align-items:center;
}
.img:before{
content:"";
position:absolute;
width:100%;
height:50%;
background:#714;
}
.imgctn{
position:absolute ;
top:50%;
left:50%;
width:85%;
height:85%;
transform:translate(-50%,-50%);
display:block;
border-radius:5px;
box-shadow:0px 0px 10px rgba(0,0,0,.2);
overflow:hidden;
background:#8c619d;
object-fit:cover;
transition:.5s ease-out;
animation:bgpos 10s infinite ease-out;
}
@keyframes bgpos{
50%{background-position:left top;}
0%,100%{background-position:center;}
}
.slides{
padding:0;
box-sizing:border-box;
position:relative;
width:100vw;
height:50vh;
justify-content:center;
align-items:center;
}
@media screen and (orientation: landscape ), (min-width : 768px){
.seco{
display:flex;
}
.imgo{
width:50%;
height:100%;
}
.img:before
{
width:50%;
height:100%;
}
.slideso{
width:50%;
height:100%;
}
}