This example is pretty self-evident, I think, and I have no idea why the div is first compressed and not appear at the correct height.
here is a sample code
<div class="block">
<div class="abs">
hover me!!<br/>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet
</div>
</div>
and CSS
.block {
position: relative;
height: 500px;
width: 500px;
}
.abs {
position: absolute;
height: 40px;
width: 200px;
background-color: yellow;
overflow: hidden;
}
.abs:hover { height: auto; transition: height 1s; }
and here is the link to the violin with the content: http://jsfiddle.net/3G7vG/
I am testing this with the release of chrome Version 31.0.1650.63 Debian jessie / sid (238485) in my linux box
source
share