forked from wesbos/JavaScript30
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
99 lines (85 loc) · 1.46 KB
/
style.css
File metadata and controls
99 lines (85 loc) · 1.46 KB
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
html, body {
padding: 0;
margin: 0;
box-sizing: border-box;
}
main {
background-color: #eee;
height: 850px;
padding: 40px;
}
h1 {
margin: 0;
text-align: center;
font-family: arial;
text-shadow: 1px 0px 5px gray;
}
.card_carousel_container {
position: relative;
height: 450px;
margin: 40px;
}
.card {
width: 300px;
height: auto;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0, 0, 0, 0);
z-index: 0;
transform: scale(1);
}
.card_pagination {
display: grid;
grid-template-columns: repeat(4, 50px);
grid-auto-rows: auto;
grid-gap: 1em;
padding: 20px;
grid-column: 4;
grid-row: 4;
}
.card.active {
z-index: 1;
transform: scale(1.25);
transition-duration: 200ms;
transition-timing-function: cubic-bezier(.17, .67, .92, .3);
}
.card_container {
position: relative;
height: 450px;
margin: 40px;
display: grid;
grid-template-columns: repeat(8, 80px) 20%;
grid-template-rows: 20% auto 200px;
}
.card.one {
grid-column: 3;
grid-row: 2;
transform: rotate(-12deg);
}
.card.two {
grid-column: 3;
grid-row: 2;
transform: rotate(12deg);
}
.card.three {
grid-column: 4;
grid-row: 2;
transform: rotate(-3deg);
}
.card.four {
grid-column: 2;
grid-row: 2;
transform: rotate(3deg);
}
.page {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: black;
}
.page:hover {
cursor: pointer;
}
.page.active {
background-color: red;
transition: 300ms ease;
}