-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignmentNo.4.css
More file actions
54 lines (44 loc) · 1.1 KB
/
AssignmentNo.4.css
File metadata and controls
54 lines (44 loc) · 1.1 KB
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
/* Qs1. Add a 2s transition on box1 for width changes.
It should have 'ease-in' speed curve & 0.5s delay */
#box1 {
width: 100px;
height: 100px;
background: green;
transition: width 2s ease-in 0.5s;
}
#box1:hover {
width: 600px;
}
/* Qs2. Using transform, move box2 200px to the right &
200px down. Also rotate it 90deg.*/
#box2 {
width: 100px;
height: 100px;
background: red;
transform: translate(200px 200px) rotate(90deg);
}
/* Qs3. Using transform, skew box3 20deg along the x axis.*/
#box3 {
width: 100px;
height: 100px;
background: lightblue;
transform: skewX(20deg);
}
/* Qs4. Set a 2px horizontal & 2px vertical, green shadow
for box4, with a 5px blur radius.*/
#box4 {
width: 100px;
height: 100px;
background: lightgreen;
box-shadow: 2px 2px 5px green;
}
/* Qs5. Set Your picture or any picture as the background of the div
"myPic". Also, set transparency of this div to 50%. */
#myPic {
width: 220px;
height: 200px;
background: pink;
background-image: url(Sneha.jpg);
background-size: contain;
opacity: 50%;
}