Last active
December 4, 2018 05:19
-
-
Save drecodeam/74ec23730e650c57cb43087dfda98e7e to your computer and use it in GitHub Desktop.
This file contains 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
# Add pulse | |
addPulse = ( coordinates, design_component ) -> | |
heartbeatMarker = addMarker( coordinates, design_component ) | |
heartbeatMarker.element.animate | |
size: 70 | |
opacity: 0 | |
backgroundColor: "#D9497D" | |
options: | |
time: 2 | |
curve: Bezier.easeInOut | |
delay: 0 | |
repeat: Infinity | |
heartbeatMarker.setLngLat( [origin[1], origin[0]] ) | |
return heartbeatMarker | |
pulseMarker = addPulse( origin, heartbeat ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment