fix lightbox transitions
parent
3765a75b24
commit
1456be633a
|
@ -39,13 +39,14 @@ class LightboxService extends taiga.Service
|
||||||
lightboxContent = $el.children().not(".close")
|
lightboxContent = $el.children().not(".close")
|
||||||
lightboxContent.hide()
|
lightboxContent.hide()
|
||||||
|
|
||||||
$el.css('display', 'flex')
|
@animationFrame.add ->
|
||||||
|
$el.css('display', 'flex')
|
||||||
|
|
||||||
@animationFrame.add =>
|
@animationFrame.add ->
|
||||||
$el.addClass("open")
|
$el.addClass("open")
|
||||||
|
|
||||||
@animationFrame.add ->
|
@animationFrame.add ->
|
||||||
$el.find('input,textarea').first().focus()
|
$el.find('input,textarea').first().focus()
|
||||||
|
|
||||||
@animationFrame.add =>
|
@animationFrame.add =>
|
||||||
lightboxContent.show()
|
lightboxContent.show()
|
||||||
|
|
Loading…
Reference in New Issue