Skip to content

Commit 0900b27

Browse files
Update index.css
1 parent b052c09 commit 0900b27

File tree

1 file changed

+46
-27
lines changed

1 file changed

+46
-27
lines changed

index.css

Lines changed: 46 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,50 @@
11
body {
2-
background-color: #002266;
3-
color: white;
4-
}
5-
h1, h2{
6-
font-family: 'Rubik', sans-serif;
7-
}
8-
.sp {
9-
font-family: 'Oswald', sans-serif;
10-
margin: 14px;
11-
border-left: 6px solid #1ac9ff;
12-
background-color: #cecece;
13-
color: black;
14-
}
15-
div {
16-
width: 100px;
17-
height: 100px;
18-
background-color: red;
19-
transition: width 2s, height 2s, transform 2s;
20-
}
21-
div:hover {
22-
width: 300px;
23-
height: 300px;
24-
transform: rotate(180deg);
2+
background-color: #002266;
3+
color: white;
254
}
5+
6+
h1,
7+
h2 {
8+
font-family: 'Rubik', sans-serif;
9+
}
10+
2611
p {
27-
font-family: 'Oswald', sans-serif;
28-
border: none;
29-
margin: 8px;
30-
color: white;
12+
font-family: 'Oswald', sans-serif;
13+
margin: 10px;
14+
border-left: 6px solid #1ac9ff;
15+
background-color: #cecece;
16+
color: black;
17+
}
18+
19+
.divp{
20+
width: 200px;
21+
height: 200px;
22+
background-color: red;
23+
transition: width 2s, height 2s, transform 2s;
24+
}
25+
26+
#divp1:hover {
27+
width: 500px;
28+
height: 500px;
29+
transform: rotate(180deg);
30+
}
31+
.main {
32+
display: inline-flex;
33+
}
34+
35+
.box {
36+
font-size: 17px;
37+
color: white;
38+
font-family: 'Oswald', sans-serif;
39+
border: none;
40+
margin: 8px;
41+
}
42+
43+
#box1::after {
44+
content: "Hello! This is a moving div!";
45+
display: flex;
46+
transform: rotateX(180deg);
47+
background-image: linear-gradient(180deg, rgba(255, 255, 255, .0) 10%, rgba(255, 255, 255, .5));
48+
-webkit-background-clip: text;
49+
color: white;
3150
}

0 commit comments

Comments
 (0)