commit | 55030612fcf0f7a317c2e8db381df86c5a07e7a4 | [log] [tgz] |
---|---|---|
author | Unknown <electrikjesus@gmail.com> | Sat Nov 04 20:28:12 2017 -0400 |
committer | Unknown <electrikjesus@gmail.com> | Sat Nov 04 20:28:12 2017 -0400 |
tree | 452912fe24869214f988c98018d5aec10a218c36 | |
parent | 4c2d1147b223c98737f1176bc00edffa8dc7cc5f [diff] [blame] |
Update header to animation
diff --git a/js/mainani.js b/js/mainani.js new file mode 100644 index 0000000..3170f21 --- /dev/null +++ b/js/mainani.js
@@ -0,0 +1,6 @@ +// this thing is js driven on slid.es so I didn't bother switching out for css animations +var duration = 7000, steps = 3, step = 1; + +setInterval( function() { + document.querySelector( '.animation' ).setAttribute( 'data-animation-step', step = ++step > steps ? 1 : step ); +}, duration / steps ); \ No newline at end of file