www.webdeveloper.com
Results 1 to 2 of 2

Thread: webkit transitions

  1. #1
    Join Date
    Nov 2002
    Posts
    421

    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.

  2. #2
    Join Date
    Nov 2002
    Posts
    421
    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
  •  
HTML5 Development Center



Recent Articles