-
Notifications
You must be signed in to change notification settings - Fork 10
/
image_with_textFlip.css
70 lines (64 loc) · 1.14 KB
/
image_with_textFlip.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@charset "utf-8";
/* CSS Document */
.main{
width:50%;
height:460px;
margin:60px auto;
position:relative;
perspective:2500px;
overflow:hidden;
}
.image{
width:100%;
height:100%;
position:absolute;
transition:all ease-in-out 0.8s;
}
.image img{
width:inherit;
height:inherit;
}
.info{
width:50%;
height:50%;
position:absolute;
transition:all ease-in-out 0.8s;
margin-top:110px;
margin-left:150px;
transform:rotateY(-180deg);
backface-visibility:hidden;
overflow:hidden;
transform-style:preserve-3d;
}
.info p{
border:#000 double 8px;
font-size:15px;
text-align:center;
margin:10px 50px 0px 50px;
}
.main:hover{
border-radius:55em 0px / 15% 0px;
transition:all ease-in-out 0.8s;
}
.main:not(:hover){
border-radius:none;
transition:all ease-in-out 0.8s;
}
.main:hover img{
transform:scale(2);
transition:all ease-in-out 0.8s;
filter:blur(5px);
border-radius:55em 0px / 15% 0px;
}
.main:not(:hover) img{
transition:all ease-in-out 0.8s;
filter:blur(0px);
border-radius:0px;
}
.main:hover .info{
transition:all ease-in-out 0.8s;
transform:rotateY(0deg);
}
.main:not(:hover) .info{
transition:all ease-in-out 0.8s;
}