Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS unable to get CSS transform property to animate in Safari

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #206045
    Nilzone
    Participant

    Here is the fiddle: http://jsfiddle.net/sg0va9y1/2/

    My main problem is this one:

    .input-date:focus ~ .label-placeholder {
        transform:translate(-50%, 65%);
        -webkit-transform:translate(-50%, 65%);
        -moz-transform:translate(-50%, 65%);
        transition:transform 0.4s;
        -webkit-transition:transform 0.4s;
        -moz-transition: transform 0.4s;
    }
    

    This works in Chrome just fine, but not in safari.

    Any help will be much appreciated.

    #206046
    Paulie_D
    Member

    Which version of Safari?

    #206047
    Nilzone
    Participant

    Version 8.0.7 (10600.7.12)

    #206048
    Paulie_D
    Member

    Ah…can’t help you there as I’m on Windows.

    One think though…you might want to have the unprefixed versions of the properies last…it’s considered best practice.

    #206049
    Nilzone
    Participant

    OK, I solved it:

    It’s really silly – Instead of writing it like this (shorthand)

    -webkit-transition:transform 0.4s;
    

    You write it like so:

    -webkit-transition-property: transform;
    -webkit-transition-duration: 0.4s;
    
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.