css写GIF动画效果


image


<div class="weixin container">

            <img src="http://www.hongshanshuzs.com/storage/13234/tpl/my_9/img/whact.png" alt="总裁微信">

        </div>




.whact img {

   width: 100%;

   -webkit-animation: scale-data-v-22cf145b 4s linear infinite;

   animation: scale-data-v-22cf145b 4s linear infinite;

}

@-webkit-keyframes scale-data-v-22cf145b{0%{-webkit-transform:scale(1);transform:scale(1)}12.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}25%{-webkit-transform:scale(1);transform:scale(1)}37.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}50%{-webkit-transform:scale(1);transform:scale(1)}62.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}75%{-webkit-transform:scale(1);transform:scale(1)}87.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-transform:scale(1);transform:scale(1)}}

@keyframes scale-data-v-22cf145b{0%{-webkit-transform:scale(1);transform:scale(1)}12.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}25%{-webkit-transform:scale(1);transform:scale(1)}37.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}50%{-webkit-transform:scale(1);transform:scale(1)}62.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}75%{-webkit-transform:scale(1);transform:scale(1)}87.5%{-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-transform:scale(1);transform:scale(1)}}


微信扫码咨询
建站咨询
cache
Processed in 0.008149 Second.