Forums

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

Home Forums JavaScript animation-name in jquery

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #159123
    ata8
    Participant

    hi
    i did this to run my css animation.

    $(window).bind("load", function() {
          $('.line').css({"animation-name": "lines" });
    });
    

    but it is not work in all browsers because of prefixes.
    how can i set the prefixes to “animation-name”.

    #159126
    CrocoDillon
    Participant

    jQuery 1.8+ adds appropriate prefixes for you. If you’re using <1.8 you need to handle them yourself with http://api.jquery.com/jQuery.cssHooks/

    I would upgrade to 1.8+ :P

    #159129
    ata8
    Participant

    thanks CrocoDillon.
    yes you’re right. i change my jQuery and it works fine.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.