why marquee tag not working in google chrome.?

前端 未结 6 1647
心在旅途
心在旅途 2020-12-11 04:18

I want to insert an image into marquee tag.

I have written following code:



        
      
      
      
6条回答
  •  时光取名叫无心
    2020-12-11 05:05

    HTML:

    image

    CSS:

        #cloud{
            width:180px;
            padding-left:30px;
            opacity:0.7;
            animation:slide 10s infinite;
            -moz-animation:slide 10s infinite;//Firefox
            -webkit-animation:slide 10s infinite;//chrome and safari
            -o-animation: slide 10s infinite;//Opera   
    }
    
    @keyframes slide{
        0%   {-transform: translate(0px, 0px); }
            100% {-transform: translate(500px,0px); }
    }    
    
    @-moz-keyframes spin{
        0%   {-moz-transform: translate(0px, 0px); }
        100% {-moz-transform: translate(500px, 0px); }
    }
    
    @-webkit-keyframes slide{
             0%   {-webkit-transform: translate(0px, 0px); }
            100% {    -webkit-transform: translate(500px,0px); }
        }
    
    @-o-keyframes slide{
        0%   {-o-transform: translate(0px, 0px); }
        100% {-o-transform: translate(500px, 0px); }
    }
    

    Here is the fiddle:

    http://jsfiddle.net/qCahH

    Replace the text with the image.

提交回复
热议问题