mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
now fading works...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3a5e8bca5a
commit
c4cbbe3d15
@ -166,9 +166,9 @@ var DrawerPrototype = {
|
|||||||
var h = dom.find('.content')[0].scrollHeight
|
var h = dom.find('.content')[0].scrollHeight
|
||||||
|
|
||||||
// start fading...
|
// start fading...
|
||||||
// XXX not working yet...
|
// XXX fade-at needs to be a bit bigger
|
||||||
if(st < h - options['fade-at']){
|
if(st > h - options['fade-at']){
|
||||||
dom.css({ opacity: Math.min(1, st/h) })
|
dom.css({ opacity: Math.min(1, (h - options['fade-at'])/st) })
|
||||||
|
|
||||||
} else if(dom.css('opacity') < 1){
|
} else if(dom.css('opacity') < 1){
|
||||||
dom.css('opacity', 1)
|
dom.css('opacity', 1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user