Created
August 29, 2018 00:45
-
-
Save anad-zeal/df6058d9ababa78413e2bc241ad81f9f to your computer and use it in GitHub Desktop.
svg circle path
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
<div class="container"> | |
<svg width="500px" height="500px"> | |
<rect x="0" y="0" width="100" height="100" fill="white"/> | |
<circle cx="50" cy="50" r="50"/> | |
</svg> | |
</div> |
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
$('rect').hover(function() { | |
$('rect') | |
.attr('width', 400) | |
.attr('height', 300) | |
.attr('fill', 'yellow'); | |
}); |
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
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script> |
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
.container { | |
margin: 20px; | |
} | |
circle, rect { | |
stroke: none; | |
} | |
circle { | |
fill: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment