I wonder if its possible to keep child elements from being animated. like in the following example: ( http://jsfiddle.net/JsfMF/6/ )
<head>
<meta charset="utf-8" />
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
function fade(){
$('#fadethis').animate({opacity: 0}, 500).show('#nogoaway');
};
</script>
</head>
<body>
<div id ="fadethis">
<p> I should go away </p>
<p id="nogoaway">hi im not supposed to be animated</p>
</div>
<button id="fade" onClick="fade()">fade!</button>
</body>
</html>
Thanks a lot!
Probably not: HTML is structured around a tree of boxes; if you animate the parent, the children will get dragged along.
However, you could simulate this by having a parent that contains both your parent and the children. The positioning and using the z axis will let you get the effect you want.