Skip to content

@maelp /
Last active

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Fast prototyping tricks - Glowing screen
<!DOCTYPE html>
<meta charset="utf-8">
body {
width: 960px;
padding-top: 40px;
margin: auto;
position: relative;
svg {
width: 100%;
max-height: 400px;
<script src="" charset="utf-8"></script>
<script type='text/javascript'>
function animateGrowingCircle(fromRadius, toRadius) {
var animateFunction = function () {
.attr('r', fromRadius)
.attr('r', toRadius)
.attr('r', fromRadius)
.each('end', function () {;
return animateFunction;
window.addEventListener('load', function () {
d3.xml('iPhone.svg', 'image/svg+xml', function (error, data) {'body').node().appendChild(data.documentElement);
var svg ='svg');'#iPhoneGloss')
.style('pointer-events', 'none');
var circle ='#Circle');
var r = +circle.attr('r');
circle.on('click', function () {
.attr('r', r)
.attr('r', r * 2)
.attr('r', r);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.