Is it expected for this CSS to function properly in IE9?

I'm currently facing an issue with a div that undergoes rotation as it fades in. While this effect works smoothly on most modern browsers, I've encountered a problem specifically with the code for Internet Explorer.

#box
{
    width: 400px;
    height: 400px;
    display: inline-block;
    position: absolute;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transition: all 0.8s 1s ease-in-out;
    -webkit-transition: all 0.8s 1s ease-in-out;
    -moz-transition: all 0.8s 1s ease-in-out;
    -o-transition: all 0.8s 1s ease-in-out;
    opacity:0;
}

#box.animate
{
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    opacity:100;
}

Although I researched solutions from similar questions like these:

css3 rotation doesn't work in IE9

CSS3 transform: rotate; in IE9

I am open to using jQuery, but my proficiency with it is limited.

Update

I have posted a new query regarding a potential jQuery solution. If you can help me out, I'll gladly bake you a cake. Or a pie.

Rotating a div using jQuery that's supported by IE9

Answer №1

Internet Explorer 9 does not have support for transitions, meaning that the transition style won't create animated effects on this browser.

http://caniuse.com/#search=transition

To achieve animation in IE 9, you will need to utilize JavaScript or a JavaScript library such as jQuery. Therefore, the answer to your question is no - it will not work in IE 9. You may want to consider rephrasing your question and asking how to accomplish image rotation using jQuery instead.

Answer №2

Regrettably, the CSS property is not compatible with Internet Explorer 9 and earlier versions.

transition:

To achieve the desired effect, consider utilizing jQuery, Mootools, or a similar JavaScript library. While this may not be the ideal solution, it can serve as a helpful hint.

Answer №3

Can you please confirm the content type of the page? If a content type is not specified, IE9 may default to "quirks mode". It's recommended to set the content type as follows for optimal performance in IE:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

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

Display HTML content with inline styling in a TextView

I am looking for a way to display HTML content with inline styles in my application. Due to the requirement of having different views for various sections of text, using a WebView makes the app run slowly. While I know that TextView can display HTML conten ...

Updating div width in Laravel blade using expressions or jQuery can be a simple task

Is there a way to dynamically change the width value of a div element based on a variable? The div contains blocks, and the size of each block is determined by the variable. For example, if $t->spotdiff = 2, I would like two equal blocks in a column wit ...

Instructions on how to dynamically update a form field based on the input in another field using conditional statements

I'm seeking advice on how to automatically update a field based on user input without the need for manual saving. For example, if the user types '95' in the input field, the equivalent value displayed should be '1.0' in real-time. ...

Looking to showcase your logo prominently at the center of the page, flanked by two elegant

Is it possible to create a grid-like structure with dimensions 5.5-1-5.5? I would like to center a logo on the page with two lines on the left and right. (Please excuse my limited English skills) https://i.sstatic.net/cgjfS.png ...

Visual Studio Code version 1.42 is now automatically converting <br> tags to <br /> when formatting code

This issue just started occurring. I'm not exactly sure what triggered it, but it could be related to my attempt to activate the Preitter extension. As a newcomer to Visual Studio Code, I am currently working on HTML5 documents. Strangely, whenever I ...

The jQuery AJAX function is not functioning properly when using an ASP.net server side

Having issues with my code. The jquery ajax is not functioning properly. Here is my jquery script: $('#AddPermission').click(function () { var _permissionId = $('#PermissionId').val(); var _roleId = $('#Role_Id& ...

Unchecked Checkbox Issue in Yii2

Currently working with yii2 and trying to check my checkbox: <?= $form->field($model, 'is_email_alerts')->checkbox(['label'=>'','checked'=>true,'uncheck'=>'0','value'= ...

Retrieve MySQL records based on checkbox selection status and export them to Microsoft Excel

I am trying to create a dynamic HTML form using PHP. The form includes checkboxes that, when selected, should fetch corresponding records from a MySQL database. Only the CustomerID associated with the checked checkboxes should be exported to an Excel file; ...

Is it possible to open one collapse item and simultaneously close all the others using Bootstrap 5?

Can someone explain how to properly use the Bootstrap 5 collapses component? I want it so that when one collapse item opens, all others close. The documentation mentions setting a parent attribute, but I'm not entirely sure how that works. Here's ...

Using Angular Ionic 3 to apply the disabled attribute

I have a situation in my main.ts where I need to disable a textarea in the HTML if an object is initialized. I've attempted various methods like: ng-attr-disabled="!myObj"; ng-attr-disabled="{myObj!= null}"; and also directly using ng-disabled. I e ...

Update the value of a JSF managed bean property for a h:SelectOneMenu using JavaScript

Hello, I have a unique method of injecting HTML code at runtime into my web page using JavaScript. The specific piece of code that I am cloning and inserting is as follows: <div id="any"> <h:selectOneMenu value="#{browserOSList.browserXP[0]}" ...

Switching the image origin of an <img> tag fails when using a variable

Today I attempted to change the image source dynamically on my webpage using the id attribute within an image tag (id="bla" src="....."). Typically, I achieve this by selecting the element and updating the src property like so: $("#bla").prop("src", "/new ...

Guide to creating a versatile navigation bar using Bootstrap and HTML

I am looking to create a navigation menu that can be easily reused across multiple pages on my bootstrap/html website. Instead of duplicating code, I want to implement a solution for creating a reusable navigation menu in bootstrap/html. How can this be ...

Outline along a single edge

Is there a way to add an inset border to an HTML element on just one side, without using an image as a background? I've been stretching and positioning images for this purpose in the past, but I recently discovered the outline CSS property. However, i ...

What is the reason behind getComputedStyle having visibility set to visible?

What is the reason behind getComputedStyle always returning element visibility as visible even when no explicit visibility has been set? For instance: getComputedStyle($('#block1')[0],null).visibility; --- "visible" Meanwhile: $('#block1&a ...

Having several contact forms embedded within a single webpage

I am currently in the process of developing a prototype website and my objective is to have multiple forms on a single page. My goal is to have a form for each service, where users can click on the service and fill out a form to request a quote. The first ...

Custom components receive specific values through Styled Components

Hey there! I'm currently working on customizing the color of a button based on its type within a modal. The button can be categorized as either "Success" or "Danger": import React from "react"; import styled from "styled-components" ...

What is the best way to utilize images as borders for a div tag to create a unique and customized border appearance using images?

Hello, I am struggling to find a solution to a CSS problem. I have applied CSS styles to create border images for a div container, but the right image is not positioned correctly - it leaves space on the right side of the container when stretched out. An ...

"Ensuring Your SVG Icon is Perfectly Centered: A Step

My SVG icon is currently aligned to the left, but I want to center it. I tried using the following code, but it doesn't seem to be working: .parent{ display: flex; align-items: center; font-size: 13px; } span{ margin-right:10px } https://i.sstatic.ne ...

Is it possible for JQuery to create a user interface similar to that

For a project I was working on, I decided to integrate DevExpress Controls for their sleek and modern UI interface. However, after implementing these controls, I noticed a significant increase in the size of my webpage at the client side. Previously, using ...