Skip to content

Commit 0a87281

Browse files
committed
shadow and transitions
1 parent f28582e commit 0a87281

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

Lecture04/shadows/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
<body>
11+
<div>
12+
Hello
13+
</div>
14+
</body>
15+
</html>

Lecture04/shadows/style.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
div {
2+
/* border: 1px solid black; */
3+
background-color: aqua;
4+
height: 200px;
5+
width: 200px;
6+
box-shadow: 6px 5px 10px black;
7+
}

Lecture04/transitions/index.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
<body>
11+
<div id="div1">Learning Transitions</div>
12+
<div id="div2">Learning Transitions</div>
13+
<div id="div3">Learning Transitions</div>
14+
<div id="div4">Learning Transitions</div>
15+
</body>
16+
</html>

Lecture04/transitions/style.css

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
div {
2+
height: 100px;
3+
width: 200px;
4+
margin: 200px;
5+
background-color: aquamarine;
6+
}
7+
8+
#div1:active {
9+
transform: scale(3);
10+
border: 2px solid black;
11+
transition: transform 5s, border 1s;
12+
}
13+
14+
#div2:hover {
15+
width: 400px;
16+
transition: width 1s;
17+
}

0 commit comments

Comments
 (0)