0
好吧,我擁有的是我想要移動的圖像,並保留在其最終位置。我目前有編程,使圖像做一個動畫時,它的懸停。 HTML:如何在網站加載時發生CSS動畫
<html>
<head>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrapper">
<div class="move"></div>
</div>
</body>
CSS:
#wrapper {
width: 1000px;
margin: 0 auto;
}
.move {
width: 150px;
height: 150px;
background-color: red;
position: absolute;
top: 0;
left: 0;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
}
.move:hover {
top: 20;
left: 20;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
}
無論如何,我想知道的方式有轉變發生的那一刻的網站負載,然後留在位置定義在移動:懸停
添加JSFiddle到您的問題,使事情更清楚 – Ram 2015-02-18 00:23:10