-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
29 lines (25 loc) · 751 Bytes
/
main.css
File metadata and controls
29 lines (25 loc) · 751 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
/*Put your custom CSS here.
You may find these CSS3 properties useful:;
transition
-webkit-transform
-webkit-transform-style
-webkit-backface-visibility
*/
.front {
position: absolute; /*position doesn't change?*/
transition:1s; /*when you stop hovering, you want a smooth transition back*/
}
.back {
position: relative; /*relative positioning needs specification, so here it is at 0, so it will go on top on front*/
-webkit-transform:rotateY(-180deg); /*start with the backface showing*/
-webkit-backface-visibility:hidden; /*backface is hidden*/
transition:1s;
}
.portfolio-item:hover .front{
transition:1s;
-webkit-transform:rotateY(180deg);
}
.portfolio-item:hover .back{
transition:1s;
-webkit-transform:rotateY(0deg);
}