A Pen by Brian Kershaw on CodePen.
Created
July 13, 2020 23:47
-
-
Save courtnEMAIL/aefcc6794a72c9045f5ec65167f3d932 to your computer and use it in GitHub Desktop.
Animated NZ Map
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
<svg id="map" version="1.1" xmlns="http://www.w3.org/2000/svg"> </svg> |
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
var nzMap = Snap('#map'); | |
nzMap.attr({ | |
fill:none | |
}); | |
var bg = nzMap.rect(0, 0, 355.7, 322.1); | |
var outlinePartial = nzMap.path([10, 10, 100, 100]); |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js"></script> | |
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment