Read the statement by Michael Teeuw here.
Add fade to transparent background on module.
-
@jamaces easy peasy…here’s an example:
.MMM-YahooWeather .fade { -webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 100%); mask-image: linear-gradient(to bottom, black 10%, transparent 100%); height: 120px; }
The magic is in the fade… gives you this effect: [see bottom of 4 days forecast]
-
@cowboysdude said in Add fade to transparent background on module.:
easy peasy…here’s an example:
Easy for a genius like you. :thumbsup:
-
@mykle1 … when you pray to the CSS gods, you’re praying to @cowboysdude 🤣🤣🤣
-
@bkeyport said in Add fade to transparent background on module.:
@mykle1 … when you pray to the CSS gods, you’re praying to @cowboysdude 🤣🤣🤣
Welllllllllllllllllllllllll CSS and I have a complicated relationship LOL
-
@bkeyport said in Add fade to transparent background on module.:
when you pray to the CSS gods, you’re praying to @cowboysdude
Oh hell no! :-)
-
@bkeyport Thank you! I realized after I made the post it is called gradient.
For future knowledge
change background-color to background-image and add linear-gradient with another RGBA value.
Thank you for your help.
Is there a way to have CSS go gradient to the left and to the right?
I have the news module at the bottom and I really just want it to be dark in the centre where the headlines are.
I have tried to right and to left, I have tried radial and nothing seems to work.