Created
January 29, 2016 14:14
-
-
Save TimonVS/790c33f50a1f5cfd7fc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blink = -> | |
| ring = new Layer | |
| width: 160 | |
| height: 160 | |
| borderRadius: "50%" | |
| borderColor: "#f1c40f" | |
| borderWidth: 10 | |
| backgroundColor: "transparent" | |
| scale: 0 | |
| ring.center() | |
| ring.placeBehind heart | |
| ring.animate | |
| time: 0.5 | |
| properties: | |
| scale: 1 | |
| ring.animate | |
| delay: 0.25 | |
| time: 0.2 | |
| properties: | |
| opacity: 0 | |
| ring.on Events.AnimationEnd, -> | |
| ring.destroy() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment