-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.html
99 lines (94 loc) · 2.02 KB
/
style.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
<!DOCTYPE html>
<html>
<head>
<title>Glassmorphism button</title>
</head>
<style>
.trupi{
align-items: center;
background: #e3e3e3;
display: flex;
height: 1300px;
justify-content: center;
}
@-webkit-keyframes scroll {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
-webkit-transform: translateX(calc(-250px * 7));
transform: translateX(calc(-250px * 7));
}
}
@keyframes scroll {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
-webkit-transform: translateX(calc(-250px * 7));
transform: translateX(calc(-250px * 7));
}
}
.slider {
background: pr;
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
height: 300px;
margin: auto;
overflow: hidden;
width: 960px;
position:absolute;
left:20px;
right :20px
}
.slider::before,
.slider::after {
content: "";
height:300px;
position: absolute;
width: 1000px;
z-index: 2;
}
.slider::after {
right: 0;
top: 0;
-webkit-transform: rotateZ(180deg);
transform: rotateZ(180deg);
}
.slider::before {
left: 0;
top: 0;
}
.slider .slide-track {
-webkit-animation: scroll 40s linear infinite;
animation: scroll 40s linear infinite;
display: flex;
width: calc(250px * 14);
}
.slider .slide {
height: 400px;
width: 1450px;
}
</style>
<div class="slider" class="trupi">
<div class="slide-track">
<div class="slide">
<img src="AJB.png" height="300" width="1400" alt="" />
</div>
<div class="slide">
<img src="slogan.png" height="300" width="1400" alt="" />
</div>
<div class="slide">
<img src="ulje.png" height="300" width="1400" alt="" />
</div>
<div class="slide">
<img src="ulje.png" height="300" width="1400" alt="" />
</div>
<div class="slide">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/6.png" height="300" width="250" alt="" />
</div>
</div>
</div>
</div></div>
</body>