Not able to get CSS animations to function on Mac computers

I am encountering an issue with Mac/Safari where two CSS animations are not working properly upon refreshing the screen.

  • The div should perform a right scroll left animation.
  • The image is not resizing as intended.

For the scrolling animation, I have implemented the following code:

.overlay {
  background-color: #fff;
  opacity: 0.83;
  -webkit-transition: right .5s ease;
  -moz-transition: right .5s ease;
  -o-transition: right .5s ease;
  -ms-transition: right .5s ease;
  transition: right .5s ease;
  position: relative;
}

And for the image resizing animation:

.resize {
  animation: animationIncrease .5s infinite alternate;
  -webkit-animation: animationIncreaseMac .5s infinite alternate;
  -moz-animation: animationIncrease .5s infinite alternate;
  -o-animation: animationIncrease .5s infinite alternate;
  -ms-animation: animationIncrease .5s infinite alternate;
}

@keyframes animationIncrease {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.3);
  }
}

While this setup works fine in Chrome/Firefox/IE, it seems to be malfunctioning specifically on Mac/Safari. The animations work correctly when I stop clicking. Any suggestions?

This JSFiddle link showcases the issue.

Answer №1

In your CSS code, you have defined another animation named animationIncreaseMac using the -webkit-animation prefix. However, it seems that this animation is not being utilized as intended. Currently, you are only using the animationIncrease animation. If you want to incorporate the animationIncreaseMac, you need to include it in your CSS and make sure to add the appropriate keyframes for the animation.

@-webkit-keyframes animationIncreaseMac {
  0% {
    -webkit-transform: scale(1.0);
  }
  100% {
    -webkit-transform: scale(1.3);
  }
}

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

Issue with local image on Vue.js slider causing malfunction

Hey, I came across this awesome Vue.js image slider on "digitalocean.com" but it seems to only work with images uploaded on platforms like imgbb, pixabay, etc. I tried to use a local image from my assets folder, but it's not working. Can anyone help m ...

The datepicker in Angular Material refuses to open when used within a modal dialog box

I successfully integrated an angular material 2 date-picker into a bootstrap modal form: <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">{{title}}</h ...

`finding difficulty in presenting components in react`

I am encountering issues with an outdated version of CRUD where some codes are no longer functioning as expected. Visual Studio Code does not flag them as errors, so the page continues to load but my content box remains empty. Can someone assist me with th ...

Having trouble with CSS3 linear gradient in Firefox?

I used Adobe Fireworks CS6 to create a CSS linear gradient code. My gradient is meant to transition from light blue at the top to dark blue at the bottom. While it displays correctly on Chrome and Safari, Firefox is showing the colors in reverse - dark b ...

Sending a Boolean value from a child component to its parent state in React JS

Within my application, I have implemented a login feature in the navbar component. However, I am encountering an issue with updating a variable in the main component upon successful login. Although I have successfully managed to set up the login functional ...

Exploring the functionalities of jQuery and Local Storage: Understanding the Selector's various states

I am currently developing a new feature for font customization on a website. The drop-down menu offers several font options to choose from. When a user clicks on one of these options, the following code is executed: jQuery(function($) { if (localStorage.g ...

Eliminating excess padding for a targeted division

The screenshot above displays a series of boxes that are printed on the screen. Each box is floated to the left and has a margin-right of 5px. However, I am facing an issue where after the third box, I need to remove the margin-right style. This pattern co ...

Utilizing nested tables to customize the appearance of cells within the primary table layer

I am facing a challenge with styling nested tables on my page. Specifically, I need to apply styles exclusively to odd rows of the top level table without affecting the tables within it. Unfortunately, I am unsure about how to accomplish this task. My ini ...

Enhancing user experience with jQuery tooltips

Having trouble adding a tooltip to a glyphicon. The JSFiddle example provided does not work for me as I am using jQuery to create the HTML elements like this: var trashIcon = $('<i>').addClass('glyphicon glyphicon-trash'); How ...

Use the href attribute along with an id to redirect to a different page and simultaneously update the class to

On my website, I have two main pages: the home page and the contact us page. The contact us page features 4 menu options, with the first option currently active. I would like to set it up so that when a user clicks on the home page button, it will navigate ...

IE 9 isn't displaying the Dropdown CSS Navigation

Welcome to my test page. Click here to view the test page. I recently found out that this page is not displaying correctly on Internet Explorer 9. Since I don't have IE 9, I'm using Net Renderer to preview my test page. Below you will find my ...

Switch between every other pair of table rows, then repeat with the following two pairs

I am attempting to create a table with alternating row colors of green and yellow in sets of two. I have been using :nth-child but it is not working correctly. My table is automated using Angular 6 and styled with Angular Material 6. If you would like to ...

What causes WordPress to take precedence over Bootstrap?

Trying to integrate a Bootstrap theme I created into WordPress, but encountering issues. Despite enqueuing all necessary style sheets without errors in the console, WordPress is interfering with the layout. The rounded circles with images are appearing s ...

Struggling to contain embedded videos within a responsive background

I've experimented with various solutions for my issue, but it seems that the unconventional structure of my project requires a unique approach to fitting the video into a box while keeping it responsive. Here is a preview of what I'm aiming for: ...

CSS Grid expands the item width on its own when there is still space left

Having some queries regarding the piece of code provided. Currently, I have a collection of 5 cards displayed in rows of 3 cards each using the styling grid-template-columns: repeat(3, minmax(200px, 1fr));. My concern is whether there is a way for the 4th ...

I am experiencing an issue where certain HTML classes are not applying the CSS code properly within my PHP file

I am facing an issue with my code where some of the HTML classes are not applying the CSS styles correctly, such as the first class "class="foot"". Below are the files that I have: * { margin: 0%; padding: 0%; ...

Modify the CSS of one div when hovering over a separate div

I've been working on a simple JavaScript drop-down menu, and it's been functioning correctly except for one issue. When I move the mouse out of the div that shows the drop-down menu, it loses its background color. I want the link to remain active ...

How to Align Navigation Searchbar in Center When Bootstrap is Collapsed

I am attempting to center my search bar when it is collapsed. Currently, it appears like this: As you can see, the links are centered, but not the search bar. This is the existing HTML structure: <!-- Navigation Bar Start --> <div class ...

Ways to center text without using the span tag

Is there a way to align text in the center without using the span tag? I want the text to be centered with other content on the sides not interfering. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" ...

What is the best way to ensure that a particular page on my WordPress site displays a responsive design?

The specific URL of concern is weddings.blaskphotography.com.au/photographs When accessing this page on an iPhone, I would like it to utilize the mobile stylesheet included in Woothemes' Canvas theme that I have implemented. My current setup involve ...