Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
4 additions
and
5 deletions.
-
+4
−5
framer/Layer.coffee
|
@@ -1275,6 +1275,10 @@ class exports.Layer extends BaseClass |
|
|
|
|
|
showHint: (highlightFrame) -> |
|
|
|
|
|
# Don't show anything if this element covers the entire screen |
|
|
# if Utils.frameInFrame(@context.canvasFrame, highlightFrame) |
|
|
# return |
|
|
|
|
|
# Start an animation with a rectangle fading out over time |
|
|
layer = new Layer |
|
|
frame: Utils.frameInset(highlightFrame, -1) |
|
@@ -1283,11 +1287,6 @@ class exports.Layer extends BaseClass |
|
|
borderRadius: @borderRadius * Utils.average([@canvasScaleX(), @canvasScaleY()]) |
|
|
borderWidth: 3 |
|
|
|
|
|
# Only show outlines if a highlight is fullscreen |
|
|
# if Utils.frameInFrame(@context.canvasFrame, highlightFrame) |
|
|
# layer.backgroundColor = null |
|
|
# layer.borderColor = new Color("9013FE").alpha(.5) |
|
|
|
|
|
animation = layer.animate |
|
|
properties: {opacity: 0} |
|
|
curve: "ease-out" |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.