Skip to content

Commit

Permalink
Enable transition on home page + minor UI fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
harshxll committed Sep 16, 2023
1 parent c1eeb3f commit 5c3fc67
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion html/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ <h1>Welcome to the <strong class="effect">Cosmic Calendar</strong></h1>


</body>
<script src="../js/home.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js" integrity="sha512-16esztaSRplJROstbIIdwX3N97V1+pZvV33ABoG1H2OyTttBxEGkTsoIVsiP1iaTtM8b3+hu2kB6pQ4Clr5yug==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="../js/home.js"></script>
<script>
var tl=gsap.timeline({paused:true});
tl.to(".left",{
y:"-100%",
duration:3
})
document.querySelector("button").addEventListener("click",function(){
tl.play();
});
</script>
</html>

0 comments on commit 5c3fc67

Please sign in to comment.