Caption animation

Permalink Browser Info Environment
Hi,

I'm struggling with Caption animation. The caption fades in only on the first slide, but after that the fade animation doesn't work anymore. Captions appears as expected, but without animation. Could somebody help me with this?

Type: Discussion
Status: New
webdez1ner
View Replies:
jheanly replied on at Permalink Reply
jheanly
Hi Sami

The slider add-on is based on the Orbit Slider that is part of the Zurb Foundation framework. I have just tried your scenario using Orbit straight out of Foundation (ie I am not using the C5 add-on). It has the same issues.

The fade-in and fade-out seems to work fine if consecutive images do not have captions. I will dig into the Foundation code and see if I can fix the problem. One solution might be to fade out the caption on the first image before the next image slides in and caption fades in.

Regards

James
jheanly replied on at Permalink Reply 1 Attachment
jheanly
Hi Sami

I think I have worked this out. Attached is an updated copy of the foundation.js file (just unzip the attached). Can I get you to replace the foundation.js file in the Orbit Slider block with the attached version?

The foundation.js file can be found under directory...

packages/tra_orbit_slider/blocks/tra_orbit_slider/js

Let me know if it does the trick and I will upgrade the block in the C5 marketplace.

I have tested it and it seems to work fine. Let me know if it works ok for you.

Thanks

James
webdez1ner replied on at Permalink Reply
webdez1ner
Hi,

I tried your updated JS file, and the fade in works now. However, it still doesn't look so good because now the caption fades in, but it doesn't fade out. It would be great if it fades out smoothly too. When i modified the foundation.js, i managed to fadeout caption but while fading, it moved towards the bottom right corner.

Thanks for help anyway.
jheanly replied on at Permalink Reply
jheanly
I will continue digging - hopefully I can get it to work the way you want.

Thanks for your feedback
jheanly replied on at Permalink Reply 1 Attachment
jheanly
Hi,

I think I have managed to achieve the effect you are after. Can you try the attached javascript file and let me know what you think.

If you want to speed up the fade out of the caption, take a look in the preshift function and modify the fadeout duration. For example, you could halve the fadeout duration by changing the code to look like the following...
[code]
this.$caption.fadeOut(this.options.captionAnimationSpeed / 2,
function() {
e.shift(d)
})
[\code]

Regards

James
jheanly replied on at Permalink Reply
jheanly
Hi

Have you had a change to test out the js file from my previous response? Does it give you the effect you are looking for?

Regards

James

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.