let targetOpacity = show ? (elapsedTime / duration) : 1-(elapsedTime / duration);
this.container.style.opacity = targetOpacity;
if (elapsedTime > duration) {
- this.container.style.display = show ? 'display' : 'none';
+ this.container.style.display = show ? 'flex' : 'none';
this.container.style.opacity = '';
} else {
requestAnimationFrame(setOpacity.bind(this));
function show(doneCallback) {
callback = doneCallback;
$scope.showing = true;
- $('#image-manager').find('.overlay').css('display', 'flex').hide().fadeIn(240);
+ $('#image-manager').find('[overlay]').css('display', 'flex').hide().fadeIn(240);
// Get initial images if they have not yet been loaded in.
if (!dataLoaded) {
fetchData();
*/
$scope.hide = function () {
$scope.showing = false;
- $('#image-manager').find('.overlay').fadeOut(240);
+ $('#image-manager').find('[overlay]').fadeOut(240);
};
let baseUrl = window.baseUrl('/images/' + $scope.imageType + '/all/');