hexo-theme-stellar/scripts/helpers/scrollreveal.js

10 lines
220 B
JavaScript
Raw Normal View History

2021-02-22 13:19:21 +08:00
'use strict';
hexo.extend.helper.register('scrollreveal', function(args){
const cfg = hexo.theme.config;
if (cfg.plugins.scrollreveal && cfg.plugins.scrollreveal.enable) {
return ' reveal';
}
return '';
});