Показать сообщение отдельно
  #4 (permalink)  
Старый 18.11.2013, 13:14
Аватар для рони
Профессор
Отправить личное сообщение для рони Посмотреть профиль Найти все сообщения от рони
 
Регистрация: 27.05.2010
Сообщений: 33,102

Сообщение от 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>
Ответить с цитированием