Skip to content

Commit 785c02f

Browse files
author
Theheavenlyprogrammer333
authored
Add files via upload
1 parent fd3047e commit 785c02f

File tree

11 files changed

+1822
-0
lines changed

11 files changed

+1822
-0
lines changed

public/LearnDecoHoverEffect.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#p1:hover{
2+
background-color:#c1121f;
3+
}
4+
#p3:hover{
5+
background-color: #c2c5aa ;
6+
}
7+
#p4:hover{
8+
background-color: #ffd97d;
9+
}
10+
#p5:hover{
11+
background-color: #adff02;
12+
}
13+
#p6:hover{
14+
background-color: #76c893;
15+
}

public/animation.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
#gravi:hover{
4+
transform :scale(1.4);
5+
transition: 0.56s;
6+
}
7+
#electromagnetic:hover{
8+
transform :scale(1.4);
9+
transition: 0.56s;
10+
}
11+
.rotationalbutton:hover{
12+
transform :scale(1.4);
13+
transition: 0.56s;
14+
}
15+
.magnetism:hover{
16+
transform :scale(1.23);
17+
transition: 0.56s;
18+
}
19+
#system:hover{
20+
transform: scale(1.23);
21+
transition: 0.56s;
22+
}
23+
.kepler:hover{
24+
transform: scale(1.4);
25+
transition: 0.56s;
26+
}
27+
28+

public/contdeco.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#consec{
2+
display: flex;
3+
justify-content: center;
4+
}
5+
#sec{
6+
display: flex;
7+
justify-content: center;
8+
}
9+
#emailsec{
10+
display: flex;
11+
justify-content: center;
12+
font-size: xx-large;
13+
}

public/demodeco.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#container{
2+
display: flex;
3+
background-color: aquamarine;
4+
width: 90%;
5+
height: 500px;
6+
margin: 0 auto;
7+
border: 6px solid black;
8+
flex-direction: column;
9+
justify-content: center;
10+
flex-wrap: wrap;
11+
flex: start;
12+
13+
}
14+
#container div{
15+
width: 200px;
16+
height: 200px;
17+
}

public/imgdeco.css

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/* General image styling */
2+
#img {
3+
display: flex;
4+
justify-content: center;
5+
margin: 2rem auto;
6+
padding: 1rem;
7+
max-width: 100%;
8+
}
9+
10+
#img {
11+
width: 100%;
12+
max-width: 800px; /* Adjust as needed */
13+
height: auto;
14+
border-radius: 12px; /* Soft rounded corners */
15+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
16+
transition: transform 0.3s ease, box-shadow 0.3s ease;
17+
object-fit: cover; /* Ensures images maintain aspect ratio */
18+
border: 2px solid #ffffff; /* Optional: White border for contrast */
19+
}
20+
21+
/* Hover effect for interactivity */
22+
#img:hover {
23+
transform: scale(1.02); /* Slight zoom on hover */
24+
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
25+
}
26+
27+
/* Responsive adjustments */
28+
@media (max-width: 768px) {
29+
#img {
30+
max-width: 90%; /* Slightly smaller on mobile */
31+
border-radius: 8px;
32+
}
33+
}
34+
35+
#imgsec {
36+
width: 612px; /* Match your image width */
37+
height: 300px; /* Slightly taller than images for padding */
38+
overflow: hidden;
39+
position: relative;
40+
border: 5px solid #333;
41+
border-radius: 10px;
42+
box-shadow: 0 0 15px rgba(0,0,0,0.3);
43+
margin: 20px auto;
44+
}
45+
46+
.image-container {
47+
display: flex;
48+
transition: transform 0.5s ease;
49+
height: 100%;
50+
}
51+
52+
53+
.image-container img {
54+
min-width: 100%;
55+
height: 250px;
56+
object-fit:cover;
57+
}
58+
59+
.nav-button {
60+
position: absolute;
61+
top: 50%;
62+
transform: translateY(-50%);
63+
background: rgba(0,0,0,0.5);
64+
color: white;
65+
border: none;
66+
padding: 15px;
67+
cursor: pointer;
68+
font-size: 18px;
69+
z-index: 10;
70+
border-radius: 50%;
71+
}
72+
73+
#prev {
74+
left: 10px;
75+
}
76+
77+
78+
#next {
79+
right: 10px;
80+
}

0 commit comments

Comments
 (0)