one image overlay to have multiple colours depending on the categories of post
-
I am currently showing the featured image of my post on the main blog. I have a coloured overlay when rolling over/hovering the image, that changes according to the category the post is in. Currently I am doing that by using a transparent image as background url() in my CSS.
What I would like to do is for the colour rollover to show all different colours in stripes if a post is in multiple categories. For example if my categories and colours are the following…
Print Work -> Green
Web -> Red
Moving Image -> Purple…and I have a post that goes into ‘Print work’ and ‘Web’ the hover state should be half green and half red over the image. If a post is in all three categories the hover state should be in 3 colours (like 3 stripes of green, red and purple next to each other).
I haven’t found any clue on whether that’s possible in my searches and don’t quite know where to start. Is this achievable at all and if so with using CSS only or Jquery?
A starting point or some help would be great.
Thanks.
- The topic ‘one image overlay to have multiple colours depending on the categories of post’ is closed to new replies.