Created
April 17, 2013 02:16
-
-
Save eduardolundgren/5401292 to your computer and use it in GitHub Desktop.
Widget transition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_afterUiSetVisible: function(val) { | |
var instance = this, | |
boundingBox = instance.get('boundingBox'), | |
transition = instance.get('transition'); | |
// if (!transition) { | |
boundingBox.setStyle('display', val ? 'block' : 'none'); | |
return; | |
// } | |
boundingBox.setStyles({ | |
display: 'block', | |
opacity: val ? 0 : 1 | |
}); | |
A.mix(transition, { | |
opacity: val ? 1 : 0 | |
}); | |
boundingBox.transition(transition, function() { | |
boundingBox.setStyle('display', val ? 'block' : 'none'); | |
}); | |
// if (val) { | |
// boundingBox.show(); | |
// } | |
// else { | |
// boundingBox.hide(); | |
// } | |
// boundingBox.setStyles({ | |
// display: 'block' | |
// display: val ? 'block' : 'none' | |
// }); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment