| Link Style | Description | Example |
|---|---|---|
| Basic Link | A simple link with hover effect | Basic Link |
| Underline Link | A link with animated underline effect | Underline Link |
| Subtle Link | A subtle link with dotted underline | Subtle Link |
| Gradient Link | A link with gradient text color | Gradient Link |
| Highlight Link | A blinking link with underline on hover | Highlight Link |
| Outline Link | A link with animated outline effect | Outline Link |
| Icon Link | A link with an icon and animation | Icon Link |
1. Basic Link
CSS:
.link-basic {
color: #3498db;
text-decoration: none;
transition: color 0.3s ease;
font-size: 18px;
}
.link-basic:hover {
color: #2980b9;
text-decoration: underline;
}
2. Underline Link
CSS:
.link-underline {
color: #e74c3c;
text-decoration: none;
position: relative;
font-size: 18px;
}
.link-underline::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: #e74c3c;
visibility: hidden;
transform: scaleX(0);
transition: all 0.3s ease-in-out;
}
.link-underline:hover::after {
visibility: visible;
transform: scaleX(1);
}
3. Subtle Link
CSS:
.link-subtle {
color: #7f8c8d;
text-decoration: none;
border-bottom: 1px dotted #7f8c8d;
transition: all 0.3s ease;
font-size: 18px;
}
.link-subtle:hover {
color: #2c3e50;
border-bottom: 1px solid #2c3e50;
}
4. Gradient Link
CSS:
.link-gradient {
background-image: linear-gradient(to right, #f1c40f, #e67e22);
-webkit-background-clip: text;
color: transparent;
text-decoration: none;
transition: background-image 0.3s ease;
font-size: 18px;
}
.link-gradient:hover {
background-image: linear-gradient(to right, #e67e22, #f1c40f);
}
5. Highlight Link
CSS:
.link-highlight {
color: #2c3e50;
text-decoration: none;
position: relative;
animation: blink 1s infinite;
font-size: 18px;
}
.link-highlight:hover {
text-decoration: underline;
}
@keyframes blink {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
6. Outline Link
CSS:
.link-outline {
color: #9b59b6;
text-decoration: none;
padding: 5px 10px;
position: relative;
transition: all 0.3s ease;
font-size: 18px;
}
.link-outline::before,
.link-outline::after {
content: '';
position: absolute;
width: 0;
height: 0;
opacity: 0;
transition: all 0.3s ease;
}
.link-outline::before {
top: 0;
left: 0;
border-top: 2px solid #9b59b6;
border-left: 2px solid #9b59b6;
}
.link-outline::after {
bottom: 0;
right: 0;
border-bottom: 2px solid #9b59b6;
border-right: 2px solid #9b59b6;
}
.link-outline:hover {
color: #8e44ad;
}
.link-outline:hover::before,
.link-outline:hover::after {
width: 100%;
height: 100%;
opacity: 1;
}
7. Icon Link
CSS:
.link-icon {
color: #34495e;
text-decoration: none;
display: inline-flex;
align-items: center;
transition: color 0.3s ease;
font-size: 18px;
}
.link-icon::before {
content: '➜';
margin-right: 5px;
transition: transform 0.3s ease;
}
.link-icon:hover {
color: #2c3e50;
}
.link-icon:hover::before {
transform: translateX(5px);
}
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!