Skip to content

Commit

Permalink
Don’t animate the cover when disabling the preloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Aug 12, 2016
1 parent 83a0477 commit 694b407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framer/Extras/Preloader.coffee
Expand Up @@ -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
Expand Down Expand Up @@ -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) ->
Expand Down

0 comments on commit 694b407

Please sign in to comment.