Alright, here's a demo of the animation (click the word HIPSTERS in the header): http://jacksongariety.com/
It's pretty simple. Changes from 100% dimensions to 75% dimensions and goes from 0 opacity to 1 opacity. Then it reverses when you hit the X. I'm having performance issues caused by the javascript setInterval that jQuery uses to animate. I tried a number of tweaks and it looks like I'll have to use CSS3 which is way messier code that I'm not to keen on.
So, how can I convert this jQuery animation:
.animate({
opacity: 0,
width: '100%',
height: '100%',
left: '-50%',
top: '-50%'
}, {
duration: 200,
specialEasing: {
opacity: 'linear',
width: 'linear',
height: 'linear',
marginLeft: 'linear',
marginTop: 'linear'
}
...into CSS3 transitions/transforms? Then have it fallback for older browsers to the slow jQuery animations?
Thanks in advance!