mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +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
|
||||
|
||||
// start fading...
|
||||
// XXX not working yet...
|
||||
if(st < h - options['fade-at']){
|
||||
dom.css({ opacity: Math.min(1, st/h) })
|
||||
// XXX fade-at needs to be a bit bigger
|
||||
if(st > h - options['fade-at']){
|
||||
dom.css({ opacity: Math.min(1, (h - options['fade-at'])/st) })
|
||||
|
||||
} else if(dom.css('opacity') < 1){
|
||||
dom.css('opacity', 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user