CSS Animation works in Chrome but not Safari

前端 未结 2 1751
北恋
北恋 2021-01-21 18:20

I can\'t figure out what\'s going on here.

I was updating a site that still had a marquee tag in use, so I replaced with a much smoother (though, still a marquee) css an

2条回答
  •  梦毁少年i
    2021-01-21 19:20

    Try looking at Safari's methods for animation. Alternately I'd try using a more cross browser compatible method like jQuery.

    jQuery is your best option if you take into consideration todays browser user-base, and compatibility between them. Look into jQuery .animate() for more information.

    
    

    and you'll need the jQuery and Marquee Plugins loaded by downloading them from jQuery and jQuery Marquee and then link them with

    JSFiddle Example

    P.S. This does work on my Androids 2.3 browser from 4 years ago where as the basic animation doesn't from your website. And let's face it, not many web surfers are actually sitting at a computer anymore.

提交回复
热议问题