Permalink
Browse files

Don’t animate the cover when disabling the preloader.

  • Loading branch information...
eelco committed Aug 12, 2016
1 parent 83a0477 commit 694b40707d46ad34edf4d703c60044c858ef4098
Showing with 4 additions and 4 deletions.
  1. +4 −4 framer/Extras/Preloader.coffee
@@ -97,16 +97,16 @@ class Preloader extends BaseClass
return unless @isLoading
@_end()
_end: =>
_end: (animated=true) =>
Framer.DefaultContext.visible = true
finalize = =>
@emit("end")
@_isLoading = false
@context?.destroy()
if @cover?.visible
if @cover?.visible and animated
@cover?.animate
properties: {opacity: 0}
time: 0.13
@@ -179,7 +179,7 @@ exports.enable = ->
exports.disable = ->
return unless Framer.Preloader
Framer.Preloader._end()
Framer.Preloader._end(false)
Framer.Preloader = null
exports.addImage = (url) ->

0 comments on commit 694b407

Please sign in to comment.