рони,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
body, html{
height: 100%;
padding: 0;
margin: 0;
width: 100%;
display: table;
}
.item.big{
background-color: #FF00FF;
transform: scale(1);
}
.item{
height: 100%;
transform: scale(0);
transform-origin: center;
transition: all 8s ease-in-out 1s;
color: #FFFFFF;
width: 100%;
text-align: center;
display: table-cell;
vertical-align: middle;
font-size: 48px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
var div = $("<div class='item'></div>");
$("body").append(div).width();
$(window).resize(function() {
div.html([div.width(),div.height()].join(" x "))
}).resize();
div.addClass("big")
});
</script>
</head>
<body>
</body>
</html>