The CSS3 Animation feature seems to be disabled on Chrome

I'm encountering an issue with my CSS3 animation that works perfectly on Firefox but doesn't display properly on the Chrome browser. You can view the final result on www.stamp4all.com, where the animation involves rotating arrows.

Below is the CSS code:

/* Some stylesheet reset */
#sidemenu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  line-height: 1;

}
/* The container */
#sidemenu > ul {
  display: block;
  position: relative;
  width: 133px;
  /* The list elements which contain the links */

}
#sidemenu > ul li {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* General link styling */
#sidemenu > ul li a {
  /* Layout */

  display: block;
  position: relative;
  margin: 0;
  border-top: 0.14em dotted #3a3a3a;
  border-bottom: 0.14em dotted #1b1b1b;
  padding: 12px 15px;
  /* Typography */

  font-family: Helvetica, Arial, sans-serif;
  color: #d8d8d8;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 1px #000;
  font-size: 15px;
  font-weight: 300;
  /* Background & effects */

  background: #282828;   /*  !!! animated menue background !!!! */
}

#sidemenu > ul li > a {
    border-radius:10px;
}


/* The hover state of...

And here is the HTML code:

<div id="sidemenu">
<ul> 
    <li><a href="index.php?main=include/about_us.html" >אודות</a></li> 
    <li class='has-sub'><a href="index.php?main=products" >חותמת מלבנית</a>
        <ul>
            <li><a href="index.php?main=products/rectangle/p20.html" >P20 - 14X38מ"מ</a></li>
...  

Can anyone explain why the rotation isn't working in Chrome?

Answer №1

Consider implementing this

-webkit-transition:-webkit-transform 1.5s;

Answer №2

To optimize your browsing experience, make sure to clear your chrome cache and delete previous browsing details

Here is a sample code snippet:

-webkit-animation-name: myfirst;
-webkit-animation-duration: 5s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 2s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-play-state: running;

/* Compatible with Chrome, Safari, Opera */

-webkit-animation:myfirst 5s linear 2s infinite alternate; 
animation:myfirst 5s linear 2s infinite alternate;

Explore this CSS tutorial for animations

Answer №3

Leo suggested using this code to ensure the rotate arrows work properly in Chrome:

  -webkit-transition:-webkit-transform 1.5s;
  -moz-transition:-moz-transform 1.5s;
  -o-transition:-o-transform 1.5s;
  transition:transform 1.5s;
  display:inline-block;

Appreciate all the help!

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

Struggling with main content not properly overlapping with nav bar in HTML and CSS code

Looking for assistance with centering the main content area on a webpage both vertically and horizontally. After adding a CSS nav bar, scroll bars appeared on the page and the main div lost its center positioning, seeming to be shifted down and to the rig ...

Creating a sticky section with Tailwind CSS utility classes

I have a page in my Next.js web app, and I want to make the section highlighted in blue (wrapped in <aside> tag) sticky so that it stays in place while scrolling, with only the main section containing the chart scrolling. The code snippet below is f ...

Ensuring Equal Padding on Both Sides of a Div by Setting its Width

In search of a div that houses multiple inner divs with equal padding on the left and right edges. This is crucial for maintaining a fluid layout where the distance between the inner divs and outer div border remains consistent even when the window size ch ...

Recalling the layout following the user's computer restart

I am creating a simple online editing tool (similar to Microsoft Outline) for coursework and I would like the outline details to be saved even if the user restarts the system. How can I achieve this? <html> <head> <title>Editor</ ...

CSS formatting may not be maintained when additional content is inserted after the initial text

Just a heads up, I'm relatively new to coding! I have a header and text that I want to overlay on a background image using CSS, so getting the positioning right is crucial. Everything was working fine until I added more HTML content below the text. ...

What is the best way to iterate over each character in a string and trigger a function in JavaScript?

I am currently working on a project to create a random password generator. The code responsible for generating the password is functioning correctly. However, I am facing an issue with converting the characters of the password into phonetic equivalents. I ...

Issue with jQuery .css() function malfunction in Internet Explorer

While trying to enhance my website, I experimented with the Add class method $("select[name='" + ABC+ i + "']").addClass('addBorder'); To my disappointment, it worked smoothly in Chrome, FF, and Safari but failed in IE. So I decided ...

Design a customizable input field to collect HTML/JS tags

I'm looking to incorporate a similar design element on my website. Can anyone offer me some guidance? Check out the image here ...

Creating white space around the entire page using CSS is a simple yet effective way to

I'm relatively inexperienced with CSS and HTML and I'm attempting to create a website layout with some white space surrounding it, similar to a border. I have come across many solutions on removing white space, but none on how to add it. Current ...

Struggling with CSS due to the INCLUDE Function

After downloading a Template + CSS File for the website I am working on, everything was going smoothly until I decided to break down the template into separate files for easier modification and editing in the future. However, once I cut out the head sectio ...

Tips for showing a variety of headers on your page

I am struggling to align multiple headers on the same horizontal line. Despite my efforts, only two of them display correctly while the third keeps dropping down a line. To see what I mean, take a look at this image: view current layout Here is the code ...

Show loading message on keypress using jQuery

I need assistance with a unique jQuery script for the desired functionality: While inputting text into the text field, I would like the adjacent 'Load' text to be displayed. If typing stops, the 'Load' text should change to 'Del& ...

The page background appears to be incomplete in its coloring

As I work on creating a web application for personal use, my goal is to ensure it is mobile-friendly. However, I've encountered an issue where the background of my language page isn't displaying in full blue color as intended. Despite trying diff ...

The sub-menu options are constantly shifting... How can I keep them in place?

Here we go again... I'm having trouble with my sub-menu elements moving when I hover over them. I've searched for a solution but haven't found anything helpful. The previous advice I received about matching padding and adding transparent bo ...

Double up on the ul lists for added full-width border effect

My goal is to achieve a design similar to the following image: Here's what I've accomplished so far: <ul class="flechalista"> <li><a href="#">2012</a> <ul class="flechalista"> <li>Enero</li> ...

Sending JavaScript variables to an external CSS file

I've been searching for a solution without much luck. I must admit, my CSS skills are pretty basic. Currently, I am using Muxy.io to manage notifications for my livestreams. The platform allows customization of notifications through HTML and CSS file ...

Sending output from javascript back to html

<head> function displayProductName(name) { } </head> <body> <img src="...images/car.jpg" onclick="displayProductName('car')"> </body> How can I modify this javascript function to display the value received from t ...

Unable to utilize external JavaScript files in Angular 8

I've been working on integrating an HTML template into my Angular project and for the most part, everything is going smoothly. However, I've encountered an issue where my JS plugins are not loading properly. I have double-checked the file paths i ...

What could be causing my jQuery animation to lack smoothness?

I am experiencing an issue where, after a delay, my element completely jumps across the screen to its new position when I animate its height. Strangely, this problem only occurs when using pixel values and not percentages. Unfortunately, I need to use pi ...

What impact does the text-shadow property have on altering the color of hsla text?

I created a header that changes color to be slightly transparent with a black outline when hovered over (achieved using 4 text-shadows). However, I encountered an issue when trying to use hsla() to define the color. The color defaults to black with 100% o ...