How to add color gradients in HTML text?

.gradient-text { background: linear-gradient(to bottom right,#f27990, #332b75); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Live Example

January 15, 2019 · 1 min · Harshvardhan Malpani

This is what CSS can do.

Are you ready for the magic? I am saying this because I believe that coding is closest to a superpower that we have. And the best part is that anyone can achieve this superpower. Here we are going to see how a single HTML file can look entirely different with just the change in CSS file. Mind that no front-end-framework has been used in the upcoming designs, it is just the beauty of pure CSS. ...

October 19, 2018 · 2 min · Harshvardhan Malpani

Light flick effect on image hover – CSS

.collection-grid-item__link:before{ -ms-transition:all 0.5s ease-in-out; -webkit-transition:all 0.5s ease-in-out; transition:all 0.5s ease-in-out; content:""; position:absolute; top:-110%; left:-210%; width:200%; height:200%; opacity:0; filter:alpha(opacity=0); -webkit-transform:rotate(30deg); -ms-transform:rotate(30deg); -moz-transform:rotate(30deg); -o-transform:rotate(30deg); transform: rotate(44deg); background:rgba(255,255,255,0.1); background:linear-gradient(to right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 77%, rgba(255,255,255,0.5) 92%, rgba(255,255,255,0) 100%); }

July 19, 2018 · 1 min · Harshvardhan Malpani