commit | 7709300d60277919063851fcdb1fd55799b6bfd9 | [log] [tgz] |
---|---|---|
author | Henri Koivuneva <henri.koivuneva@gmail.com> | Wed Nov 22 21:22:57 2017 +0200 |
committer | Henri Koivuneva <henri.koivuneva@gmail.com> | Wed Nov 22 21:22:57 2017 +0200 |
tree | e6d4361fba35da47cdfe061fef239fa037fd85a0 | |
parent | b474b1556c7ba43c106be1aedd417c99345f008b [diff] [blame] |
Merge changes from origin master
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