textAlign problem in animate function
Hi,
- $(document).ready(function() {
- $('#content').animate({
- marginTop: (pageHeight-301)/2
- }, 2000).animate({
- textAlign: 'center'
- }, {
- 'duration': 2000,
- 'easing': 'easeInOutExpo'
- });
- });
I'm using this code for the #content div, first animation works perfect but second one doesnt work. Problem is textAlign. I tried textIndent, color, padding instead of textAlign, and all of them worked perfectly. But I cant use textAlign in animate. How to do that? Or what's my mistake?