CSS Text Dengan Gradient
- Last modified atParagraf dengan menggunakan gradient berguna ketika panjang suatu konten tidak bisa terprediksi, tetapi box atau container memiliki tinggi yang tetap / fixed. Tujuan gradient membuat tampilan tetap terlihat elegan walaupun terdapat overflow.
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="fade"></div>
</div>
.content {
width: 250px;
height: 200px;
background: #ddd;
overflow: hidden;
}
.fade {
background: linear-gradient(rgba(255, 255, 255, 0) 0%, #fff 100%);
bottom: 175px;
height: 175px;
position: relative;
}
See the Pen Gradient Text by Kunto Aji. K (@kuntoaji) on CodePen.
Recent Posts
AWS Secrets Manager
Explanation about AWS Secrets Manager with example code.
Envelope Encryption
Envelope encryption is the practice of encrypting plaintext data with a data key, and then encrypting the data key under another key.
Tutorial - "su username vs su - username" - A Security Perspective
The main difference between `su username` and `su - username` lies in the environment variables that are loaded when switching to the specified user.
Subdomain Hijacking
My dormant subdomain was recently hijacked, redirecting it to a online gamble registration page.
C# DbContext ServiceLifeTime
my note about C Sharp ServiceLifeTime