-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
95 lines (72 loc) · 1.75 KB
/
style.css
File metadata and controls
95 lines (72 loc) · 1.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.box{
border: 1px solid black;
border-radius: 10px;
padding: 10px;
margin-top: 20px;
}
.flex-box{
display :flex;
gap: 10px;
flex-direction:row;
margin-top: 20px;
background-color: rgb(27, 109, 134);
}
.box2{
border: 1px solid black;
border-radius: 10px;
padding: 10px;
height: 200px;
}
.box3{
width: 200;
height: 300;
}
.background_colour{
background-color: aqua;
}
.box4{
border: 1px solid black;
border-radius: 10px;
padding: 10px;
margin-top: 20px;
gap: 10px ;
background-color: rgb(27, 109, 134);
width: 500;
height: 400;
align-items: center;
}
.hover_effect:hover{
transform: scale(1); /* Scale the box on hover */
transition: transform 0.5s; /* Smooth scaling effect */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
background-color: rgb(120, 73, 229); /* Change background color on hover */
color: rgb(7, 8, 8); /* Change text color on hover */
font-weight: bold; /* Make text bold on hover */;
}
.hover_effect2:hover{
transform: scale(1.2); /* Scale the box on hover */
transition: transform 0.3s; /* Smooth scaling effect */
font-weight: bold; /* Make text bold on hover */
text-decoration: underline; /* Underline text on hover */
}
.border{
border: 1px solid black;
border-radius: 10px;
padding: 10px ;
background-color: rgb(27, 109, 134);
overflow: visible; /* Allow content to overflow */
}
.animation{
animation-duration: 1.5s;
animation-name : example
}
@keyframes example {
from {
translate: 150vw 0; /* Start from the right */
scale:200% 1;
}
to{
translate: 0 0; /* End at the original position */
scale:100% 1; /* Scale back to original size */
}
}