mirror of
https://github.com/bigchaindb/site.git
synced 2024-12-24 18:36:11 +01:00
16 lines
300 B
JavaScript
16 lines
300 B
JavaScript
|
|
//=include ../../../node_modules/is-in-viewport/lib/isInViewport.js
|
|
|
|
jQuery(function($) {
|
|
|
|
// start Buffy animation when in viewport
|
|
var buffy = $('#buffy');
|
|
|
|
if (buffy.isInViewport() ) {
|
|
buffy.addClass('is-ready');
|
|
} else {
|
|
buffy.removeClass('is-ready');
|
|
}
|
|
|
|
});
|