|
|
- <style type="text/css">
- @keyframes iChange {
- from { width: 272px; height:449px;top:10px; left:100px; } to { width:136px; height:225px;top:78px; left:300px; }
- }
- @-moz-keyframes iChange {
- from { width: 272px; height:449px;top:10px; left:100px; } to { width:136px; height:225px;top:78px; left:300px; }
- }
- @-webkit-keyframes iChange {
- from { width: 272px; height:449px;top:10px; left:100px; } to { width:136px; height:225px;top:78px; left:300px; }
- }
- @-o-keyframes iChange {
- from { width: 272px; height:449px;top:10px; left:100px; } to { width:136px; height:225px;top:78px; left:300px; }
- }
- .s2b {
- animation: iChange 5s infinite alternate;
- -moz-animation: iChange 5s infinite alternate; /* Firefox */
- -webkit-animation: iChange 5s infinite alternate; /* Safari 和 Chrome */
- -o-animation: iChange 5s infinite alternate; /* Opera */
- width:272px;
- height:449px;
- }
- </style>
- <img class="s2b" src="https://www.huachaowang.com/data/attachment/forum/201711/19/142453t7u7xx5hz85lpdud.jpg" alt="我来试验一下" />
复制代码 |
|