Animating a Dry Erase Stick Figure with Water and Air

Category: Fun, Science 12 0
animating-a-dry-erase-stick-figure-with-water-and-air

( function() {
var func = function() {
var iframe_form = document.getElementById(‘wpcom-iframe-form-b16eae79ae51aee9eaadc626c576cc30-58869911e4d96’);
var iframe = document.getElementById(‘wpcom-iframe-b16eae79ae51aee9eaadc626c576cc30-58869911e4d96’);
if ( iframe_form && iframe ) {
iframe_form.submit();
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-b16eae79ae51aee9eaadc626c576cc30-58869911e4d96’
}, window.location.protocol + ‘//wpcomwidgets.com’ );
}
}

// Autosize iframe
var funcSizeResponse = function( e ) {
var origin = document.createElement( ‘a’ );
origin.href = e.origin;

// Verify message origin
if ( ‘wpcomwidgets.com’ !== origin.host )
return;

// Verify message is in a format we expect
if ( ‘object’ !== typeof e.data || undefined === e.data.msg_type )
return;

switch ( e.data.msg_type ) {
case ‘poll_size:response’:
var iframe = document.getElementById( e.data._request.frame_id );

if ( iframe && ” === iframe.width )
iframe.width = ‘100%’;
if ( iframe && ” === iframe.height )
iframe.height = parseInt( e.data.height );

return;
default:
return;
}
}

if ( ‘function’ === typeof window.addEventListener ) {
window.addEventListener( ‘message’, funcSizeResponse, false );
} else if ( ‘function’ === typeof window.attachEvent ) {
window.attachEvent( ‘onmessage’, funcSizeResponse );
}
}
if (document.readyState === ‘complete’) { func.apply(); /* compat for infinite scroll */ }
else if ( document.addEventListener ) { document.addEventListener( ‘DOMContentLoaded’, func, false ); }
else if ( document.attachEvent ) { document.attachEvent( ‘onreadystatechange’, func ); }
} )();

Twitter user @RYUSO01 discovered something cool. If you draw something on a surface like glass or acrylic with a dry erase marker and pour water over it, the ink will lift and you can ‘animate’ it by blowing the water around.

I wouldn’t try this on a surface you don’t want to ruin in case it doesn’t work. I don’t think I would recommend trying on a porous surface either. Any tips or success stories, let us know in the comments!

 

see more videos button Animating a Dry Erase Stick Figure with Water and Air

twistedsifter on facebook Animating a Dry Erase Stick Figure with Water and Air

 

Source:

">
&source=ViralSpecials.com">

Related Articles

Add Comment