I also tried
$(function(){
$('.frame3').click(function(){
$('#story').animate({ opacity: 'hide'},
'fast').css
('background-position' , '-0px -302px').animate({ opacity: 'show'},
'fast');
You're going to want to use callbacks...
$('#word1, #story').fadeOut('fast', function(){ $(#word 1).text
(lorem); $(#word).text(ipsum); $('#word1, #story').fadeIn
(slow)});
$('.frame3').click(function(){
$('#story, #word1').fadeOut('fast', function(){ $('#story').text
(lorem);
Since you want to execute the text change and fadeIn after the
animation completes you need to use a callback...
$('.frame3').click(function(){
$('#story, #word1').fadeOut('fast', function(){
$('#story').text(lorem);
$('#word1').text(ipsum);
$('#story,
3 matches
Mail list logo