new updates
This commit is contained in:
File diff suppressed because it is too large
Load Diff
24
public/assets/js/page_reveal.js
Normal file
24
public/assets/js/page_reveal.js
Normal file
@@ -0,0 +1,24 @@
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
const reveal = document.querySelector(".page-reveal");
|
||||
|
||||
if (!reveal || typeof gsap === "undefined") return;
|
||||
|
||||
gsap.set(reveal, {
|
||||
y: 0,
|
||||
scaleY: 1
|
||||
});
|
||||
|
||||
gsap.to(reveal, {
|
||||
scaleY: 0,
|
||||
duration: 1.5,
|
||||
ease: "expo.inOut",
|
||||
delay: 0.1,
|
||||
force3D: true,
|
||||
clearProps: "transform",
|
||||
onComplete() {
|
||||
reveal.remove();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user