-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtry.html
114 lines (103 loc) · 3.62 KB
/
try.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style>
body{
padding: 0;
margin: 0;
background-color: floralwhite;
}
h1{
margin-top: 50px;
margin-left: 510px;
font-size: 60px;
font-family: 'Karla', sans-serif;
font-weight: lighter;
}
.slider-frame{
overflow: hidden;
height: 400px; /* Adjusted height */
width: 600px; /* Adjusted width */
margin-left: 180px; /* Adjusted margin */
margin-top: 20px;
position: relative; /* Added position */
}
/*---------- SLIDE ANIMATION --------------*/
@keyframes slide_animation{
0% {left:0px;}
10% {left:0px;}
20% {left:600px;} /* Adjusted left value */
30% {left:600px;}
40% {left: 1200px;} /* Adjusted left value */
50% {left: 1200px;}
60% {left: 1800px;} /* Adjusted left value */
70% {left: 1800px;}
80% {left: 2400px;} /* Adjusted left value */
90% {left: 2400px;}
100% {left:0px;}
}
@-webkit-keyframes slide_animation{
0% {left:0px;}
10% {left:0px;}
20% {left:600px;} /* Adjusted left value */
30% {left:600px;}
40% {left: 1200px;} /* Adjusted left value */
50% {left: 1200px;}
60% {left: 1800px;} /* Adjusted left value */
70% {left: 1800px;}
80% {left: 2400px;} /* Adjusted left value */
90% {left: 2400px;}
100% {left:0px;}
}
.slide-images{
width: 3600px; /* Adjusted width */
height: 400px; /* Adjusted height */
margin: 0 0 0 -1200px; /* Adjusted margin */
position: relative;
-webkit-animation-name: slide_animation;
animation-name: slide_animation;
-webkit-animation-duration: 36s; /* Adjusted duration */
animation-duration: 36s; /* Adjusted duration */
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
animation-direction: alternate;
-webkit-animation-play-state: running;
animation-play-state: running;
}
.img-container{
height: 400px; /* Adjusted height */
width: 600px; /* Adjusted width */
position: relative;
float: left;
overflow: hidden; /* Ensures images don't overflow their container */
border-radius: 20px; /* Added border radius for a stylish shape */
margin-right: 20px; /* Added margin to separate images */
}
.img-container img {
width: 100%;
height: 100%;
object-fit: cover; /* Ensures images cover the entire container */
}
</style>
</head>
<body>
<div class="slider-frame">
<div class="slider-html"></div>
<div class="slide-images">
<div class="img-container">
<img src="image1.jpeg">
</div>
<div class="img-container">
<img src="image2.jpg">
</div>
<div class="img-container">
<img src="image3.jpg">
</div>
</div>
</div>
</body>
</html>