Skip to content

Commit 01b7ab6

Browse files
author
codeblogger
committed
html and css(sass)
1 parent 5f93299 commit 01b7ab6

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>page</title>
6+
<link rel="stylesheet" type="text/css" href="3D Hover Effect - Alita Card.css">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
9+
</head>
10+
<body>
11+
12+
<div class="image">
13+
<div class="text">
14+
<h2>Alita: Battle Angel</h2>
15+
<p>
16+
The movie has a February 14, 2019 release date directed
17+
by Robert Rodriguez, produced by James Cameron, starring
18+
Rosa Salazar as Alita, Eiza González as Nyssiana, Michelle
19+
Rodriguez as Gelda, Jennifer Connelly as Chiren, with
20+
Christoph Waltz as Dr. Dyson Ido, Jeff Fahey as McTeague,
21+
Ed Skrein as Zapan, Mahershala Ali as Vector, Casper Van
22+
Dien as Amok, Lana Condor as Koyomi and Jackie Earle Haley.
23+
</p>
24+
</div>
25+
<div class="box"></div>
26+
</div>
27+
28+
29+
</body>
30+
</html>
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
@import url('https://fonts.googleapis.com/css?family=Ubuntu');
2+
html{height: 100%;}
3+
body{
4+
padding:0;
5+
margin: 0;
6+
background: linear-gradient(#262626,#b2ad7f );
7+
font-family: 'Ubuntu', sans-serif;
8+
9+
.image{
10+
width: 500px;
11+
height: 280px;
12+
margin: 150px auto;
13+
perspective: 1000px;
14+
15+
.box{
16+
display: block;
17+
width: 100%;
18+
height: 100%;
19+
background:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("https://images5.alphacoders.com/984/984310.jpg");
20+
background-size: 0,cover;
21+
transform-style: preserve-3d;
22+
transition: all 0.5s;
23+
24+
&:hover{
25+
transform: rotateX(80deg);
26+
transform-origin: bottom;
27+
}
28+
29+
&:after{
30+
content: "";
31+
position: absolute;
32+
left: 0;
33+
bottom: 0;
34+
width: 100%;
35+
height: 36px;
36+
background: inherit;
37+
background-size: cover, cover;
38+
background-position: bottom;
39+
transform: rotateX(90deg);
40+
transform-origin: bottom
41+
}
42+
43+
&:before{
44+
content: "";
45+
position: absolute;
46+
top: 0;
47+
left: 0;
48+
width: 100%;
49+
height: 100%;
50+
background: rgba(0, 0, 0, 0.5);
51+
box-shadow: 0px 0px 100px 50px rgba(0,0,0,.5);
52+
transition: all .5s;
53+
opacity: .15;
54+
transform: rotateX(95deg) translateZ(-80px) scale(0.75);
55+
transform-origin: bottom;
56+
57+
}
58+
59+
&:hover:before{
60+
opacity: 1;
61+
box-shadow: 0px 0px 25px 25px rgba(0,0,0,.5);
62+
transform: rotateX(0) translateZ(-60px) scale(.85);
63+
}
64+
}
65+
66+
.text{
67+
position: absolute;
68+
width: 90%;
69+
height: 100%;
70+
top: 50%;
71+
left: 50%;
72+
73+
transform: translate(-50%,-50%);
74+
text-align: center;
75+
color: #eee;
76+
h2{
77+
color: #262626;
78+
text-decoration: underline;
79+
}
80+
}
81+
82+
}
83+
}

0 commit comments

Comments
 (0)