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

10 lines
220 B
JavaScript

'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 '';
});