[solved] Problems with mootools 1.11 in Joomla 1.5 website

here you will find only solved 1.1 Help topics

Moderator: 1.1 Moderators

Re: Problems with mootools 1.11 in my Joomla 1.5 website

Postby Hermes on Sun Feb 28, 2010 2:31 am

Hi again!

Only one more question. Your code likes pretty different to the demo codes about the 1.2 MooTools version in his web. In all the examples , each time it's generated an event has been generate an instance before, in this way:

var myTransition = new Fx.Transition(''myEffect");

and then you can change the characteristics of an effect using the function set('slide', characteristics.

Unfortunately didn't work to me!

This is the code I have been trying to make work:

  1. bt_open.addEvent('click', function(e)
  2.     {    
  3.         var i = bt_open.indexOf(this);
  4.         e.stop();
  5.         bt_open.addEvent('click', function(e)
  6.     {    
  7.         var i = bt_open.indexOf(this);
  8.         e.stop();
  9.         contents[i].set('slide',{
  10.                                   mode:'vertical',
  11.                                   transition: 'Sine.easeIn',
  12.                                   duration: 500
  13.                                   }).slide('in');
  14.        
  15.         infos[i].slide('hide');
  16.     });
  17.  

So,¿ where I can customize th effect in your code? ¿Where to put the transition type, etc...
I can see in your code any instance, and it's supposed than the customization of the effect must put it after the instance.

Thank you in advance for your incredible contribution!

My Best Regards!!
Hermes
 
Posts: 7
Joined: Wed Feb 24, 2010 9:52 pm

Previous

Return to Solutions

Who is online

Users browsing this forum: No registered users and 1 guest