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

10 lines
205 B
JavaScript
Raw Permalink Normal View History

2021-02-22 13:19:21 +08:00
'use strict';
2024-01-19 01:05:44 +08:00
hexo.extend.helper.register('scrollreveal', function(args) {
if (hexo.theme.config.plugins.scrollreveal?.enable) {
return `${args ? args : ''}slide-up`
} else {
return ''
2021-02-22 13:19:21 +08:00
}
2024-01-19 01:05:44 +08:00
})