¿No está seguro de por qué esto no está funcionando:

  • mindfullsilence
  • Professor
  • Professor
  • Avatar de Usuario
  • Registrado: Ago 04, 2008
  • Mensajes: 846
  • Status: Offline

Nota Julio 6th, 2009, 11:32 pm

He aquí este script & #058;

Código: [ Select ]
 
// JavaScript Document
$(document).ready(function(){
 
$.fn.wait = function(time, type) {
        time = time || 1000;
        type = type || "fx";
        return this.queue(type, function() {
            var self = this;
            setTimeout(function() {
                $(self).dequeue();
            }, time);
        });
    };
 
$('#home').click(function(){
        $('.content').slideUp(500);
        $('#homewrap').slideUp(500);
        $('#contentwrap').stop().wait().animate(
            {backgroundPosition:'(0px 0px)'},
            {duration:500});
        $('#facewrap').stop().wait().animate(
            {backgroundPosition:'(0px 0px)'},
            {duration:500})
        $('#homewrap').wait().fadeIn(500);
        });
 
  1.  
  2. // JavaScript Document
  3. $(document).ready(function(){
  4.  
  5. $.fn.wait = function(time, type) {
  6.         time = time || 1000;
  7.         type = type || "fx";
  8.         return this.queue(type, function() {
  9.             var self = this;
  10.             setTimeout(function() {
  11.                 $(self).dequeue();
  12.             }, time);
  13.         });
  14.     };
  15.  
  16. $('#home').click(function(){
  17.         $('.content').slideUp(500);
  18.         $('#homewrap').slideUp(500);
  19.         $('#contentwrap').stop().wait().animate(
  20.             {backgroundPosition:'(0px 0px)'},
  21.             {duration:500});
  22.         $('#facewrap').stop().wait().animate(
  23.             {backgroundPosition:'(0px 0px)'},
  24.             {duration:500})
  25.         $('#homewrap').wait().fadeIn(500);
  26.         });
  27.  


el. wait () efecto es Workin bien el 66% del tiempo. La última línea de cada función:
Código: [ Select ]
 
$('#homewrap').wait().fadeIn(500);
 
  1.  
  2. $('#homewrap').wait().fadeIn(500);
  3.  

no está funcionando, el efecto fadeIn está iniciando en el

$ ( #facewrap). stop (). wait (). animar (
(backgroundPosition: (0px 0px)),
(duration: 500)) "

animación.
Cada tema, excepto para esa línea está esperando a su vez, como debe ser.
Use your words like arrows to shoot toward your goal.
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Julio 6th, 2009, 11:32 pm

  • mindfullsilence
  • Professor
  • Professor
  • Avatar de Usuario
  • Registrado: Ago 04, 2008
  • Mensajes: 846
  • Status: Offline

Nota Julio 7th, 2009, 2:04 am

bien, Yo pense que fuera. Para cualquier persona que quiere saber, porque el fondo de su plugin de animación no funciona bien con otros plugins.
Use your words like arrows to shoot toward your goal.

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: Kurthead+1 y 136 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC