Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8840957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:35:27+00:00 2026-06-14T10:35:27+00:00

I am trying to make a background image smoothly fade in when the class

  • 0

I am trying to make a background image smoothly fade in when the class is added and fade out when the class is removed (to a div).

My current CSS (tested in Firefox only)

background : url("/PmDojo/dojox/widget/Standby/images/loading.gif");
-moz-transition : background 0.5s ease-in-out;
background-repeat: no-repeat;
background-position: 65px center;
background-size: "contain";

But what that does is show the image fade in and move to the center from the left. I want it to already be in position when the fading in happens. How?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:35:29+00:00Added an answer on June 14, 2026 at 10:35 am

    Hard to tell without seeing your class and javascript but, from my experience with css3 transitions and animations – all of the elements in the class with the transition/animation on it are taken into effect. So you will want to have two classes to seperate the static css properties from the animating ones. Put these properties on another class for that div which is always present:
    -moz-transition : background 0.5s ease-in-out;
    background-repeat: no-repeat;
    background-position: 65px center;
    background-size: “contain”;

    Then just toggle the class which has the animation properties:
    background : url(“/PmDojo/dojox/widget/Standby/images/loading.gif”);

    So when you change the class you have say “defaultClass” class to start and then change it to “default animationClass” for toggling the animation/transition. Hope that helps?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to fade an background image back and forth to make it
I am trying to make the background image I have in CSS turn into
im trying to make an html element have a background image using css, but
I'm trying to figure out how to make a background image scroll slower than
I am trying to make my background image move in the opposite direction as
I have this background image that is 175x175 but I am trying to make
I am trying to make an input form have a background image, but as
I'm trying to make a button for my form which has an image background
I'm trying to make a css background flash between two colours. The best solution
I'm trying to make changing background image by menu item. It's works now but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.