Hello team! I’ve stumbled across an issue that I can’t seem to wrap my head around.
Due to how the site will be set up in WordPress, I need to use inline styles to set the backgrounds of a couple divs (they will be set by using the post_thumbnail function). When you hover over these divs, the background is supposed to shift slightly using the wonderful new ‘transition’ element.
Here’s the rub: the inline styles do not want to be modified! I’m new to this transition stuff, so I’ve probably just missed something.
The top div is using a background set in the stylesheet and works as intended on hover. The second div’s background does not shift when you hover over it, this is the div that is having its background set by inline style.
@TheDoc – Oddly, I didn’t think it was going to work at first. When it did, I tried searching to see why transitions do not work on shorthand inline styling with no luck. Perhaps I wasn’t looking that hard.
I just wanted to reply to inform anyone who stumbled on the thread and also wondered why it didn’t work.
Also, thanks for the clarification on it being a Chrome specific example. I was googling some Firefox things and had been under the impression this issue was also strictly Firefox. Perhaps I probably should have paid more attention to the code.
In any event, I appreciate your wicked fast response. :)
Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".