Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
@link2twenty
As I read your "why's it hacky" explanation, my thoughts were:
Nah, that's not hacky, that's brilliant.
Still not hacky.
Still loving it.
Grayscale? Such a cool idea.
And contrast to finish. Perfect. Why is any of this hacky?
"But it doesn't know where the text is over the image, so it gets the colours from the top left corner." -- Ahhhhh.... and that's where the hack hits the fan.
So close!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There are hacky CSS ways to do this, though I'd never suggest using them.
I'm really not familiar with CSS, what exactly is hacky about it?
It's these 3 lines that I don't like.
What we're doing is
But it doesn't know where the text is over the image, so it gets the colours from the top left corner.
There is a slightly less hacky option in the works but, currently, it doesn't work with
background-clip
. It's calledbackground-filter
webdesign.tutsplus.com/tutorials/c...
That’s cool
@link2twenty As I read your "why's it hacky" explanation, my thoughts were:
Nah, that's not hacky, that's brilliant.
Still not hacky.
Still loving it.
Grayscale? Such a cool idea.
And contrast to finish. Perfect. Why is any of this hacky?
"But it doesn't know where the text is over the image, so it gets the colours from the top left corner." -- Ahhhhh.... and that's where the hack hits the fan.
So close!