-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider.css
51 lines (51 loc) · 1.14 KB
/
slider.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
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
#slider{
max-width: 600px;
max-height: 338px;
margin: 4px auto;
position: relative;
font-family: 'Open Sans', sans-serif;
}
#sliderimg1, #sliderimg2{
width: 100%;
height: 0;
padding-bottom: 56.25%;
border-radius: 4px;
background-color: seagreen;
background-repeat: no-repeat;
background-size: contain;
transition: 1s ease-in-out;
box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 4px;
}
#sliderimg1{
/* Slide 1 url */
background-image: url("/img/dummies/slides/1.webified.jpg");
}
#sliderimg2{
position: absolute;
top: 0;
left: 0;
/* Slide 2 url */
background-image: url("/img/dummies/slides/2.webified.jpg");
}
#slidertitle{
position: absolute;
bottom: 0;
left: 0;
right: 0;
text-align: left;
padding: 4px 8px;
background-color: rgba(0, 0, 0, 0.4);
color: white;
border-radius: 0 0 4px 4px;
}
#slidernum{
position: absolute;
bottom: 0;
right: 0;
padding: 4px 8px;
color: white;
}
#slidertitle, #slidernum{
margin: 0
}