Сообщение от Faab
|
как оставить за этим самолётом шлейф
|
вариант ...
<!DOCTYPE HTML>
<html>
<head>
<title>test.com</title>
<style type="text/css">
div#block img{
float: right;
padding: 0px
}
div#sky {
width: 300px;
height: 150px;
border: 3px blue solid;
padding: 0px
}
div#block{
display: inline-block;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#000));
background: -webkit-linear-gradient(left, #fff, #000);
background: -moz-linear-gradient(left, #fff, #000);
background: -o-linear-gradient(left, #fff, #000);
background: -ms-linear-gradient(left, #fff, #000);
background: linear-gradient(left, #fff, #000);
background-color: #fff;
}
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Using multiple unit types within one animation.
$("#go").click(function(){
$("#block").animate({
width: "300px",
}, "slow" );
});
});
</script>
</head>
<body>
<button id="go">Run</button>
<div id="sky">
<div id="block">
<img src="http://samara.turprofi.ru/forum/index.php?PHPSESSID=bc74bb8aa06fa9cb3f088effb3ec56c3&action=dlattach;attach=1852;type=avatar" />
</div>
</div>
</body>
</html>