-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoldstyle.css
More file actions
102 lines (90 loc) · 1.86 KB
/
Copy pathfoldstyle.css
File metadata and controls
102 lines (90 loc) · 1.86 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
100
101
102
/* Static state */
#container {
width: 636px;
height: 600px;
position: relative;
margin: 0 auto;
}
.background {
margin-top: 5%;
width: 100%;
height: 100%;
background-size: 100% 75%;
background-position: 50% 50%;
background-image: url('invitation-front-middle.png');
background-repeat: no-repeat;
}
.left1 {
/* left side animation container */
width: 50%;
height: 100%;
float: left;
overflow: hidden;
perspective: 1000px;
}
.right1 {
/* right side animation container */
margin-left: 25%;
width: 50%;
height: 100%;
overflow: hidden;
perspective: 1000px;
}
.left2 {
margin-top: 23.7%;
margin-left: 50%;
height: 75%;
width: 25%;
transition-property: transform;
transition-duration: 2s;
transform: rotateY(0deg);
transform-origin: left;
transform-style: preserve-3d;
}
.right2 {
margin-top: 23.7%;
height: 75%;
width: 25%;
transition-property: transform;
transition-duration: 2s;
transform: rotateY(0deg);
transform-origin: 200%;
transform-style: preserve-3d;
}
.left3,
.backleft3 {
/* animated, "folded" block */
position: absolute;
height: 100%;
width: 200%;
background-image: url('invitation-back-m.png');
background-size: 100% 100%;
backface-visibility: hidden;
background-repeat: no-repeat;
}
.backleft3 {
background-image: url('invitation-front-left.png');
transform: rotateY(180deg);
}
#container:hover .left2 {
transform: rotateY(-180deg);
height: 75%;
}
.right3,
.backright3 {
/* animated, "folded" block */
position: absolute;
height: 100%;
width: 200%;
background-image: url('invitation-back-j.png');
background-size: 99.85% 100%;
background-repeat: no-repeat;
}
.backright3 {
background-image: url('invitation-front-right.png');
transform: rotateY(180deg);
}
#container:hover .right2 {
transform: rotateY(180deg);
height: 75%;
}