Closed (outdated)
Project:
Colorbox
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2012 at 19:16 UTC
Updated:
10 Oct 2016 at 11:28 UTC
Jump to comment: Most recent
Comments
Comment #1
frjo commentedThe title show for 1,5 sec and then disappear until you move the mouse over the image, then it shows again. I like it this way since on my site the image is more important than the caption.
If you don't like it I suggest you use one of the other styles you find on the Colorbox settings page. It also possible to add your own style, see the README for that.
Comment #2
hass commentedCan we change the time, please. You cannot read it in this short time. Usability wise it's bad as the title fades away when my eye just focus on the image. I also cannot read a title in 1.5 seconds. 3 or 5 seconds may be ok.
Comment #3
frjo commentedMy idea is that by showing it a short time people will see that there are some text there. If they are interested in it they will start moving there mouse to find a way to show it and then it will automatically show.
This only applies to the default and plain styles. The other styles shows the text all the time.
If you like the default or plain style but want to change the time you can copy the style to your theme and change the time there.
It's in the file "colorbox/styles/default/colorbox_style.js" line 8. Change the value "1500" (milliseconds) to any value you like or just delete the whole line to disable this effect.
Comment #4
hass commentedYou expect too much :-). I tried it myself more than once and it's very difficult to find the position that keeps the title. On iPad it's more than impossible.
But with every update via update module or drush I'm losing my style.
Comment #5
frjo commentedMake a copy of the style in your theme if you want to change it, see README for instructions.
You make a valid point but on the other hand, this functionality has been in place since the start and I can't remember another issue about it. Maybe everyone else just ignores it :-).
I will delete the "setTimeout…" line in the JS for the plain style and see how I like it, that’s the style I use on my own site now.
Comment #6
El Bandito commented+1 for this feature as a configurable setting.
Thanks for the great work on this module.
El B
Comment #7
frjo commented