hexo-theme-stellar/layout/_plugins/scrollreveal.ejs

17 lines
527 B
Plaintext
Raw Permalink Normal View History

2024-02-12 23:07:56 +08:00
<script defer src="<%- conf.js %>"></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
const slideUp = {
distance: `<%- conf.distance %>`,
duration: `<%- conf.duration %>`,
interval: `<%- conf.interval %>`,
scale: `<%- conf.scale %>`,
opacity: 0,
easing: "ease-out"
};
ScrollReveal().reveal('.l_left .slide-up', slideUp);
ScrollReveal().reveal('.l_main .slide-up', slideUp);
2024-10-15 12:22:20 +08:00
ScrollReveal().reveal('.l_right .slide-up', slideUp);
2024-02-12 23:07:56 +08:00
});
</script>