|
-
webkit transitions
I have a <div id="pic"> in which I change the background image using this JavaScript:
document.getElementById('pic').style.backgroundImage = url(newpic.jpg);
I am trying to figure out if I can use CSS webkit transitions to easily fade one image into another.
I was thinking I just needed some CSS like . . .
#pic { -webkit-transition: all 1s ease-in-out; }
But no luck.
-
After further research, it does not look like you can use webkit transitions with a background image. Too bad.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks