Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2008
    Posts
    95
    Thanks
    20
    Thanked 0 Times in 0 Posts

    Image dissolve through CSS

    I am using this code to have a background inside a layer

    Code:
    #rt-header .rt-container {background: #fff url(../images/backgrounds/style5/header-bg.jpg) 100% -30px no-repeat;}
    I want to have multiple images dissolve in and out of each other in place of the background. Is it possible through CSS or will I have to use flash? And what will be the best way to incorporate it in that css if I have to resort to flash?

    Thanks.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello ksduded,
    CSS can't do any sort of fade in or tranistion and it doesn't allow for multiple image backgrounds.
    If you have an animated .gif that did what you want, you could try that. Not sure how many browsers that would work in.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Apr 2008
    Posts
    95
    Thanks
    20
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Hello ksduded,
    CSS can't do any sort of fade in or tranistion and it doesn't allow for multiple image backgrounds.
    If you have an animated .gif that did what you want, you could try that. Not sure how many browsers that would work in.
    thanks for the suggestion... is it possible to use an swf instead by changing that css line?

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    .swf cannot be a background so no. You would need to use swfobject probably.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    ksduded (01-07-2010)

  • #5
    Regular Coder hdewantara's Avatar
    Join Date
    Aug 2009
    Location
    Jakarta, Indonesia.
    Posts
    361
    Thanks
    9
    Thanked 53 Times in 52 Posts
    Hi,
    You might like to try javascripting...

    Regards,


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •