1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-01 15:55:36 +01:00
site/_src/_assets/javascripts/page-community.js

16 lines
312 B
JavaScript
Raw Normal View History

2016-02-10 01:04:57 +01:00
//=include ../../../node_modules/is-in-viewport/lib/isInViewport.js
jQuery(function($) {
2016-02-10 19:48:31 +01:00
// start wrigely animation when in viewport
var wrigely = $('#wrigely');
2016-02-10 01:04:57 +01:00
2016-02-10 19:48:31 +01:00
if (wrigely.isInViewport() ) {
wrigely.addClass('is-ready');
2016-02-10 01:04:57 +01:00
} else {
2016-02-10 19:48:31 +01:00
wrigely.removeClass('is-ready');
2016-02-10 01:04:57 +01:00
}
});