-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslide.css
More file actions
42 lines (42 loc) · 818 Bytes
/
slide.css
File metadata and controls
42 lines (42 loc) · 818 Bytes
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
body{margin:0px;
padding:0px;
background: #000113;
font-family: arial;
}
.container{position:absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
height:300px;
width:400px;
background: #FFF;
overflow:hidden;
}
img{width:100%;}
.imagebox{width:100%;
height:100%;
position: absolute;
top:0;}
img{width:100%;}
.content{width:50%;
height:100%;
position: absolute;
top:0;
background: #1d304c;
padding:40px 20px;
box-sizing: border-box;
transform-origin: left;
transition: .5s;
transform: rotateY(90deg);
}
h1{margin:10px 0px;
padding:0px;
color: #FFF;
font-size: 24px;
}
p{margin: 0;
padding: 0;
color: #fff;
}
.container:hover .content{transform: perspective(600px) rotateY(0deg);}
.container:hover .imagebox{transform: perspective(600px)translate(50%);}