HTML、CSSを使用して回転アースエフェクトを作成しようとしています。私はCSSで世界を作りました。私は地球のようにイメージを回転させたい。
CSS:グローブをHTMLで回転する
#rotate{
position: fixed;
border: 1px solid #111;
border-radius: 50%;
overflow:hidden;
width:100px;
height:100px;
box-shadow: inset 1px 8px 16px #000;
}
.earth{
-webkit-animation-name: rotate;
-webkit-animation-duration: 4s;
animation-iteration-count: infinite;
animation-name: rotate;
animation-duration: 4s;
}
@-webkit-keyframes rotate{
from{transform: translate(0px);}
to{transform: translate(100px);}
}
HTML:可能な解決策は、可能性が
<div id="rotate"><img class="earth" src="http://laps.noaa.gov/albers/sos/earth/globe/globe_animated_2k.gif" alt="globe"/></div>
。 com/questions/27781634/rotating-globe-in-css –