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

  • Home
  • SEARCH
  • 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 7666995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:58:58+00:00 2026-05-31T14:58:58+00:00

In my CSS I defined a transition for a class. For some reason, when

  • 0

In my CSS I defined a transition for a class. For some reason, when I hover over the class with the transition, the transition-duration for some reason alters the font color elsewhere (form placeholders and certain links). (This happens only in Safari as far as I can tell.)

Here’s a jsFiddle that shows what I’m talking about:

http://jsfiddle.net/EJUhd/

Does anyone know why this occurs and how I can prevent it?

  • 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-05-31T14:58:59+00:00Added an answer on May 31, 2026 at 2:58 pm

    I was struggling with a similar issue.
    For me, random links throughout the page became apparently bold (clearly something to do with OSX and anti-aliasing in Safari, as Chrome (in windows 7 and OSX) as well as the same version of Safari in Windows worked fine.

    The solution is not obvious, and depending on what you are doing might not be optimal, but adding this line of code fixed the issue:

    -webkit-transform: translateZ(0);
    

    This basically triggers the GPU to do animation, and the text no longer had artifacts in my site. Do note that it’s not always appropriate to use it, as it may use more battery life and use more resources. Sometimes however, it uses less, so basically check the performance when you add it.

    You add this to the normal state not the :hover animated state.

    img { -webkit-transform: translateZ(0); }
    

    As opposed to on the:

    img:hover { /* not here */ }
    

    The other very positive side effect is that depending on the animation you are doing, it might be smoother through the GPU. So you won’t get the choppy animation you mention in your follow up post. In my case, the animation was more seamless in safari. I was doing a 120% scale and 5 degree rotation of an image with some box-shadow appearing at the same time. In my situation, it did not reduce CPU usage unfortunately.

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

Sidebar

Related Questions

Let's say we have defined a CSS class that is being applied to various
On my blog I use some CSS classes which are defined in my stylesheet,
I have a DIV container that is a CSS class defined on the top
I have a CSS class defined, call it: <style type=text/css> .Foo { position: fixed;
I've got a CSS class defined like so: .MyClass .MyIcon { background: url(../Images/my_icon.png) no-repeat
Please refer to the image at: http://i50.tinypic.com/svgg2h.jpg I have defined CSS color(#000000) for my
I have a div with the following CSS class defined: <div class=ui-button ui-state-active>bla bla
I have a CSS stylesheet defined in the Master Page of my project. On
My SharePoint site needs to preserve the a:visited style defined in CSS for links.
I have defined a tag with a CSS attribute overflow set to scroll. This

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.