Closed (fixed)
Project:
Views Slideshow
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2009 at 19:54 UTC
Updated:
8 Sep 2009 at 21:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
JamieR commentedHello. Great module. I really wanted the cross fade style, so I've gone ahead and made a patch that accomplishes that. Have a look. It's made against the 1.0-beta1. Most of the work was in the .js file, but there was a little css and I removed the fade value setting, as it was no longer being used.
Tested in a couple themes and in Firefox and IE7.
Let me know what you think.
Cheers!
Jamie.
Comment #2
peterjmag commentedgdkt11: If you'd like to have the images fade to a color other than white, all you need to do is set the CSS background color of one of the slideshow's container elements. For example, I set my container background color to #cccccc, so images fade to gray.
JamieR: Thanks for the patch, but it seems to be failing for me. When I run patch < views_slideshow.patch, I receive the following messages from patch:
Once I type in "js/views_slideshow.js" at the input, the other files are patched correctly. I then patch views_slideshow.css manually. When I reload my slideshow view after making all the changes, the module's behavior isn't quite as expected. In Firefox 3 and Safari 3 on Mac OSX, my image appears for 5 seconds, and then fades to white (disappear) for 5 seconds before fading back in to another image. It looks to me like the module is successfully crossfading, but it's always crossfading to and from white, instead of the next image.
Hopefully this helps! I'll play around with the code a bit more to see if I can get it working for me. I'd love to see this implemented as an option in future releases of Views Slideshows.
Comment #3
JamieR commentedHmmm... sorry the patch didn't apply correctly. I'll see what I can do to fix that. I've also downloaded the newest stable release and will apply against that - unless you'd rather have it against the development trunk? Let me know. I'll have another patch soon. Thanks! Jamie.
Comment #4
JamieR commentedOkay, here's another patch that is just the bare minimum changes.
I think it still needs some work to finish the implementation...
We won't need the fade_value setting any more - it's not being used at all now. I suggest that we change this to be a setting for the time between the fade in and the fade out. That would allow people to have either a cross fade, or a fade to background - or anything inbetween. The setting could be just applied as a setTimeout() around line 82 in the .js file. I haven't done this, as it's all up to you and I'd like your thoughts. :)
Let me know if you can get this new patch to work. This time it's done from the 6.x-1.0-beta2 version. Again, let me know if you'd rather have it done off 6.x-1.x-dev.
Thanks!
Jamie.
Comment #5
JamieR commentedOne other issue is poping up for me with the crossfade... since the block is being set to absolute positioning it's height isn't being kept, and anything below it will be overlapped. The fix is to have the views_slideshow_main class assigned a height. However that doesn't automatically scale to the correct height, and we would need a setting perhaps to assign the block height. :(
Comment #6
jdelaune commentedI tried to commit the patch jamie but it wasn't applying well. I'd written some standalone JS for crossfading views, so I thought I would try and port it into this module.
Here is what I came up with. I've probably accidently overwritten some optional stuff however it seems to work for me. Obviously testing is much needed.
As for CSS I've just got:
You definitely need views to be consistent with height and width when it comes to crossfading. I can't really think of instances when you wouldn't want this to be the case.
Feedback welcome.
Comment #7
agoel@axelerant.com commentedI have been trying to apply this patch to the latest version 6.x-1.0-beta2, but no luck. Can someone post a working patch to the crossfade?
Comment #8
fearlsgroove commented@agoel96: You can try the patch in #463254: Lots of progress migrating to contrib/plugin architecture, transition to cycle plugin if you'd like -- it migrates to jquery, includes lots of different effects. 'Sync' - which means doing the in and out transitions at the same time, such as a cross fade, is an option, enabled by default.
The patch is off the latest -dev package.
Comment #9
redndahead commentedSince #463254: Lots of progress migrating to contrib/plugin architecture, transition to cycle plugin has been committed it should work in 2.x