简体   繁体   中英

CSS width transition using background-image

I've set up a website using a background-color, to expand the full width of the screen. This worked fine as a placeholder, but my original intent was to use a background image to slide in. I've looked up how to do this, and that it isn't supported by FireFox. This was >4 years ago and I can't find any new sources on this site or any other that this may have changed (4 years is a long time!). Is there an existing, supported method to do this now?

Here's the original question for reference. CSS3 background image transition

Thanks for answering!

Answered by Showdev in comments. He uses transitions to solve the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM