html - CSS3 Scale property Blurs Result of animationin Google Chrome -


i doing simple animation using scale property facing following problem:

it works fine in mozilla firefox browser blurs result in google chrome when scaled large. why happening? use -webkit- prefix google chrome.

i have following code :

<!doctype html>  <html> <head> <meta charset="utf-8"> <title>free sorry ecard</title>  </script> <style> .background-effect{     height:600px;     width:800px;     width:800px;     position:absolute;     overflow:hidden;     display:block;     z-index:1; }  .b1-heart{     position: absolute;      width: 100px;     height: 90px;      top:250px;     left:350px;     opacity:0;     -moz-animation: heartbeat 4s linear 0s infinite;     -webkit-animation: heartbeat 4s linear 0s infinite; }  .b1-heart:before, .b1-heart:after{     position: absolute; content: ""; left: 50px; top: 0; width: 50px;   height: 80px;      background: #ff0066; -moz-border-radius: 50px 50px 0 0; border-radius: 50px 50px 0 0; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg);-ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 0 100%; -moz-transform-origin: 0 100%; -ms-transform-origin: 0 100%; -o-transform-origin: 0 100%; transform-origin: 0 100%;  } .b1-heart:after { left: 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); -webkit-transform-origin: 100% 100%; -moz-transform-origin: 100% 100%; -ms-transform-origin: 100% 100%; -o-transform-origin: 100% 100%; transform-origin :100% 100%;}    @-moz-keyframes heartbeat{     0%{-moz-transform:scale(1);opacity:0;}     50%{-moz-transform:scale(5);opacity:.5;}     100%{-moz-transform:scale(10);opacity:0;}  }@-webkit-keyframes heartbeat{     0%{-webkit-transform:scale(1);opacity:0;}     50%{-webkit-transform:scale(5);opacity:.5;}     100%{-webkit-transform:scale(10);opacity:0;}  }  .b3-heart{     position: absolute;      width: 100px;     height: 90px;      top:350px;     left:50px;     opacity:.2;     -moz-animation: heartbeat 1.5s linear 0s infinite;     -webkit-animation: heartbeat 1.5s linear 0s infinite; }  .b3-heart:before, .b3-heart:after{     position: absolute; content: ""; left: 50px; top: 0; width: 50px;   height: 80px;      background: #00ccff; -moz-border-radius: 50px 50px 0 0; border-radius: 50px 50px 0 0; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg);-ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 0 100%; -moz-transform-origin: 0 100%; -ms-transform-origin: 0 100%; -o-transform-origin: 0 100%; transform-origin: 0 100%;  } .b3-heart:after { left: 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); -webkit-transform-origin: 100% 100%; -moz-transform-origin: 100% 100%; -ms-transform-origin: 100% 100%; -o-transform-origin: 100% 100%; transform-origin :100% 100%;}   .b2-heart{     position: absolute;      width: 100px;     height: 90px;      top:350px;     right:50px;     opacity:.2;     -moz-animation: heartbeat 1.5s linear 0s infinite;     -webkit-animation: heartbeat 1.5s linear 0s infinite; }  .b2-heart:before, .b2-heart:after{     position: absolute; content: ""; left: 50px; top: 0; width: 50px;   height: 80px;      background: #00ccff; -moz-border-radius: 50px 50px 0 0; border-radius: 50px 50px 0 0; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg);-ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 0 100%; -moz-transform-origin: 0 100%; -ms-transform-origin: 0 100%; -o-transform-origin: 0 100%; transform-origin: 0 100%;  } .b2-heart:after { left: 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); -webkit-transform-origin: 100% 100%; -moz-transform-origin: 100% 100%; -ms-transform-origin: 100% 100%; -o-transform-origin: 100% 100%; transform-origin :100% 100%;}   .b4-heart{     position: absolute;      width: 100px;     height: 90px;      top:550px;     right:350px;     opacity:.2;     -moz-animation: heartbeat 2s linear 0s infinite;     -webkit-animation: heartbeat 2s linear 0s infinite; }  .b4-heart:before, .b4-heart:after{     position: absolute; content: ""; left: 50px; top: 0; width: 50px;   height: 80px;      background: #fff000; -moz-border-radius: 50px 50px 0 0; border-radius: 50px 50px 0 0; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg);-ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 0 100%; -moz-transform-origin: 0 100%; -ms-transform-origin: 0 100%; -o-transform-origin: 0 100%; transform-origin: 0 100%;  } .b4-heart:after { left: 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); -webkit-transform-origin: 100% 100%; -moz-transform-origin: 100% 100%; -ms-transform-origin: 100% 100%; -o-transform-origin: 100% 100%; transform-origin :100% 100%;}   </style>  </head> <body>   <div id="container1">      <div class="background-effect">        <div class='b1-hearts'></div>       <div class='b2-hearts'></div>       <div class='b3-hearts'></div>       <div class='b4-hearts'></div>      </div>  </div>  </body> </html> 


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -