Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Pulsing Button/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
A simple CSS-only pulsing button effect created without using JavaScript.
The button expands and fades out smoothly to give a glowing pulse animation.
14 changes: 14 additions & 0 deletions Pulsing Button/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pulsing Button</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<button class="pulse-btn">Pulsing Button</button>
</div>
</body>
</html>
39 changes: 39 additions & 0 deletions Pulsing Button/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #323439; /* dark navy bg */
font-family: "Poppins", sans-serif;
}

.pulse-btn {
background: rgba(197, 250, 159, 0.7); /* pink-red */
color: white;
border: none;
border-radius: 50px;
padding: 16px 40px;
font-size: 1.2rem;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
box-shadow: 0 0 0 0 rgba(197, 250, 159, 0.7);
animation: pulse 1.5s infinite;
transition: transform 0.2s ease-in-out;
}

.pulse-btn:hover {
transform: scale(1.05);
}

@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(197, 250, 159, 0.7);
}
70% {
box-shadow: 0 0 0 20px rgba(225, 29, 72, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
}
}
3 changes: 3 additions & 0 deletions sliding_underline/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

A simple CSS-only navigation link animation.
When hovered, a smooth underline slides in from left to right — no JavaScript used.
17 changes: 17 additions & 0 deletions sliding_underline/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sliding Underline on Hover</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="nav">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Projects</a>
<a href="#">Contact</a>
</nav>
</body>
</html>
38 changes: 38 additions & 0 deletions sliding_underline/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
body {
background-color: #0f172a;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: "Poppins", sans-serif;
}

.nav {
display: flex;
gap: 2rem;
}

.nav a {
position: relative;
text-decoration: none;
color: #f1f5f9;
font-size: 1.2rem;
letter-spacing: 0.5px;
padding-bottom: 4px;
}

.nav a::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 0%;
height: 2px;
background-color: #38bdf8;
transition: width 0.3s ease;
}

.nav a:hover::after {
width: 100%;
}