The animation is not functioning properly in Firefox

I am facing an issue with the animations on my webpage. The first animation seems to be working fine in Firefox, but the last one is not working at all. Can someone help me identify what might be causing this problem? Is there something that I have overlooked?

http://jsfiddle.net/s6n4sc0s/

CSS:

#container {
    width:300px;
    height: 250px;
    /*overflow:hidden;*/
}
#image{
    display: block;
    width: 300px;
    height: 250px;
    float:left;
    position: relative;
}
h1{
    color: #aaba38;
    font-size: 26px;
    font-weight: bold;  
}
#title{
    position: relative;
    -webkit-animation: mailigen 20s infinite; /* Chrome, Safari, Opera */ 
    animation: mailigen 20s infinite;   
}
#slide{
    float:left; position: relative; width:200px; text-align:right;
    position: relative;
    -webkit-animation: mymove 20s infinite; /* Chrome, Safari, Opera */ 
     -moz-animation: mymove 20s infinite;
       -o-animation: mymove 20s infinite;
            animation: mymove 20s infinite;

}
#slide2{
    position: relative;
    -webkit-animation: mymove2 20s infinite; /* Chrome, Safari, Opera */ 
     -moz-animation: mymove2 20s infinite;
       -o-animation: mymove2 20s infinite;
            animation: mymove2 20s infinite;    

}

...

.circle3 span {
    color: #ffffff;
    font-family: Arial;
    font-size: 23px;
    left: 40px;
    position: relative;
    font-weight: bold;
    text-transform: uppercase;
    top: 37px;
    text-align: center ;
}

Answer №1

The answer is to set the values to 0% and 100% for all browsers except Chrome.

@-moz-keyframes circle2 {
        0%   {right: 0px;}
        40%   {right: 0px;}
        45%   {right: 0px;}
        50%  {right: 260px;}
        60%  {right: 0px;}
        100% {right: 0px;}
     }

Answer №2

Your circle animations are missing the @-moz-keyframes declaration. Include the following code snippet at the end of each animation in your CSS:

 @-moz-keyframes circle2 {
        40%   {right: 0px;}
        45%   {right: 0px;}
        50%  {right: 260px;}
        60%  {right: 0px;}
        100% {right: 0px;}
     }

If you need more information, check out this answer for additional details on why -moz-animation may not be working:

Why isn't -moz-animation working?

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Examining website design on an IOS device from a Windows computer

Is there a way for me to test HTML files from Windows on iOS8 (Local Files)? I have tried Adobe Edge Inspect, but it only works with servers. Are there any free cloud hosts that allow for HTML, CSS, and JS files? Edit: I apologize if my question was not c ...

Finding the optimal image prediction from HTML using Google JSoup - A guide

Our goal is to accurately identify the best guess for an image based on the HTML content of the search results page returned by Google. Among the various classes present, we know that the best guess is associated with the class qb-b. To target this specifi ...

PHP MySQL outputting data in a dropdown menu format

Struggling to extract data from a database and display it as a dropdown list. I am fetching the foreign key, its unique code, and its name/title to be displayed in a dropdown list for input into a new table. $sql = "SELECT quali_code, title FROM ...

Issue with Sass @use failing to load partial

I'm currently facing an issue while trying to import a sass partial called _variables.scss into my main stylesheet named global.scss. Every time I compile the sass code, I encounter the following error message: Error: Undefined variable. Here is the ...

There was an issue retrieving the value from the $.ajax() error function, as it returned [

After successfully receiving data from the input field and sending it to the database, everything seems to be working fine. However, when attempting to retrieve the data after sending it to the database, an error is encountered: [object HTMLInputElement]. ...

Create an element that spans the entire width of the page

Having trouble adjusting the width of the .navbar? It seems to only grow to one side and setting it to 100% width doesn't expand it to fill the whole page. Can anyone provide some guidance or assistance? Here's the code: return ( <div cla ...

Safari is having trouble displaying the tab content background properly, while Chrome is not experiencing any

I am currently facing an issue with the CSS tab content on a website. The client requested to add an image in the background, which I have successfully implemented and tested on Chrome and IE. However, Safari seems to be cutting off the image. You can view ...

What methods are available to show varying text based on the selection in a drop down menu?

Consider this scenario: when the user selects "boy", the text "Tom" will be displayed below. Alternatively, if the user chooses "girl", the text "Ava" will appear. ...

Using Angular 4 constructor value in a condition with *ngIf

Within this TypeScript snippet, there is a variable called moreinfo that is initially set to 1. In the constructor, however, the value of moreinfo is changed to 2. Subsequently, based on whether the value is 1 or 2, different div elements are displayed usi ...

Steps to align the table to the left with the header

I created a webpage that includes a header and a table at this link Can anyone help me align the left border of the table with the left border of the header image? I'm not sure how to do it. Appreciate any assistance! ...

The fixed position setting does not anchor the elements to the bottom of a container

When applying the following styles: #fullpage-menu > .gradient { position: fixed; bottom: 0; left: 0; width: 100%; height: 0.3rem; } To the element with ID #fullpage-menu, which is styled as follows: #fullpage-menu { height: 100 ...

What could be causing the disappearance of the border around this `<li>` element?

I am currently redesigning the Kotaku website and facing difficulties in creating a list for the footer. Below is an image illustrating my issue. The 'Popular tags' section has been created using the <ul> and <li> elements, with an & ...

Incorporating Node.JS variables within an HTML document

After building a simple site using Express, I discovered that Node.js variables can also be used with Jade. exports.index = function(req, res){ res.render('index', { title: 'Express' }); }; This is the code for the index file: ext ...

Activate hover effect on desktop screen (excluding tablets and phones) by utilizing media queries

Applying hover state styling to a div can be done like this: div { &:hover { color: red !important; border: 3px solid red !important; } } To exclude iPads and other tablets from this CSS style, you can util ...

Troubleshooting: "alert() is not triggering for document functions"

I'm puzzled by a seemingly simple program that isn't running as expected. Here's the HTML code I'm using: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml ...

Can we use CSS to animate the enlargement of an element without moving it?

Take a look at this jsFiddle. With CSS animations gaining popularity, I am interested in creating an effect where an element (.box) expands with an animation when the mouse hovers over it. The challenge is to keep the center of the element fixed while enla ...

What is the best way to embed an image into HTML code?

I am trying to enhance the appearance of a phone number inside an HTML code that is loaded into a UIWebView by adding a background image. NSString *stringToReplace = [NSString stringWithFormat:@"<a style=\"color:white; background-color:#707070; te ...

Implementing a password prompt in CodeIgniter using JavaScript

I need to delete a teacher as an admin, but before doing so, I want to require them to re-enter their password. However, I'm having trouble getting the delete function to work even though the prompt is displayed. Can someone help me figure out what I& ...

Navigating through the options list and returning to the top for a fresh start: a simple guide

I'm looking for a way to make a list of 5 elements automatically scroll through each one every 3 seconds. Once it reaches the last element, I want it to loop back and start again from the first element. Here is what I've tried so far. var heigh ...

Preserve the authentic picture along with a blur mask that can be dragged and applied to it

Is there a way to preserve the original image while having a draggable blur mask over it? If you want to see an example of a draggable blur mask over an image, you can check out this link: https://codepen.io/netsi1964/pen/AXRabW $(function() { $("#ma ...