Changing Image Transitions

Free Joomla module to create slideshow on your website which includes different data like part of articles or text defined by user.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Nov 14, 2012 2:36 pm
Is there a way to change the way an image enters the frame?

I would like it to fade in and out instead of how it currently it slides in at a strange angle, "gk_the_real_design".
User avatar
Fresh Boarder

GK User
Fri Nov 16, 2012 2:40 am
Can someone from Gavickpro answer this question?
User avatar
Fresh Boarder

GK User
Sat Nov 17, 2012 6:20 pm
Hi,

Please open the following file: modules/mod_image_show_gk4/styles/gk_the_real_design/engine.js

and change fragment:

Code: Select all
new Fx.Tween(slides[actual], {property:'right', duration: $G['anim_speed']}).start(-999);
      new Fx.Tween(slides[which], {property:'right', duration: $G['anim_speed']}).start(-999, $G['image_x']);   
      new Fx.Tween(slides[actual], {property:'bottom', duration: $G['anim_speed']}).start(999);
      new Fx.Tween(slides[which], {property:'bottom', duration: $G['anim_speed']}).start(-999, $G['image_y']);
      new Fx.Tween(slides[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);
      (function() {
         new Fx.Tween(slides[which], {property:'opacity', duration: $G['anim_speed']/2}).start(0, 1);
      }).delay($G['anim_speed']/2);
      
      new Fx.Tween(textBlocks[actual], {property:'left', duration: $G['anim_speed']}).start(-999);
      new Fx.Tween(textBlocks[which], {property:'left', duration: $G['anim_speed']}).start(-999, $G['text_x']);   
      new Fx.Tween(textBlocks[actual], {property:'top', duration: $G['anim_speed']}).start(999);
      new Fx.Tween(textBlocks[which], {property:'top', duration: $G['anim_speed']}).start(-999, $G['text_y']);   
      new Fx.Tween(textBlocks[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);


to:

Code: Select all
new Fx.Tween(slides[actual], {property:'right', duration: $G['anim_speed']}).start($G['image_x']);
      new Fx.Tween(slides[which], {property:'right', duration: $G['anim_speed']}).start($G['image_x'], $G['image_x']);   


      new Fx.Tween(slides[actual], {property:'bottom', duration: $G['anim_speed']}).start($G['image_y']);
      new Fx.Tween(slides[which], {property:'bottom', duration: $G['anim_speed']}).start($G['image_y'], $G['image_y']);


      new Fx.Tween(slides[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);
      (function() {
         new Fx.Tween(slides[which], {property:'opacity', duration: $G['anim_speed']/2}).start(0, 1);
      }).delay($G['anim_speed']/2);
      
      new Fx.Tween(textBlocks[actual], {property:'left', duration: $G['anim_speed']}).start($G['text_x']);
      new Fx.Tween(textBlocks[which], {property:'left', duration: $G['anim_speed']}).start($G['text_x'], $G['text_x']);   
      new Fx.Tween(textBlocks[actual], {property:'top', duration: $G['anim_speed']}).start($G['text_y']);
      new Fx.Tween(textBlocks[which], {property:'top', duration: $G['anim_speed']}).start($G['text_y'], $G['text_y']);   
      new Fx.Tween(textBlocks[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);
User avatar
Platinum Boarder

GK User
Sat Nov 17, 2012 9:08 pm
Thanks for the reply, unfortunately that didn't seem to work. It is still coming in the same way.
User avatar
Fresh Boarder

GK User
Sun Nov 18, 2012 3:40 pm
Could you provide me details to your installation ? Please use PM and remember to include link to created forum topic.
User avatar
Platinum Boarder

GK User
Tue Nov 20, 2012 12:54 am
Did you receive my PM? If not I can resend.
User avatar
Fresh Boarder

GK User
Wed Nov 21, 2012 9:09 am
Yes I'm get it and waiting for FTP details.
User avatar
Platinum Boarder

GK User
Wed Dec 05, 2012 11:27 am
bkrztuk wrote:Hi,

Please open the following file: modules/mod_image_show_gk4/styles/gk_the_real_design/engine.js

and change fragment:

Code: Select all
new Fx.Tween(slides[actual], {property:'right', duration: $G['anim_speed']}).start(-999);
      new Fx.Tween(slides[which], {property:'right', duration: $G['anim_speed']}).start(-999, $G['image_x']);   
      new Fx.Tween(slides[actual], {property:'bottom', duration: $G['anim_speed']}).start(999);
      new Fx.Tween(slides[which], {property:'bottom', duration: $G['anim_speed']}).start(-999, $G['image_y']);
      new Fx.Tween(slides[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);
      (function() {
         new Fx.Tween(slides[which], {property:'opacity', duration: $G['anim_speed']/2}).start(0, 1);
      }).delay($G['anim_speed']/2);
      
      new Fx.Tween(textBlocks[actual], {property:'left', duration: $G['anim_speed']}).start(-999);
      new Fx.Tween(textBlocks[which], {property:'left', duration: $G['anim_speed']}).start(-999, $G['text_x']);   
      new Fx.Tween(textBlocks[actual], {property:'top', duration: $G['anim_speed']}).start(999);
      new Fx.Tween(textBlocks[which], {property:'top', duration: $G['anim_speed']}).start(-999, $G['text_y']);   
      new Fx.Tween(textBlocks[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);


to:

Code: Select all
new Fx.Tween(slides[actual], {property:'right', duration: $G['anim_speed']}).start($G['image_x']);
      new Fx.Tween(slides[which], {property:'right', duration: $G['anim_speed']}).start($G['image_x'], $G['image_x']);   


      new Fx.Tween(slides[actual], {property:'bottom', duration: $G['anim_speed']}).start($G['image_y']);
      new Fx.Tween(slides[which], {property:'bottom', duration: $G['anim_speed']}).start($G['image_y'], $G['image_y']);


      new Fx.Tween(slides[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);
      (function() {
         new Fx.Tween(slides[which], {property:'opacity', duration: $G['anim_speed']/2}).start(0, 1);
      }).delay($G['anim_speed']/2);
      
      new Fx.Tween(textBlocks[actual], {property:'left', duration: $G['anim_speed']}).start($G['text_x']);
      new Fx.Tween(textBlocks[which], {property:'left', duration: $G['anim_speed']}).start($G['text_x'], $G['text_x']);   
      new Fx.Tween(textBlocks[actual], {property:'top', duration: $G['anim_speed']}).start($G['text_y']);
      new Fx.Tween(textBlocks[which], {property:'top', duration: $G['anim_speed']}).start($G['text_y'], $G['text_y']);   
      new Fx.Tween(textBlocks[actual], {property:'opacity', duration: $G['anim_speed']/2}).start(1, 0);


Hi,

How do I add custom effect? Should I create an helper file also?

Thanks
User avatar
Fresh Boarder

GK User
Thu Dec 06, 2012 11:08 am
You need to modify engine.js file to add your own effect only. All JavaScript code for style is only at this file.
User avatar
Platinum Boarder


cron