mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
theme heo wowjs
This commit is contained in:
15
lib/wow.js
Normal file
15
lib/wow.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { loadExternalResource } = require('./utils');
|
||||
|
||||
/**
|
||||
* WOWjs动画,结合animate.css使用很方便
|
||||
* 是data-aos的平替 aos ≈ wowjs + animate
|
||||
*/
|
||||
export const loadWowJS = async () => {
|
||||
await loadExternalResource('https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js', 'js');
|
||||
// 配合animatecss 实现延时滚动动画,和AOS动画相似
|
||||
const WOW = window.WOW;
|
||||
console.log('加载WOW动画', WOW)
|
||||
if (WOW) {
|
||||
new WOW().init();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user